nth-last-child-specificity-3-ref.html (988B)
1 <!doctype html> 2 <html> 3 <head> 4 <style> 5 target { 6 display: block; 7 margin: 2px; 8 } 9 </style> 10 </head> 11 <body> 12 <div> 13 <target>Black text.</target> 14 <target>Black text.</target> 15 <target style="color:white; background-color:red; border: 5px solid purple;">White text on red background with purple border.</target> 16 <target style="color:red; border: 5px solid black;">Red text with black border.</target> 17 <target style="color:white; background-color:red; border: 5px solid purple;">White text on red background with purple border.</target> 18 <target style="border: 5px solid blue;">Black text with blue border.</target> 19 <target style="color:white; background-color:red; border: 5px solid purple;">White text on red background with purple border.</target> 20 <target style="color:red; background-color:green; border: 5px solid blue;">Red text on green background with blue border.</target> 21 </div> 22 </body> 23 </html>