nth-last-child-specificity-1-ref.html (773B)
1 <!doctype html> 2 <html> 3 <body> 4 <p>This test the specificity of :nth-last-child() with static specificity. The test passes if the text "target" is displayed white on green background. There should be 2 red rects on each side.</p> 5 <div> 6 <foo style="color: red; background-color: red;">Not target</foo> 7 <padding></padding> 8 <bar style="color: red; background-color: red;">Not target</bar> 9 <more-padding></more-padding> 10 <target style="color: white; background-color: green;">Target</target> 11 <more-padding></more-padding> 12 <foo style="color: red; background-color: red;">Not target</foo> 13 <padding></padding> 14 <bar style="color: red; background-color: red;">Not target</bar> 15 </div> 16 </body> 17 </html>