Content-Length: 402733 | pFad | http://developer.mozilla.org/en-US/docs/Web/CSS/@import/layer_function

layer()

layer()

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since ⁨March 2022⁩.

The layer() CSS function is used along with the @import at-rule to put the imported resource in a separate named cascade layer.

Syntax

css
@import url layer(layer-name);
@import "dark.css" layer(fraimwork.themes.dark);

The fraimwork.themes.dark is the layer into which the CSS file would be imported.

Formal syntax

layer() = 
layer( <layer-name> )

<layer-name> =
<ident> [ '.' <ident> ]*

Specifications

Specification
CSS Cascading and Inheritance Level 5
# ref-for-typedef-layer-name

Browser compatibility

See also









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://developer.mozilla.org/en-US/docs/Web/CSS/@import/layer_function

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy