| <!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> |