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
8 lines
288 B
HTML
8 lines
288 B
HTML
<!DOCTYPE html>
|
|
<title>CSS Reftest Reference</title>
|
|
<link rel="author" title="Oriol Brufau" href="mailto:obrufau@igalia.com">
|
|
|
|
<p>The test passes if there is a semicircle.</p>
|
|
<div style="width: 200px; height: 100px; background: black;
|
|
border-radius: 100px 100px 0 0"></div>
|