commit d1b45608f0976e56f44e547a5ba6b15f339d35e4 parent 6b77ef454878a1280d89197baa83a3237e08d52f Author: Rune Lillesveen <futhark@chromium.org> Date: Tue, 21 Oct 2025 10:31:55 +0000 Bug 1994801 [wpt PR 55483] - ::scroll-marker-group size container can not be its scroller, a=testonly Automatic update from web-platform-tests ::scroll-marker-group size container can not be its scroller Confirmed by spec resolution: https://github.com/w3c/csswg-drafts/issues/11213#issuecomment-3407344774 Spec PR: https://github.com/w3c/csswg-drafts/pull/12960 Bug: 452345165 Change-Id: Icd0a5ad9306250b209075ccecc394c6f14ed76be Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7047440 Reviewed-by: Anders Hartvoll Ruud <andruud@chromium.org> Commit-Queue: Rune Lillesveen <futhark@chromium.org> Cr-Commit-Position: refs/heads/main@{#1531255} -- wpt-commits: b821fbd13b9df4efde0886df0fd1e33920809e34 wpt-pr: 55483 Diffstat:
| A | testing/web-platform/tests/css/css-overflow/scroll-marker-group-size-container-query.html | | | 32 | ++++++++++++++++++++++++++++++++ |
1 file changed, 32 insertions(+), 0 deletions(-)
diff --git a/testing/web-platform/tests/css/css-overflow/scroll-marker-group-size-container-query.html b/testing/web-platform/tests/css/css-overflow/scroll-marker-group-size-container-query.html @@ -0,0 +1,32 @@ +<!DOCTYPE html> +<title>CSS Overflow Test: Size container for ::scroll-marker-group</title> +<link rel="help" href="https://drafts.csswg.org/css-overflow-5/#scroll-marker-group-property"> +<link rel="help" href="https://drafts.csswg.org/css-conditional-5/#container-queries"> +<script src="/resources/testharness.js"></script> +<script src="/resources/testharnessreport.js"></script> +<style> + #container { + container-type: inline-size; + width: 400px; + } + #scroller { + container-type: inline-size; + overflow: auto; + width: 200px; + height: 200px; + scroll-marker-group: before; + @container (width = 400px) { + &::scroll-marker-group { --test: pass; } + } + } +</style> +<div id="container"> + <div id="scroller"> + <div id="target"></div> + </div> +</div> +<script> + test(() => { + assert_equals(getComputedStyle(scroller, "::scroll-marker-group").getPropertyValue("--test"), "pass"); + }, "::scroll-marker-group skips originating element for size queries"); +</script>