Files
rust_browser/tests/goldens/fixtures/160-flex-direction-reverse.html
Zachary D. Rowitsch 6ac27a96a0 Implement flexbox enhancements: multi-line, reverse, align-self/content, order, inline-flex
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>
2026-02-14 14:09:12 -05:00

29 lines
649 B
HTML

<!DOCTYPE html>
<html>
<head>
<style>
.container {
display: flex;
flex-direction: row-reverse;
width: 300px;
background-color: lightgray;
}
.item {
width: 60px;
height: 40px;
margin: 5px;
}
.red { background-color: red; }
.green { background-color: green; }
.blue { background-color: blue; }
</style>
</head>
<body>
<div class="container">
<div class="item red">First</div>
<div class="item green">Second</div>
<div class="item blue">Third</div>
</div>
</body>
</html>