layer-stylesheet-sharing-important.html (653B)
1 <!doctype html> 2 <title>Test important style in anonymous layers with stylesheet sharing</title> 3 <link rel="help" href="https://drafts.csswg.org/css-cascade-5/#layering"> 4 <link rel="author" href="mailto:xiaochengh@chromium.org"> 5 <link rel="match" href="layer-stylesheet-sharing-ref.html"> 6 <style> 7 target { 8 display: block; 9 width: 100px; 10 height: 100px; 11 } 12 </style> 13 <link rel=stylesheet href="data:text/css,@layer{target{background-color:green !important}}"> 14 <style> 15 @layer A { target { background-color: red !important} } 16 </style> 17 <link rel=stylesheet href="data:text/css,@layer{target{background-color:green !important}}"> 18 <target></target>