function
Layer() — CSS reference
An import modifier names the cascade layer that receives the imported rules; it is not a normal property value function. Dotted names can represent nested layers. The bare layer keyword creates an anonymous layer. The example uses an embedded stylesheet URL and inspects the import rule, while an unlayered rule sets the visible color.
Formal Syntax & Structure
css syntaxcss
@import url("theme.css") layer(theme);Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>layer()</title><style>
@import url("data:text/css,%23a%7Bcolor%3Ared%7D") layer(theme); #a{color:blue}</style><body><div id="a">Example</div></body></html>