is-where-pseudo-elements-ref.html (666B)
1 <!DOCTYPE html> 2 <title>:is() combined with pseudo elements</title> 3 <link rel="help" href="https://drafts.csswg.org/selectors-4/#matches"> 4 <style> 5 #b::before, #d::before { 6 content: "before "; 7 color: green; 8 } 9 #e::after, #h::after { 10 content: " after"; 11 color: green; 12 } 13 #a::first-letter, #b::first-letter { 14 color: blue; 15 } 16 #g::first-line, #l::first-line { 17 color: magenta; 18 } 19 </style> 20 <main id=main> 21 <div id=a>a</div> 22 <div id=b>b</div> 23 <div id=c>c</div> 24 <div id=d>d</div> 25 <div id=e>e</div> 26 <div id=f>f</div> 27 <div id=g>g</div> 28 <div id=h>h</div> 29 <div id=j>j</div> 30 <div id=k>k</div> 31 <div id=l>l<br>l2</div> 32 </main>