From 5a502190cceaf65e55e086d68014504236b455f0 Mon Sep 17 00:00:00 2001 From: Rune Lillesveen Date: Tue, 25 Jun 2024 00:43:18 -0700 Subject: [PATCH] [css-anchor-position] Missing check for PositionAnchor The presence of position-anchor will affect the passes in OutOfFlowLayoutPart::CalculateOffset(), hence need to be taken into account for storing old style to trigger transitions correctly. This fixes the added test, but not the case in the bug report. Will need to look further into that. Bug: 344506496 Change-Id: I07938b325485f75de35b5f2fd382401257efe061 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5645058 Reviewed-by: Anders Hartvoll Ruud Commit-Queue: Rune Lillesveen Cr-Commit-Position: refs/heads/main@{#1318987} --- .../anchor-transition-focus.html | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 css/css-anchor-position/anchor-transition-focus.html diff --git a/css/css-anchor-position/anchor-transition-focus.html b/css/css-anchor-position/anchor-transition-focus.html new file mode 100644 index 00000000000000..4533fa80e4dd28 --- /dev/null +++ b/css/css-anchor-position/anchor-transition-focus.html @@ -0,0 +1,43 @@ + +CSS Anchor Positioning Test: Transition with unused position-anchor + + + + +
Focus me
+
Anchored
+