1
0
Fork 0
firefox/testing/web-platform/tests/css/css-overflow/scroll-button-universal-before.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

20 lines
629 B
HTML

<!DOCTYPE html>
<title>CSS Overflow Test: ::scroll-button(*) style should not apply to ::before</title>
<link rel="help" href="https://drafts.csswg.org/css-overflow-5/#scroll-buttons">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<style>
#target::before {
color: green;
content: " ";
}
#target::scroll-button(*) {
color: red;
}
</style>
<div id="target"></div>
<script>
test(() => {
assert_equals(getComputedStyle(target, "::before").color, "rgb(0, 128, 0)");
}, "::before should not pick up style from ::scroll-button(*) rule");
</script>