[ Web Proxy ]
URL:
Viewing: https://developer.mozilla.org/ja/docs/Web/API/CSSLayerStatementRule [Back]  [Original]

CSSLayerStatementRule - Web API | MDN

MDN Web Docs

View in English Always switch to English

CSSLayerStatementRule

Baseline

20223

CSSLayerStatementRule @layer CSSLayerBlockRule 1

CSS CSSLayerBlockRule

CSSRule CSSLayerStatementRule

CSSRule

HTML

html
<p></p>

CSS

css
@layer layerName, layerName2;

JavaScript

js
const item = document.getElementsByTagName("p")[0];
const rules = document.styleSheets[1].cssRules;
//  #1 
//  #0  MDN 

const layer = rules[0]; // CSSLayerStatementRule

item.textContent = ` CSS  @layer  ${layer.nameList.join(
  ", ",
)} `;

CSS Cascading and Inheritance Level 5
# csslayerstatementrule


Web Proxy Viewer  |  New URL  |  Original Page