scope-implicit-005-print.html (617B)
1 <!DOCTYPE html> 2 <link rel="author" title="David Shin" href="mailto:dshin@mozilla.com"> 3 <link rel="help" href="drafts.csswg.org/css-cascade-6/#scoped-styles"> 4 <link rel="match" href="../reference/ref-filled-green-100px-square-only.html"> 5 <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1930618"> 6 <div> 7 <p>Test passes if there is a filled green square.</p> 8 <div> 9 <template shadowrootmode=open> 10 <style> 11 @scope { 12 .a { 13 width: 100px; 14 height: 100px; 15 background: green; 16 } 17 } 18 </style> 19 <div class="a"></div> 20 </template> 21 </div> 22 </div>