Skip to content

Commit ada75ff

Browse files
lilleschromium-wpt-export-bot
authored andcommitted
Universal ::scroll-button() should not apply to every pseudo element
Missing check for IsScrollButtonPseudoElement() in SelectorChecker. Bug: 392541996 Change-Id: I32f8c370b1b9eef4d506e2853cc21af1b8020b49 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6198791 Commit-Queue: Daniil Sakhapov <[email protected]> Reviewed-by: Robert Flack <[email protected]> Reviewed-by: Daniil Sakhapov <[email protected]> Auto-Submit: Rune Lillesveen <[email protected]> Cr-Commit-Position: refs/heads/main@{#1411671}
1 parent 834e5e2 commit ada75ff

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<!DOCTYPE html>
2+
<title>CSS Overflow Test: ::scroll-button(*) style should not apply to ::before</title>
3+
<link rel="help" href="https://drafts.csswg.org/css-overflow-5/#scroll-buttons">
4+
<script src="/resources/testharness.js"></script>
5+
<script src="/resources/testharnessreport.js"></script>
6+
<style>
7+
#target::before {
8+
color: green;
9+
content: " ";
10+
}
11+
#target::scroll-button(*) {
12+
color: red;
13+
}
14+
</style>
15+
<div id="target"></div>
16+
<script>
17+
test(() => {
18+
assert_equals(getComputedStyle(target, "::before").color, "rgb(0, 128, 0)");
19+
}, "::before should not pick up style from ::scroll-button(*) rule");
20+
</script>

0 commit comments

Comments
 (0)