commit 2d5bbf9335b278c4fd044e9df4b0fd62530998d6
parent 1429a13c83132a1f591bc3dc8acdd54902c3142c
Author: Noam Rosenthal <nrosenthal@chromium.org>
Date: Wed, 3 Dec 2025 14:42:31 +0000
Bug 2003476 [wpt PR 56383] - Contoured rects: Use center point as hull in some cases, a=testonly
Automatic update from web-platform-tests
Contoured rects: Use center point as hull in some cases
In very small rectangles, there could be siutations where rounding can
make lines that are nearly parallel appear parallel, causing tangent
computations to fail.
In these cases, it's better to have a somewhat inaccurate hull
calculation than crash.
Bug: 451657549
Change-Id: Ib70d70deaed93346cfef3600ef1ef02989eb4efa
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7209122
Reviewed-by: Philip Rogers <pdr@chromium.org>
Commit-Queue: Noam Rosenthal <nrosenthal@google.com>
Cr-Commit-Position: refs/heads/main@{#1552680}
--
wpt-commits: 1c073bf1f9fcca4c47342a5c4266659369d588f1
wpt-pr: 56383
Diffstat:
1 file changed, 18 insertions(+), 0 deletions(-)
diff --git a/testing/web-platform/tests/css/css-borders/corner-shape/corner-shape-zoom-overlap-extreme-values-crash.html b/testing/web-platform/tests/css/css-borders/corner-shape/corner-shape-zoom-overlap-extreme-values-crash.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<link rel="help" href="https://drafts.csswg.org/css-borders-4/#corner-shape" />
+<style>
+ .target {
+ display: inline;
+ clip-path: border-box;
+ corner-shape: bevel square scoop;
+ zoom: 10%;
+ border-radius: 100%;
+ border: 5px solid purple;
+ bottom: -1e100px;
+ position: relative;
+ background: green;
+ }
+</style>
+<div class="target"></div>
+
+This test should not crash.