Status: FAIL | Duration: 16ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/selectors/nth-last-child-of-style-sharing-2.html
<!doctype html> <html> <head> <title>:nth-last-child correct style-sharing</title> <link rel="help" href="https://drafts.csswg.org/selectors-4/#child-index"> <link rel="match" href="nth-last-child-of-style-sharing-2-ref.html"> <style> :nth-last-child(3n+1 of .target) { background-color: lime; } </style> </head> <body> <p>Test that style-sharing does not ignore cases matching :nth-last-child(An+B of selector list).</p> <p class="target">Target</p> <p class="target">Target</p> <p class="target">Target</p> <p class="target">Target</p> <p class="target">Target</p> <p class="target">Target</p> <p class="target">Target</p> <p class="target">Target</p> <p class="target">Target</p> </body> </html>
/css/selectors/nth-last-child-of-style-sharing-2-ref.html
<!doctype html> <html> <body> <p>Test that style-sharing does not ignore cases matching :nth-last-child(An+B of selector list).</p> <p>Target</p> <p>Target</p> <p style="background-color: lime">Target</p> <p>Target</p> <p>Target</p> <p style="background-color: lime">Target</p> <p>Target</p> <p>Target</p> <p style="background-color: lime">Target</p> </body> </html>