Add comprehensive flexbox support across 8 areas: - flex/flex-flow shorthand parsing from raw CssToken kinds - justify-content: space-around/space-evenly, align-items: baseline - flex-direction: row-reverse/column-reverse with justify swap - align-self per-item cross-axis override - flex-wrap multi-line layout with line partitioning and packing - align-content with all 7 distribution strategies - display: inline-flex with proper formatting context handling - order property with stable sort and integer-only validation Rewrites the flex layout algorithm to support multi-line containers, reverse directions, per-item alignment, and all content distribution modes. Promotes 36 WPT tests to pass and demotes 25 false passes exposed by correct gap handling. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
32 lines
739 B
HTML
32 lines
739 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<style>
|
|
.container {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
width: 250px;
|
|
height: 300px;
|
|
background-color: lightgray;
|
|
}
|
|
.item {
|
|
width: 100px;
|
|
height: 40px;
|
|
margin: 5px;
|
|
}
|
|
.red { background-color: red; }
|
|
.green { background-color: green; }
|
|
.blue { background-color: blue; }
|
|
.yellow { background-color: yellow; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<div class="item red">1</div>
|
|
<div class="item green">2</div>
|
|
<div class="item blue">3</div>
|
|
<div class="item yellow">4</div>
|
|
</div>
|
|
</body>
|
|
</html>
|