From c9bc6e37154a5f4516608cb18d9e76f2b95d9f81 Mon Sep 17 00:00:00 2001 From: skyclouds2001 <95597335+skyclouds2001@users.noreply.github.com> Date: Thu, 26 Dec 2024 00:55:27 +0800 Subject: [PATCH 1/3] feat(css): Add/Fix interfaces field of at-rules --- css/at-rules.json | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/css/at-rules.json b/css/at-rules.json index 66ed610e..2b358849 100644 --- a/css/at-rules.json +++ b/css/at-rules.json @@ -123,8 +123,7 @@ "@document": { "syntax": "@document [ | url-prefix() | domain() | media-document() | regexp() ]# {\n \n}", "interfaces": [ - "CSSGroupingRule", - "CSSConditionRule" + "CSSDocumentRule" ], "groups": [ "CSS Conditional Rules" @@ -288,6 +287,9 @@ }, "@font-palette-values": { "syntax": "@font-palette-values {\n \n}", + "interfaces": [ + "CSSFontPaletteValuesRule" + ], "groups": [ "CSS Fonts" ], @@ -328,6 +330,9 @@ }, "@import": { "syntax": "@import [ | ]\n [ layer | layer() ]?\n [ supports( [ | ] ) ]?\n ? ;", + "interfaces": [ + "CSSImportRule" + ], "groups": [ "CSS Conditional Rules", "Media Queries" @@ -362,10 +367,7 @@ "@media": { "syntax": "@media {\n \n}", "interfaces": [ - "CSSGroupingRule", - "CSSConditionRule", - "CSSMediaRule", - "CSSCustomMediaRule" + "CSSMediaRule" ], "groups": [ "CSS Conditional Rules", @@ -376,6 +378,9 @@ }, "@namespace": { "syntax": "@namespace ? [ | ];", + "interfaces": [ + "CSSNamespaceRule" + ], "groups": [ "CSS Namespaces" ], @@ -459,7 +464,6 @@ "@property": { "syntax": "@property {\n \n}", "interfaces": [ - "CSS", "CSSPropertyRule" ], "groups": [ @@ -502,6 +506,9 @@ }, "@scope": { "syntax": "@scope [()]? [to ()]? {\n \n}", + "interfaces": [ + "CSSScopeRule" + ], "groups": [ "CSS Conditional Rules" ], @@ -522,8 +529,6 @@ "@supports": { "syntax": "@supports {\n \n}", "interfaces": [ - "CSSGroupingRule", - "CSSConditionRule", "CSSSupportsRule" ], "groups": [ From e57d9e0c16c5aa39a48798f46737f71e09a34354 Mon Sep 17 00:00:00 2001 From: skyclouds2001 <95597335+skyclouds2001@users.noreply.github.com> Date: Sat, 11 Jan 2025 10:52:49 +0800 Subject: [PATCH 2/3] Update at-rules.md --- css/at-rules.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/css/at-rules.md b/css/at-rules.md index 494823b3..a13ad8d0 100644 --- a/css/at-rules.md +++ b/css/at-rules.md @@ -27,7 +27,7 @@ The 3 properties seen above are all required: There are 3 more properties that are optional: * `mdn_url` (string): a URL linking to the at-rule's page on MDN. This URL must omit the localization part of the URL (such as `en-US/`). -* `interfaces` (array of strings): These are the [CSSOM](https://developer.mozilla.org/en-US/docs/Web/API/CSS_Object_Model) interfaces that belong to the at-rule. +* `interfaces` (array of strings): These are the [CSSOM](https://developer.mozilla.org/en-US/docs/Web/API/CSS_Object_Model) interfaces that belong to the at-rule. Note that inherit interfaces like `CSSGroupingRule` or `CSSConditionRule` should not be included. * `descriptors` (object): see below ## Structure for at-rules with descriptors From 04371c773d224fc3394979a060f704a5f2567c20 Mon Sep 17 00:00:00 2001 From: Brian Smith Date: Wed, 15 Jan 2025 10:11:35 +0100 Subject: [PATCH 3/3] Update css/at-rules.md --- css/at-rules.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/css/at-rules.md b/css/at-rules.md index a13ad8d0..70e0421e 100644 --- a/css/at-rules.md +++ b/css/at-rules.md @@ -27,7 +27,7 @@ The 3 properties seen above are all required: There are 3 more properties that are optional: * `mdn_url` (string): a URL linking to the at-rule's page on MDN. This URL must omit the localization part of the URL (such as `en-US/`). -* `interfaces` (array of strings): These are the [CSSOM](https://developer.mozilla.org/en-US/docs/Web/API/CSS_Object_Model) interfaces that belong to the at-rule. Note that inherit interfaces like `CSSGroupingRule` or `CSSConditionRule` should not be included. +* `interfaces` (array of strings): These are the [CSSOM](https://developer.mozilla.org/en-US/docs/Web/API/CSS_Object_Model) interfaces that belong to the at-rule. Note that inherited interfaces like `CSSGroupingRule` or `CSSConditionRule` should not be included. * `descriptors` (object): see below ## Structure for at-rules with descriptors