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": [ diff --git a/css/at-rules.md b/css/at-rules.md index 494823b3..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. +* `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 diff --git a/css/functions.json b/css/functions.json index 3e9482b3..8725a8aa 100644 --- a/css/functions.json +++ b/css/functions.json @@ -69,7 +69,7 @@ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/attr" }, "blur()": { - "syntax": "blur( )", + "syntax": "blur( ? )", "groups": [ "Filter Effects" ], @@ -77,7 +77,7 @@ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/filter-function/blur" }, "brightness()": { - "syntax": "brightness( )", + "syntax": "brightness( [ | ]? )", "groups": [ "Filter Effects" ], @@ -145,10 +145,9 @@ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/gradient/conic-gradient" }, "contrast()": { - "syntax": "contrast( [ ] )", + "syntax": "contrast( [ | ]? )", "groups": [ - "Filter Effects", - "CSS Color" + "Filter Effects" ], "status": "standard", "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/filter-function/contrast" @@ -188,10 +187,9 @@ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/cross-fade" }, "drop-shadow()": { - "syntax": "drop-shadow( {2,3} ? )", + "syntax": "drop-shadow( [ ? && {2,3} ] )", "groups": [ - "Filter Effects", - "CSS Color" + "Filter Effects" ], "status": "standard", "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/filter-function/drop-shadow" @@ -238,10 +236,9 @@ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/fit-content_function" }, "grayscale()": { - "syntax": "grayscale( )", + "syntax": "grayscale( [ | ]? )", "groups": [ - "Filter Effects", - "CSS Color" + "Filter Effects" ], "status": "standard", "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/filter-function/grayscale" @@ -263,10 +260,9 @@ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/color_value/hsl" }, "hue-rotate()": { - "syntax": "hue-rotate( )", + "syntax": "hue-rotate( [ | ]? )", "groups": [ - "Filter Effects", - "CSS Color" + "Filter Effects" ], "status": "standard", "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/filter-function/hue-rotate" @@ -313,10 +309,9 @@ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/basic-shape/inset" }, "invert()": { - "syntax": "invert( )", + "syntax": "invert( [ | ]? )", "groups": [ - "Filter Effects", - "CSS Color" + "Filter Effects" ], "status": "standard", "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/filter-function/invert" @@ -447,10 +442,9 @@ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/color_value/oklch" }, "opacity()": { - "syntax": "opacity( [ ] )", + "syntax": "opacity( [ | ]? )", "groups": [ - "Filter Effects", - "CSS Color" + "Filter Effects" ], "status": "standard", "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/filter-function/opacity" @@ -624,10 +618,9 @@ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/round" }, "saturate()": { - "syntax": "saturate( )", + "syntax": "saturate( [ | ]? )", "groups": [ - "Filter Effects", - "CSS Color" + "Filter Effects" ], "status": "standard", "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/filter-function/saturate" @@ -681,10 +674,9 @@ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/animation-timeline/scroll" }, "sepia()": { - "syntax": "sepia( )", + "syntax": "sepia( [ | ]? )", "groups": [ - "Filter Effects", - "CSS Color" + "Filter Effects" ], "status": "standard", "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/filter-function/sepia" diff --git a/css/syntaxes.json b/css/syntaxes.json index 34530635..20e41cd8 100644 --- a/css/syntaxes.json +++ b/css/syntaxes.json @@ -99,10 +99,10 @@ "syntax": "normal | multiply | screen | overlay | darken | lighten | color-dodge | color-burn | hard-light | soft-light | difference | exclusion | hue | saturation | color | luminosity" }, "blur()": { - "syntax": "blur( )" + "syntax": "blur( ? )" }, "brightness()": { - "syntax": "brightness( )" + "syntax": "brightness( [ | ]? )" }, "calc()": { "syntax": "calc( )" @@ -222,7 +222,7 @@ "syntax": "[ contextual | no-contextual ]" }, "contrast()": { - "syntax": "contrast( [ ] )" + "syntax": "contrast( [ | ]? )" }, "coord-box": { "syntax": " | view-box" @@ -288,7 +288,7 @@ "syntax": "block | inline | run-in" }, "drop-shadow()": { - "syntax": "drop-shadow( {2,3} ? )" + "syntax": "drop-shadow( [ ? && {2,3} ] )" }, "easing-function": { "syntax": "linear | | " @@ -393,7 +393,7 @@ "syntax": " | | | | | " }, "grayscale()": { - "syntax": "grayscale( )" + "syntax": "grayscale( [ | ]? )" }, "grid-line": { "syntax": "auto | | [ && ? ] | [ span && [ || ] ]" @@ -414,7 +414,7 @@ "syntax": "[ shorter | longer | increasing | decreasing ] hue" }, "hue-rotate()": { - "syntax": "hue-rotate( )" + "syntax": "hue-rotate( [ | ]? )" }, "hwb()": { "syntax": "hwb( [ | none] [ | none] [ | none] [ / [ | none] ]? )" @@ -450,7 +450,7 @@ "syntax": "inset( {1,4} [ round <'border-radius'> ]? )" }, "invert()": { - "syntax": "invert( )" + "syntax": "invert( [ | ]? )" }, "keyframe-block": { "syntax": "# {\n \n}" @@ -627,7 +627,7 @@ "syntax": "oklch( [ | | none] [ | | none] [ | none] [ / [ | none] ]? )" }, "opacity()": { - "syntax": "opacity( [ ] )" + "syntax": "opacity( [ | ]? )" }, "opacity-value": { "syntax": " | " @@ -783,7 +783,7 @@ "syntax": "nearest | up | down | to-zero" }, "saturate()": { - "syntax": "saturate( )" + "syntax": "saturate( [ | ]? )" }, "scale()": { "syntax": "scale( [ | ]#{1,2} )" @@ -819,7 +819,7 @@ "syntax": "center | start | end | self-start | self-end | flex-start | flex-end" }, "sepia()": { - "syntax": "sepia( )" + "syntax": "sepia( [ | ]? )" }, "shadow": { "syntax": "inset? && {2,4} && ?"