Files
rust_browser/tests/goldens/expected/185-border-radius-no-border.layout.txt
Zachary D. Rowitsch f4cde48796 Implement CSS border-radius parsing, computation, layout, and rasterization
Add full support for the border-radius CSS property (circular radii):
- Parse border-radius shorthand (1-4 values) and longhand properties
- Compute border-radius values with length, percentage, and calc support
- Propagate specified radii through layout with deferred resolution
- Thread CornerRadii through all display list items (Border, SolidRect, LinearGradient, BackgroundImage)
- Rasterize rounded borders and backgrounds using per-pixel circle tests
- Clamp radii per CSS §5.5 proportional scaling when they exceed box dimensions
- Add 5 golden tests (basic, per-corner, circle, clamping, no-border)
- Add 44 unit tests across shared, css, style, layout, and render crates
- Update WPT manifest (+5 net passing border-radius tests)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-27 10:32:09 -05:00

18 lines
491 B
Plaintext

LayoutBox node=#2 tag=html box=block
content: (0, 0, 800, 56)
padding: 0 0 0 0
border: 0 0 0 0
margin: 0 0 0 0
LayoutBox node=#10 tag=body box=block
content: (8, 8, 784, 40)
padding: 0 0 0 0
border: 0 0 0 0
margin: 8 8 8 8
LayoutBox node=#12 tag=div box=block
content: (8, 8, 200, 40)
padding: 0 0 0 0
border: 0 0 0 0
margin: 0 0 0 0
border-radius: (20.00, 20.00, 20.00, 20.00)
inline_context: 0 lines, height=0, max_width=0