From ecf33fbeacd7875ea8dd607450710d6d91ca560b Mon Sep 17 00:00:00 2001 From: Noam Rosenthal Date: Thu, 24 Oct 2024 21:23:28 +0000 Subject: [PATCH] Bug 1926578 [wpt PR 48771] - Nested view transitions: adjust for border offset, a=testonly Automatic update from web-platform-tests Nested view transitions: adjust for border offset Make sure the border width is only applied once when nesting. Since the parent group receives the border width and the child group computes its target transform based on its original position, by default the top/left border widths are considered twice. Adjust for this when computing the nested group transform. See https://github.com/w3c/csswg-drafts/issues/10585 Bug: 347947051 Change-Id: I2f4c42cd861d41bbd8c99586946745ffcf1a4913 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5946105 Reviewed-by: Jeremy Roman Reviewed-by: Mike West Commit-Queue: Noam Rosenthal Cr-Commit-Position: refs/heads/main@{#1372661} -- wpt-commits: 67bc1c1811ee7e7013ff5e15ecffe7b520d35ce1 wpt-pr: 48771 --- .../box-model-capture-nested-ref.html | 39 +++++++++++ .../box-model-capture-nested.tentative.html | 66 +++++++++++++++++++ 2 files changed, 105 insertions(+) create mode 100644 testing/web-platform/tests/css/css-view-transitions/layered-capture/box-model-capture-nested-ref.html create mode 100644 testing/web-platform/tests/css/css-view-transitions/layered-capture/box-model-capture-nested.tentative.html diff --git a/testing/web-platform/tests/css/css-view-transitions/layered-capture/box-model-capture-nested-ref.html b/testing/web-platform/tests/css/css-view-transitions/layered-capture/box-model-capture-nested-ref.html new file mode 100644 index 000000000000..6610adc9f71c --- /dev/null +++ b/testing/web-platform/tests/css/css-view-transitions/layered-capture/box-model-capture-nested-ref.html @@ -0,0 +1,39 @@ + + +Box model is copied to group style + + + + +
+
+
+ \ No newline at end of file diff --git a/testing/web-platform/tests/css/css-view-transitions/layered-capture/box-model-capture-nested.tentative.html b/testing/web-platform/tests/css/css-view-transitions/layered-capture/box-model-capture-nested.tentative.html new file mode 100644 index 000000000000..be8eea0cf70d --- /dev/null +++ b/testing/web-platform/tests/css/css-view-transitions/layered-capture/box-model-capture-nested.tentative.html @@ -0,0 +1,66 @@ + + +Box model is copied to group style + + + + + + +
+
+
+ + \ No newline at end of file