servo/components/layout/display_list
Oriol Brufau 0c22f784bb
layout: Avoid negative corner radii values for border-radius (#39571)
The `border-radius` property provides the radii for the border box. For
the curvature of the padding and content boxes, we then subtract the
border and padding sizes. However, we weren't flooring the result by
zero, which could make the background completely disappear when using
`background-clip: padding-box` or `background-clip: content-box`.

Testing: Adding 4 new tests, but 2 of them fail in both Servo and
Firefox.
Fixes: #39540

Signed-off-by: Oriol Brufau <obrufau@igalia.com>
2025-09-30 10:37:44 +00:00
..
background.rs compositor: Request reflow when doing a page zooming (#38166) 2025-07-29 10:04:37 +00:00
clip.rs layout: Avoid ClipId, ExternalScrollId and ScrollTreeNodeId references (#39372) 2025-09-18 23:34:49 +00:00
conversions.rs layout: Support wavy and double for text-decoration-line (#37079) 2025-05-22 17:42:50 +00:00
gradient.rs layout: Reverse vertical orientation of gradients using corner directions. (#37802) 2025-07-11 20:02:13 +00:00
hit_test.rs layout: Avoid ClipId, ExternalScrollId and ScrollTreeNodeId references (#39372) 2025-09-18 23:34:49 +00:00
mod.rs layout: Avoid negative corner radii values for border-radius (#39571) 2025-09-30 10:37:44 +00:00
stacking_context.rs layout: Correctly handle margins in sticky positioning (#39393) 2025-09-25 16:27:10 +00:00