Skip to content

Enhance @layer documentation for clarity and accuracy#44238

Open
kingma-sbw wants to merge 2 commits into
mdn:mainfrom
kingma-sbw:patch-4
Open

Enhance @layer documentation for clarity and accuracy#44238
kingma-sbw wants to merge 2 commits into
mdn:mainfrom
kingma-sbw:patch-4

Conversation

@kingma-sbw
Copy link
Copy Markdown
Contributor

Clarified the explanation of the @layer at-rule, emphasizing the precedence of styles and the creation of anonymous layers. Improved the wording for better understanding.

Description

For clarity the order of the descriptions are slightly reordered. Also the three types of @layer usage is defined more clearly with named sections.

Motivation

For clarity and better understanding and exploring the impacts of layering.

Additional details

The original description was not incorrect but a slight change in order and better description and comparison with normal behaviour should make the uscase a bit clearer

Related issues and pull requests

Clarified the explanation of the @layer at-rule, emphasizing the precedence of styles and the creation of anonymous layers. Improved the wording for better understanding.
@kingma-sbw kingma-sbw requested a review from a team as a code owner May 24, 2026 16:10
@kingma-sbw kingma-sbw requested review from dipikabh and removed request for a team May 24, 2026 16:11
@github-actions github-actions Bot added Content:CSS Cascading Style Sheets docs size/s [PR only] 6-50 LoC changed labels May 24, 2026
Comment thread files/en-us/web/css/reference/at-rules/@layer/index.md Outdated
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 24, 2026

Preview URLs (1 page)

(comment last updated: 2026-05-24 16:15:45)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Copy link
Copy Markdown
Contributor Author

@kingma-sbw kingma-sbw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:CSS Cascading Style Sheets docs size/s [PR only] 6-50 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants