nth-last-child-of-style-sharing-2.html (743B)
1 <!doctype html> 2 <html> 3 <head> 4 <title>:nth-last-child correct style-sharing</title> 5 <link rel="help" href="https://drafts.csswg.org/selectors-4/#child-index"> 6 <link rel="match" href="nth-last-child-of-style-sharing-2-ref.html"> 7 <style> 8 :nth-last-child(3n+1 of .target) { 9 background-color: lime; 10 } 11 </style> 12 </head> 13 <body> 14 <p>Test that style-sharing does not ignore cases matching :nth-last-child(An+B of selector list).</p> 15 <p class="target">Target</p> 16 <p class="target">Target</p> 17 <p class="target">Target</p> 18 <p class="target">Target</p> 19 <p class="target">Target</p> 20 <p class="target">Target</p> 21 <p class="target">Target</p> 22 <p class="target">Target</p> 23 <p class="target">Target</p> 24 </body> 25 </html>