commit a25d438a1f7cd26ec3dfdd55a9a78e1ed21db940
parent 983359260a4012b3117326d771ab2bda2a60f319
Author: Daniil Sakhapov <sakhapov@chromium.org>
Date: Wed, 15 Oct 2025 08:22:25 +0000
Bug 1993511 [wpt PR 55321] - Fix the wrong coord picked in StyleShape::GetPath, a=testonly
Automatic update from web-platform-tests
Fix the wrong coord picked in StyleShape::GetPath
Fixed: 443295353
Change-Id: Ib80b1878acfbb6a36e263b824a44acc88ea59527
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7021131
Reviewed-by: Philip Rogers <pdr@chromium.org>
Commit-Queue: Daniil Sakhapov <sakhapov@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1527386}
--
wpt-commits: 1ddc6d3a4367103ceb80ca1d458287ac4743e0bb
wpt-pr: 55321
Diffstat:
2 files changed, 38 insertions(+), 0 deletions(-)
diff --git a/testing/web-platform/tests/css/css-borders/border-shape-absolute-coords-shape-ref.tentative.html b/testing/web-platform/tests/css/css-borders/border-shape-absolute-coords-shape-ref.tentative.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<style>
+ @import "resources/stroke-variants.css";
+
+ svg {
+ position: absolute;
+ top: 200px;
+ left: 0;
+ width: 200px;
+ height: 200px;
+ overflow: visible;
+ stroke: purple;
+ stroke-width: 20px;
+ fill: green;
+ }
+</style>
+<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg">
+ <polygon points="0,0 200,0, 100,200" />
+</svg>
diff --git a/testing/web-platform/tests/css/css-borders/border-shape-absolute-coords-shape.tentative.html b/testing/web-platform/tests/css/css-borders/border-shape-absolute-coords-shape.tentative.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<title>CSS Borders Test: border-shape with absolute positioning</title>
+<link rel="help" href="https://www.w3.org/TR/css-borders-4/#propdef-border-shape">
+<link rel="help" href="https://drafts.csswg.org/css-shapes-1/#shape-function">
+<link rel="match" href="border-shape-absolute-coords-shape-ref.tentative.html">
+<style>
+ .bs-target {
+ position: absolute;
+ top: 200px;
+ left: 0;
+ width: 200px;
+ height: 200px;
+ border-shape: shape(from 0% 0%, line to 100% 0%, line to 50% 100%, close);
+ stroke: purple;
+ stroke-width: 20px;
+ background: green;
+ }
+</style>
+<div class="bs-target"></div>