commit ea3c5cf1faa089408c86b9cd9536c426c22d5d64 parent fd2f344cfcfffe56fe2cc7ad7cbfb683360d837f Author: Daniil Sakhapov <sakhapov@chromium.org> Date: Wed, 15 Oct 2025 08:22:14 +0000 Bug 1993504 [wpt PR 55318] - Implement parsing of <geometry-box> for border-shape, a=testonly Automatic update from web-platform-tests Implement parsing of <geometry-box> for border-shape Bug: 443295354 Change-Id: I1fe4c2d0438016978bbed3445a61e2cd42a9e75c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7021191 Reviewed-by: Philip Rogers <pdr@chromium.org> Commit-Queue: Daniil Sakhapov <sakhapov@chromium.org> Cr-Commit-Position: refs/heads/main@{#1527365} -- wpt-commits: 076b83e2b716fb361d198136db749390920533e5 wpt-pr: 55318 Diffstat:
3 files changed, 15 insertions(+), 3 deletions(-)
diff --git a/testing/web-platform/tests/css/css-borders/tentative/parsing/border-shape-computed.html b/testing/web-platform/tests/css/css-borders/tentative/parsing/border-shape-computed.html @@ -15,5 +15,11 @@ test_computed_value("border-shape", "polygon(10px 10px, 100px 10px, 10px 100px)" test_computed_value("border-shape", "shape(from 0px 0px, hline to 100px, vline to 100px, close)"); test_computed_value("border-shape", "circle() circle()", "circle()"); test_computed_value("border-shape", "circle() polygon(10px 10px, 100px 10px, 10px 100px)"); - +test_computed_value("border-shape", "circle() content-box"); +test_computed_value("border-shape", "circle() border-box", "circle()"); +test_computed_value("border-shape", "circle() border-box polygon(10px 10px, 100px 10px, 10px 100px) border-box", "circle() polygon(10px 10px, 100px 10px, 10px 100px)"); +test_computed_value("border-shape", "circle() padding-box polygon(10px 10px, 100px 10px, 10px 100px) border-box", "circle() padding-box polygon(10px 10px, 100px 10px, 10px 100px)"); +test_computed_value("border-shape", "circle() padding-box polygon(10px 10px, 100px 10px, 10px 100px) padding-box", "circle() padding-box polygon(10px 10px, 100px 10px, 10px 100px) padding-box"); +test_computed_value("border-shape", "circle() polygon(10px 10px, 100px 10px, 10px 100px) border-box", "circle() polygon(10px 10px, 100px 10px, 10px 100px)"); +test_computed_value("border-shape", "circle() polygon(10px 10px, 100px 10px, 10px 100px) content-box", "circle() polygon(10px 10px, 100px 10px, 10px 100px) content-box"); </script> \ No newline at end of file diff --git a/testing/web-platform/tests/css/css-borders/tentative/parsing/border-shape-invalid.html b/testing/web-platform/tests/css/css-borders/tentative/parsing/border-shape-invalid.html @@ -11,5 +11,11 @@ test_invalid_value("border-shape", "polygon(bla 10px 10px, 100px 10px, 10px 100p test_invalid_value("border-shape", "shape()"); test_invalid_value("border-shape", "nonsense"); test_invalid_value("border-shape", "1px"); - +test_invalid_value("border-shape", "circle() padding-box margin-box"); +test_invalid_value("border-shape", "padding-box margin-box"); +test_invalid_value("border-shape", "padding-box"); +test_invalid_value("border-shape", "padding-box circle()"); +test_invalid_value("border-shape", "circle() padding-box margin-box circle()"); +test_invalid_value("border-shape", "circle() padding-box circle() margin-box circle()"); +test_invalid_value("border-shape", "circle() padding-box circle() margin-box padding-box"); </script> \ No newline at end of file diff --git a/testing/web-platform/tests/css/css-borders/tentative/parsing/border-shape-valid.html b/testing/web-platform/tests/css/css-borders/tentative/parsing/border-shape-valid.html @@ -12,5 +12,5 @@ test_valid_value("border-shape", "polygon(10px 10px, 100px 10px, 10px 100px)"); test_valid_value("border-shape", "shape(from 0px 0px, hline to 100px, vline to 100px, close)"); test_valid_value("border-shape", "circle() circle()", "circle()"); test_valid_value("border-shape", "circle() polygon(10px 10px, 100px 10px, 10px 100px)"); - +test_valid_value("border-shape", "circle() border-box circle() content-box"); </script> \ No newline at end of file