Files
rust_browser/tests/goldens/expected/184-border-radius-clamping.dl.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

3 lines
101 B
Plaintext

DisplayList items=1
SolidRect rect=(8, 8, 60, 40) color=#ffa500 radii=(20.00, 20.00, 20.00, 20.00)