Files
sousa-gecko/testing/web-platform/tests/css/css-masking/clip-path/reference
Oriol Brufau 460b363f5e Bug 2045739 [wpt PR 60465] - layout: Don't normalize radii for clip-path shapes, a=testonly
Automatic update from web-platform-tests
layout: Don't normalize radii for clip-path shapes

WebRender already takes care of normalizing radii when they are too big,
so no need to do that work twice.

Additionally, we were doing it wrong for `rect()` and `circle()`, since
we were normalizing using the size of the element instead of the size of
the shape.

For example, an element with a zero size would normalize the radii to
zero, even though the clip rect could be larger due to negative insets.

And a `circle()` with big enough radii would have them reduced in a way
that produced a square with rounded corners instead of a circle.

`ellipse()` was normalizing with the right rectangle, so it behaved
correctly, but again it was unnecessary because WebRender can handle it.

Signed-off-by: Oriol Brufau <obrufau@igalia.com>

--

wpt-commits: 35059f55fdc85de87ff09e47d6daddaecb53076e
wpt-pr: 60465
2026-06-11 08:49:17 +00:00
..