Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add @container at-rule #853

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions css/at-rules.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,20 @@
"status": "standard",
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@counter-style"
},
"@container": {
"syntax": "@container <container-condition># {\n <block-contents>\n}",
Copy link
Contributor

@skyclouds2001 skyclouds2001 Dec 24, 2024

Choose a reason for hiding this comment

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

Suggested change
"syntax": "@container <container-condition># {\n <block-contents>\n}",
"syntax": "@container <container-condition># {\n <block-contents>\n}",

the syntax need to add to syntaxes.json if it is not existed in that file

e.g. #835

Copy link
Member

Choose a reason for hiding this comment

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

I think this is still outstanding, right? I don't get any matches on this branch for @container aside from ./css/at-rules.json:

grep -r "@container" ./
./css/at-rules.json:  "@container": {
./css/at-rules.json:    "syntax": "@container <container-condition># {\n  <group-rule-body>\n}",
./css/at-rules.json:    "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@container"

Copy link
Author

@Netail Netail Jan 20, 2025

Choose a reason for hiding this comment

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

Copy link
Author

Choose a reason for hiding this comment

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

@skyclouds2001, do you happen to know the answer to these 3?

"interfaces": [
"CSSGroupingRule",
"CSSConditionRule",
"CSSContainerRule"
],
Netail marked this conversation as resolved.
Show resolved Hide resolved
"groups": [
"CSS Conditional Rules",
"CSS Containment"
],
Netail marked this conversation as resolved.
Show resolved Hide resolved
"status": "standard",
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@container"
},
"@document": {
"syntax": "@document [ <url> | url-prefix(<string>) | domain(<string>) | media-document(<string>) | regexp(<string>) ]# {\n <group-rule-body>\n}",
"interfaces": [
Expand Down