From d9e852bff08220a2a2417f5e9729662cb9e9952e Mon Sep 17 00:00:00 2001 From: Rune Lillesveen Date: Wed, 25 Mar 2026 09:08:26 -0700 Subject: [PATCH] Add tentative scroll-state(stuck) for snapshot timing after scroll Per HTML spec PR[1], run snapshot post-layout state steps is invoked after layout for each iteration in the resizeObserver loop. Add a scroll-state() container query test that makes sure a scroll after the resizeObserver loop does not take effect until after the style/layout update in the next resizeObserver loop. [1] https://github.com/whatwg/html/pull/11613/ Bug: 384523570 Change-Id: I9dcf3052db7e04a4c04ecf908d92bb2f85e3d9d8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7691376 Commit-Queue: Rune Lillesveen Reviewed-by: Anders Hartvoll Ruud Cr-Commit-Position: refs/heads/main@{#1604862} --- ...stuck-snapshot-after-scroll.tentative.html | 104 ++++++++++++++++++ 1 file changed, 104 insertions(+) create mode 100644 css/css-conditional/container-queries/scroll-state/scroll-state-stuck-snapshot-after-scroll.tentative.html diff --git a/css/css-conditional/container-queries/scroll-state/scroll-state-stuck-snapshot-after-scroll.tentative.html b/css/css-conditional/container-queries/scroll-state/scroll-state-stuck-snapshot-after-scroll.tentative.html new file mode 100644 index 00000000000000..73e77a45b93fc3 --- /dev/null +++ b/css/css-conditional/container-queries/scroll-state/scroll-state-stuck-snapshot-after-scroll.tentative.html @@ -0,0 +1,104 @@ + +@container: scroll-state(stuck) post-layout snapshot after scroll + + + + + +
+
+ +
+
+
+
+
+