has-style-sharing-pseudo-005-ref.html (606B)
1 <!DOCTYPE html> 2 <link rel="author" title="David Shin" href="mailto:dshin@mozilla.com"> 3 <link rel="help" href="https://drafts.csswg.org/selectors-4/#relational"> 4 <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1876962"> 5 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css"> 6 <meta name="assert" content="Ensure that style sharing optimizations do not interfere with :has() selector matching."> 7 <style> 8 div { 9 width: 20px; 10 height: 20px; 11 } 12 13 .after::after { 14 font: 15px/1 Ahem; 15 content: "x"; 16 } 17 </style> 18 <div><div class="after"><span></span></div></div> 19 <div><div></div></div>