Status: FAIL | Duration: 10ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-overflow/scroll-markers/scroll-marker-010.html
<!doctype html> <meta charset="utf-8"> <title>CSS Test: ::scroll-marker with counter-increment</title> <link rel="match" href="scroll-marker-010-ref.html"> <link rel="help" href="https://drafts.csswg.org/css-overflow-5/#scroll-marker-pseudo"> <style> #scroller { width: 600px; height: 300px; overflow: scroll; scroll-marker-group: after; counter-reset: test; } #scroller div { width: 600px; height: 300px; margin-bottom: 20px; background: green; } #scroller::scroll-marker-group { border: 3px solid black; padding: 5px; height: 60px; display: block; } #scroller div::scroll-marker { counter-increment: test; content: counter(test); width: 30px; height: 30px; background-color: blue; border-radius: 100%; display: inline-block; } #scroller #first::scroll-marker { background-color: purple; margin-right: 4px; } </style> <div id="scroller"> <div id="first"></div> <div></div> </div>
/css/css-overflow/scroll-markers/scroll-marker-010-ref.html
<!doctype html> <meta charset="utf-8"> <title>CSS Reference File: ::scroll-marker with ::scroll-marker-group after</title> <link rel="author" href="mailto:sakhapov@chromium.org"> <style> #scroller { width: 600px; height: 300px; overflow: scroll; } #scroller div { width: 600px; height: 300px; margin-bottom: 20px; background: green; } #scroll-marker-group { border: 3px solid black; height: 60px; padding: 5px; } #scroll-marker-group>div { display: inline-block; width: 30px; height: 30px; background-color: blue; border-radius: 100%; } #scroll-marker-group>#first { background-color: purple; } </style> <div id="scroller"> <div></div> <div></div> </div> <div id="scroll-marker-group"> <div id="first"><a href="#">1</a></div> <div><a href="#">2</a></div> </div>