Skip to content

Commit

Permalink
Merge branch 'main' into pseudo-elements-css2-syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
bsmth authored Dec 30, 2024
2 parents a910bd9 + 9934f04 commit aa06f26
Show file tree
Hide file tree
Showing 13 changed files with 57 additions and 21 deletions.
2 changes: 1 addition & 1 deletion css/at-rules.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ The 3 properties seen above are all required:

* `syntax` (string): This is the formal syntax of the at-rule and is usually found in the specification.
* `groups` (array of strings): CSS is organized in modules like "CSS Fonts" or "CSS Animations". MDN organizes features in these groups as well — `groups` should contain the name of the module(s) the at-rule is defined in.
* `status` (enum string): This is either `standard`, `nonstandard`, or `experimental` depending on the standardization status of the feature.
* `status` (enum string): This is either `standard`, `nonstandard`, `experimental` or `obsolete` depending on the standardization status of the feature.

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/`).
Expand Down
6 changes: 4 additions & 2 deletions css/at-rules.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@
"enum": [
"standard",
"nonstandard",
"experimental"
"experimental",
"obsolete"
]
},
"mdn_url": {
Expand All @@ -118,7 +119,8 @@
"enum": [
"standard",
"nonstandard",
"experimental"
"experimental",
"obsolete"
]
},
"mdn_url": {
Expand Down
3 changes: 2 additions & 1 deletion css/definitions.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@
"CSS Animations",
"CSS Backgrounds and Borders",
"CSS Basic User Interface",
"CSS Box Model",
"CSS Box Alignment",
"CSS Box Model",
"CSS Box Sizing",
"CSS Break",
"CSS Cascading and Inheritance",
"CSS Charsets",
Expand Down
2 changes: 1 addition & 1 deletion css/functions.json
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@
"CSS Color"
],
"status": "standard",
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/gradient/repeating-linear-gradient"
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/gradient/repeating-radial-gradient"
},
"rgb()": {
"syntax": "rgb( <percentage>{3} [ / <alpha-value> ]? ) | rgb( <number>{3} [ / <alpha-value> ]? ) | rgb( <percentage>#{3} , <alpha-value>? ) | rgb( <number>#{3} , <alpha-value>? )",
Expand Down
36 changes: 26 additions & 10 deletions css/properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -1686,6 +1686,22 @@
"order": "uniqueOrder",
"status": "nonstandard"
},
"-webkit-user-select": {
"syntax": "auto | text | none | all",
"media": "visual",
"inherited": false,
"animationType": "discrete",
"percentages": "no",
"groups": [
"WebKit Extensions"
],
"initial": "auto",
"appliesto": "allElements",
"computed": "asSpecified",
"order": "uniqueOrder",
"status": "nonstandard",
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/user-select"
},
"accent-color": {
"syntax": "auto | <color>",
"media": "interactive",
Expand Down Expand Up @@ -2090,7 +2106,7 @@
"animationType": "byComputedValueType",
"percentages": "no",
"groups": [
"CSS Basic User Interface"
"CSS Box Sizing"
],
"initial": "auto",
"appliesto": "allElementsExceptInlineBoxesAndInternalRubyOrTableBoxes",
Expand Down Expand Up @@ -4362,7 +4378,7 @@
"animationType": "byComputedValueType",
"percentages": "no",
"groups": [
"CSS Containment"
"CSS Box Sizing"
],
"initial": "none",
"appliesto": "elementsForWhichSizeContainmentCanApply",
Expand All @@ -4377,7 +4393,7 @@
"animationType": "byComputedValueType",
"percentages": "no",
"groups": [
"CSS Containment"
"CSS Box Sizing"
],
"initial": "none",
"appliesto": "elementsForWhichSizeContainmentCanApply",
Expand All @@ -4392,7 +4408,7 @@
"animationType": "byComputedValueType",
"percentages": "no",
"groups": [
"CSS Containment"
"CSS Box Sizing"
],
"initial": "none",
"appliesto": "elementsForWhichSizeContainmentCanApply",
Expand All @@ -4414,7 +4430,7 @@
"contain-intrinsic-height"
],
"groups": [
"CSS Containment"
"CSS Box Sizing"
],
"initial": [
"contain-intrinsic-width",
Expand All @@ -4436,7 +4452,7 @@
"animationType": "byComputedValueType",
"percentages": "no",
"groups": [
"CSS Containment"
"CSS Box Sizing"
],
"initial": "none",
"appliesto": "elementsForWhichSizeContainmentCanApply",
Expand All @@ -4458,7 +4474,7 @@
"container-type"
],
"groups": [
"CSS Containment"
"CSS Conditional Rules"
],
"initial": [
"container-name",
Expand All @@ -4480,7 +4496,7 @@
"animationType": "notAnimatable",
"percentages": "no",
"groups": [
"CSS Containment"
"CSS Conditional Rules"
],
"initial": "none",
"appliesto": "allElements",
Expand All @@ -4496,7 +4512,7 @@
"animationType": "color",
"percentages": "no",
"groups": [
"CSS Containment"
"CSS Conditional Rules"
],
"initial": "normal",
"appliesto": "allElements",
Expand Down Expand Up @@ -10550,7 +10566,7 @@
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/unicode-bidi"
},
"user-select": {
"syntax": "auto | text | none | contain | all",
"syntax": "auto | text | none | all",
"media": "visual",
"inherited": false,
"animationType": "discrete",
Expand Down
2 changes: 1 addition & 1 deletion css/properties.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ on MDN and the [CSS Values and Units](https://www.w3.org/TR/css3-values/#value-d
* If it is an enum (appropriate for long-hand properties), this is the computed value of the property. See the schema for [a list of enums](https://github.com/mdn/data/blob/main/css/properties.schema.json#L91).
* If it is an array (appropriate for short-hand properties), these are the properties the value is computed from.
* `order` (enum): The [canonical order](https://developer.mozilla.org/en-US/docs/Glossary/Canonical_order) for the property. See the schema for [a list of enums](https://github.com/mdn/data/blob/main/css/properties.schema.json#L261).
* `status` (enum): This is either `standard`, `nonstandard`, or `experimental` depending on the standardization status of the feature.
* `status` (enum string): This is either `standard`, `nonstandard`, `experimental` or `obsolete` depending on the standardization status of the feature.

There are 3 more properties that are optional:
* `mdn_url` (string): a URL linking to the property's page on MDN. This URL must omit the localization part of the URL (such as `en-US/`).
Expand Down
9 changes: 9 additions & 0 deletions css/selectors.json
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,15 @@
"status": "experimental",
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/:local-link"
},
":modal": {
"syntax": ":modal",
"groups": [
"Pseudo-classes",
"Selectors"
],
"status": "standard",
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/:modal"
},
":not": {
"syntax": ":not( <complex-selector-list> )",
"groups": [
Expand Down
2 changes: 1 addition & 1 deletion css/selectors.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ A selector object looks like this:
The three properties shown above are all required:
* `syntax` (string): The syntax of the selector (e.g. `::after` with two colons indicating a [pseudo-element](https://developer.mozilla.org/en-US/docs/Learn/CSS/Introduction_to_CSS/Pseudo-classes_and_pseudo-elements#Pseudo-elements), `:hover` with one colon indicating a [pseudo-class](https://developer.mozilla.org/en-US/docs/Learn/CSS/Introduction_to_CSS/Pseudo-classes_and_pseudo-elements#Pseudo-classes), or `A ~ B` indicating a [combinator](https://developer.mozilla.org/en-US/docs/Learn/CSS/Introduction_to_CSS/Combinators_and_multiple_selectors#Combinators)).
* `groups` (array of strings): CSS is organized in modules like "CSS Units" or "CSS Lengths". MDN organizes features in these groups as well — `groups` should contain the name of the module(s) the selector is defined in.
* `status` (enum string): This is either `standard`, `nonstandard`, or `experimental` depending on the standardization status of the feature.
* `status` (enum string): This is either `standard`, `nonstandard`, `experimental` or `obsolete` depending on the standardization status of the feature.

There is another property that is optional:
* `mdn_url` (string): a URL linking to the selector's page on MDN. This URL must omit the localization part of the URL (such as `en-US/`).
3 changes: 2 additions & 1 deletion css/selectors.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"enum": [
"standard",
"nonstandard",
"experimental"
"experimental",
"obsolete"
]
},
"mdn_url": {
Expand Down
6 changes: 6 additions & 0 deletions css/syntaxes.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@
"anchor-name": {
"syntax": "<dashed-ident>"
},
"anchor-side": {
"syntax": "inside | outside | top | left | right | bottom | start | end | self-start | self-end | <percentage> | center"
},
"anchor-size": {
"syntax": "width | height | block | inline | self-block | self-inline"
},
"anchor-size()": {
"syntax": "anchor-size( [ <anchor-name> || <anchor-size> ]? , <length-percentage>? )"
},
Expand Down
2 changes: 1 addition & 1 deletion css/types.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ A type object looks like the following example.

The 2 properties are both required.
* `groups` (array of strings): CSS is organized in modules like "CSS Types" or "CSS Color". MDN organizes features in these groups as well — `groups` should contain the name of the module(s) the type is defined in.
* `status` (enum string): This is either `standard`, `nonstandard`, or `experimental` depending on the standardization status of the feature.
* `status` (enum string): This is either `standard`, `nonstandard`, `experimental` or `obsolete` depending on the standardization status of the feature.

There is another property that is optional:
* `mdn_url` (string): a URL linking to the type's page on MDN. This URL must omit the localization part of the URL (such as `en-US/`).
2 changes: 1 addition & 1 deletion css/units.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ A unit object looks like this:

The 2 properties are both required.
* `groups` (array of strings): CSS is organized in modules like "CSS Units" or "CSS Lengths". MDN organizes features in these groups as well — `groups` should contain the name of the module(s) the unit is defined in.
* `status` (enum string): This is either `standard`, `nonstandard`, or `experimental` depending on the standardization status of the feature.
* `status` (enum string): This is either `standard`, `nonstandard`, `experimental` or `obsolete` depending on the standardization status of the feature.
3 changes: 2 additions & 1 deletion css/units.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"enum": [
"standard",
"nonstandard",
"experimental"
"experimental",
"obsolete"
]
}
},
Expand Down

0 comments on commit aa06f26

Please sign in to comment.