Skip to content

Commit d1b4560

Browse files
lillesmoz-wptsync-bot
authored andcommitted
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: w3c/csswg-drafts#11213 (comment) Spec PR: w3c/csswg-drafts#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
1 parent 6b77ef4 commit d1b4560

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<!DOCTYPE html>
2+
<title>CSS Overflow Test: Size container for ::scroll-marker-group</title>
3+
<link rel="help" href="https://drafts.csswg.org/css-overflow-5/#scroll-marker-group-property">
4+
<link rel="help" href="https://drafts.csswg.org/css-conditional-5/#container-queries">
5+
<script src="/resources/testharness.js"></script>
6+
<script src="/resources/testharnessreport.js"></script>
7+
<style>
8+
#container {
9+
container-type: inline-size;
10+
width: 400px;
11+
}
12+
#scroller {
13+
container-type: inline-size;
14+
overflow: auto;
15+
width: 200px;
16+
height: 200px;
17+
scroll-marker-group: before;
18+
@container (width = 400px) {
19+
&::scroll-marker-group { --test: pass; }
20+
}
21+
}
22+
</style>
23+
<div id="container">
24+
<div id="scroller">
25+
<div id="target"></div>
26+
</div>
27+
</div>
28+
<script>
29+
test(() => {
30+
assert_equals(getComputedStyle(scroller, "::scroll-marker-group").getPropertyValue("--test"), "pass");
31+
}, "::scroll-marker-group skips originating element for size queries");
32+
</script>

0 commit comments

Comments
 (0)