Files
rust_browser/tests/goldens/fixtures/185-border-radius-no-border.html
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

17 lines
204 B
HTML

<!DOCTYPE html>
<html>
<head>
<style>
.pill {
width: 200px;
height: 40px;
background: purple;
border-radius: 20px;
}
</style>
</head>
<body>
<div class="pill"></div>
</body>
</html>