Status: FAIL | Duration: 10ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/selectors/nth-of-selector-before.html
<!DOCTYPE html> <title>CSS Selectors Test: :nth-child(N of S) with ::before</title> <link rel="help" href="https://drafts.csswg.org/selectors/#the-nth-child-pseudo"> <link rel="match" href="/css/reference/pass_if_pass_below.html"> <style> .pass:nth-child(2 of .item)::before { content: "PASS"; } </style> <p>Test passes if there is the word "PASS" below.</p> <div> <span class="item"></span> <span class="item pass"></span> </div>
/css/reference/pass_if_pass_below.html
<!doctype html> <html> <head> <title>Reference rendering - passes if there is the word "PASS" below</title> <link rel="author" title="Opera" href="https://www.opera.com/"> </head> <body> <p>Test passes if there is the word "PASS" below.</p> <div>PASS</div> </body> </html>