From 0592f089cd5975ca8d3646f5b62c9a511c7e9d1a Mon Sep 17 00:00:00 2001 From: Noam Rosenthal Date: Wed, 23 Oct 2024 06:42:47 -0700 Subject: [PATCH] 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} --- .../box-model-capture-nested-ref.html | 39 +++++++++++ .../box-model-capture-nested.tentative.html | 66 +++++++++++++++++++ 2 files changed, 105 insertions(+) create mode 100644 css/css-view-transitions/layered-capture/box-model-capture-nested-ref.html create mode 100644 css/css-view-transitions/layered-capture/box-model-capture-nested.tentative.html diff --git a/css/css-view-transitions/layered-capture/box-model-capture-nested-ref.html b/css/css-view-transitions/layered-capture/box-model-capture-nested-ref.html new file mode 100644 index 00000000000000..6610adc9f71ce8 --- /dev/null +++ b/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/css/css-view-transitions/layered-capture/box-model-capture-nested.tentative.html b/css/css-view-transitions/layered-capture/box-model-capture-nested.tentative.html new file mode 100644 index 00000000000000..be8eea0cf70d62 --- /dev/null +++ b/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