Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-cascade/layer-stylesheet-sharing.html - WPT Dashboard Interop Dashboard
<!doctype html>
<title>Test anonymous layers with stylesheet sharing</title>
<link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
<link rel="match" href="layer-stylesheet-sharing-ref.html">
<style>
target {
display: block;
width: 100px;
height: 100px;
}
</style>
<link rel=stylesheet href="data:text/css,@layer{target{background-color:green}}">
<style>
@layer A { target { background-color: red } }
</style>
<link rel=stylesheet href="data:text/css,@layer{target{background-color:green}}">
<target></target>