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>
37 lines
741 B
HTML
37 lines
741 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<style>
|
|
.container {
|
|
display: flex;
|
|
width: 300px;
|
|
background-color: lightgray;
|
|
}
|
|
.item {
|
|
width: 60px;
|
|
height: 40px;
|
|
margin: 5px;
|
|
}
|
|
.first {
|
|
order: 3;
|
|
background-color: red;
|
|
}
|
|
.second {
|
|
order: 1;
|
|
background-color: green;
|
|
}
|
|
.third {
|
|
order: 2;
|
|
background-color: blue;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<div class="item first">DOM 1</div>
|
|
<div class="item second">DOM 2</div>
|
|
<div class="item third">DOM 3</div>
|
|
</div>
|
|
</body>
|
|
</html>
|