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.
Die layer()
-CSS-Funktion wird zusammen mit der @import
-Regel verwendet, um die importierte Ressource in einer separaten benannten Kaskadenschicht zu platzieren.
Syntax
css
@import url layer(layer-name);
@import "dark.css" layer(framework.themes.dark);
Das framework.themes.dark
ist die Schicht, in die die CSS-Datei importiert würde.
Formale Syntax
Error: could not find syntax for this item
Spezifikationen
Specification |
---|
CSS Cascading and Inheritance Level 5 # ref-for-typedef-layer-name |
Browser-Kompatibilität
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
layer() |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.