@webref/css 8.5.1 → 8.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -1
- package/css.json +45 -20
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,6 +4,15 @@ This package contains a consolidated list of CSS features defined across specs,
|
|
|
4
4
|
|
|
5
5
|
**Important:** If you're migrating from version 6, see the [changelog](https://github.com/w3c/webref/blob/main/packages/css/CHANGELOG.md) for "How to upgrade" considerations.
|
|
6
6
|
|
|
7
|
+
## Table of Contents
|
|
8
|
+
|
|
9
|
+
- [Usage](#usage)
|
|
10
|
+
- [CSS features](#css-features)
|
|
11
|
+
- [Feature keys](#feature-keys)
|
|
12
|
+
- [Migrating from `mdn/data`](#migrating-from-mdndata)
|
|
13
|
+
- [Guarantees](#guarantees)
|
|
14
|
+
|
|
15
|
+
|
|
7
16
|
## Usage
|
|
8
17
|
|
|
9
18
|
Two async methods are exposed: `listAll()` and `index()`. They both resolve with an object that lists CSS features by feature type: `atrules`, `functions`, `properties`, `selectors` and `types`.
|
|
@@ -354,7 +363,7 @@ When a property is extended with new values in different specs, the `syntax` key
|
|
|
354
363
|
The `type` key is only set for properties, when value is not empty. It maps to the [Media feature type](https://www.w3.org/TR/mediaqueries/#mq-ranges) part of a CSS property definition. Value should be one of `discrete` or `range`, but data may contain additional values depending on what specs actually define.
|
|
355
364
|
|
|
356
365
|
|
|
357
|
-
|
|
366
|
+
## Migrating from `mdn/data`
|
|
358
367
|
|
|
359
368
|
The structure of the consolidated list of CSS features aligns with CSS data in [`mdn/data`](https://github.com/mdn/data). If you use the `index()` method, the `@webref/css` package can *almost* serve as a drop-in replacement for the `mdn/data` package **for syntaxes**, with the following structural nuances:
|
|
360
369
|
|
package/css.json
CHANGED
|
@@ -1018,7 +1018,7 @@
|
|
|
1018
1018
|
"prose": "Scoped styles are described in CSS using the @scope block at-rule, which declares a scoping root and optional scoping limits associated with a set of style rules.",
|
|
1019
1019
|
"href": "https://drafts.csswg.org/css-cascade-6/#at-ruledef-scope",
|
|
1020
1020
|
"descriptors": [],
|
|
1021
|
-
"syntax": "@scope <scope-boundaries
|
|
1021
|
+
"syntax": "@scope <scope-boundaries>? { <block-contents> }",
|
|
1022
1022
|
"extended": []
|
|
1023
1023
|
},
|
|
1024
1024
|
{
|
|
@@ -3290,10 +3290,8 @@
|
|
|
3290
3290
|
"align-items",
|
|
3291
3291
|
"alignItems"
|
|
3292
3292
|
],
|
|
3293
|
-
"syntax": "normal | stretch | <baseline-position> | <overflow-position>? <self-position>
|
|
3294
|
-
"extended": [
|
|
3295
|
-
"https://drafts.csswg.org/css-anchor-position-1/#propdef-align-items"
|
|
3296
|
-
]
|
|
3293
|
+
"syntax": "normal | stretch | <baseline-position> | <overflow-position>? <self-position>",
|
|
3294
|
+
"extended": []
|
|
3297
3295
|
},
|
|
3298
3296
|
{
|
|
3299
3297
|
"name": "align-self",
|
|
@@ -6838,7 +6836,7 @@
|
|
|
6838
6836
|
"contain-intrinsic-block-size",
|
|
6839
6837
|
"containIntrinsicBlockSize"
|
|
6840
6838
|
],
|
|
6841
|
-
"syntax": "
|
|
6839
|
+
"syntax": "auto? [ none | <length [0,∞]> ]",
|
|
6842
6840
|
"extended": []
|
|
6843
6841
|
},
|
|
6844
6842
|
{
|
|
@@ -6856,7 +6854,7 @@
|
|
|
6856
6854
|
"contain-intrinsic-height",
|
|
6857
6855
|
"containIntrinsicHeight"
|
|
6858
6856
|
],
|
|
6859
|
-
"syntax": "
|
|
6857
|
+
"syntax": "auto? [ none | <length [0,∞]> ]",
|
|
6860
6858
|
"extended": []
|
|
6861
6859
|
},
|
|
6862
6860
|
{
|
|
@@ -6874,7 +6872,7 @@
|
|
|
6874
6872
|
"contain-intrinsic-inline-size",
|
|
6875
6873
|
"containIntrinsicInlineSize"
|
|
6876
6874
|
],
|
|
6877
|
-
"syntax": "
|
|
6875
|
+
"syntax": "auto? [ none | <length [0,∞]> ]",
|
|
6878
6876
|
"extended": []
|
|
6879
6877
|
},
|
|
6880
6878
|
{
|
|
@@ -6895,7 +6893,7 @@
|
|
|
6895
6893
|
"contain-intrinsic-width",
|
|
6896
6894
|
"contain-intrinsic-height"
|
|
6897
6895
|
],
|
|
6898
|
-
"syntax": "[
|
|
6896
|
+
"syntax": "[ auto? [ none | <length [0,∞]> ] ]{1,2}",
|
|
6899
6897
|
"extended": []
|
|
6900
6898
|
},
|
|
6901
6899
|
{
|
|
@@ -6913,7 +6911,7 @@
|
|
|
6913
6911
|
"contain-intrinsic-width",
|
|
6914
6912
|
"containIntrinsicWidth"
|
|
6915
6913
|
],
|
|
6916
|
-
"syntax": "
|
|
6914
|
+
"syntax": "auto? [ none | <length [0,∞]> ]",
|
|
6917
6915
|
"extended": []
|
|
6918
6916
|
},
|
|
6919
6917
|
{
|
|
@@ -9069,6 +9067,23 @@
|
|
|
9069
9067
|
"syntax": "auto | none | preserve-parent-color",
|
|
9070
9068
|
"extended": []
|
|
9071
9069
|
},
|
|
9070
|
+
{
|
|
9071
|
+
"name": "frame-sizing",
|
|
9072
|
+
"href": "https://drafts.csswg.org/css-sizing-4/#propdef-frame-sizing",
|
|
9073
|
+
"initial": "auto",
|
|
9074
|
+
"appliesTo": "iframe elements",
|
|
9075
|
+
"inherited": "no",
|
|
9076
|
+
"percentages": "n/a",
|
|
9077
|
+
"computedValue": "specified keyword",
|
|
9078
|
+
"canonicalOrder": "per grammar",
|
|
9079
|
+
"animationType": "discrete",
|
|
9080
|
+
"styleDeclaration": [
|
|
9081
|
+
"frame-sizing",
|
|
9082
|
+
"frameSizing"
|
|
9083
|
+
],
|
|
9084
|
+
"syntax": "auto | content-width | content-height | content-block-size | content-inline-size",
|
|
9085
|
+
"extended": []
|
|
9086
|
+
},
|
|
9072
9087
|
{
|
|
9073
9088
|
"name": "gap",
|
|
9074
9089
|
"href": "https://drafts.csswg.org/css-align-3/#propdef-gap",
|
|
@@ -10005,10 +10020,8 @@
|
|
|
10005
10020
|
"justify-items",
|
|
10006
10021
|
"justifyItems"
|
|
10007
10022
|
],
|
|
10008
|
-
"syntax": "normal | stretch | <baseline-position> | <overflow-position>? [ <self-position> | left | right ] | legacy | legacy && [ left | right | center ]
|
|
10009
|
-
"extended": [
|
|
10010
|
-
"https://drafts.csswg.org/css-anchor-position-1/#propdef-justify-items"
|
|
10011
|
-
]
|
|
10023
|
+
"syntax": "normal | stretch | <baseline-position> | <overflow-position>? [ <self-position> | left | right ] | legacy | legacy && [ left | right | center ]",
|
|
10024
|
+
"extended": []
|
|
10012
10025
|
},
|
|
10013
10026
|
{
|
|
10014
10027
|
"name": "justify-self",
|
|
@@ -12608,7 +12621,7 @@
|
|
|
12608
12621
|
"position-anchor",
|
|
12609
12622
|
"positionAnchor"
|
|
12610
12623
|
],
|
|
12611
|
-
"syntax": "normal | none | auto | <anchor-name>",
|
|
12624
|
+
"syntax": "normal | none | auto | <anchor-name> | match-parent",
|
|
12612
12625
|
"extended": []
|
|
12613
12626
|
},
|
|
12614
12627
|
{
|
|
@@ -12620,7 +12633,7 @@
|
|
|
12620
12633
|
"percentages": "n/a",
|
|
12621
12634
|
"computedValue": "the keyword none or a pair of keywords, see § 3.1.3 Computed Value and Serialization of <position-area>",
|
|
12622
12635
|
"canonicalOrder": "per grammar",
|
|
12623
|
-
"animationType": "
|
|
12636
|
+
"animationType": "discrete",
|
|
12624
12637
|
"styleDeclaration": [
|
|
12625
12638
|
"position-area",
|
|
12626
12639
|
"positionArea"
|
|
@@ -14836,7 +14849,7 @@
|
|
|
14836
14849
|
"stroke-width",
|
|
14837
14850
|
"strokeWidth"
|
|
14838
14851
|
],
|
|
14839
|
-
"syntax": "[<length-percentage> | <number>]#",
|
|
14852
|
+
"syntax": "[ <length-percentage> | <line-width> | <number> ]#",
|
|
14840
14853
|
"extended": []
|
|
14841
14854
|
},
|
|
14842
14855
|
{
|
|
@@ -18711,6 +18724,12 @@
|
|
|
18711
18724
|
"href": "https://drafts.csswg.org/css-speech-1/#typedef-voice-volume-decibel",
|
|
18712
18725
|
"extended": []
|
|
18713
18726
|
},
|
|
18727
|
+
{
|
|
18728
|
+
"name": "declaration",
|
|
18729
|
+
"prose": "<declaration> here matches anything that would be successfully parsed by consume a declaration, ignoring the context-validation check at the end of that algorithm. Notably, this includes a trailing !important, which is valid but ignored for the purpose of @supports.",
|
|
18730
|
+
"href": "https://drafts.csswg.org/css-conditional-5/#typedef-declaration",
|
|
18731
|
+
"extended": []
|
|
18732
|
+
},
|
|
18714
18733
|
{
|
|
18715
18734
|
"name": "declaration-list",
|
|
18716
18735
|
"prose": "<declaration-list>: only declarations are allowed; at-rules and qualified rules are automatically invalid.",
|
|
@@ -19440,7 +19459,7 @@
|
|
|
19440
19459
|
{
|
|
19441
19460
|
"name": "light-dark-image",
|
|
19442
19461
|
"href": "https://drafts.csswg.org/css-color-5/#typedef-light-dark-image",
|
|
19443
|
-
"syntax": "light-dark(<image> | none, <image> | none)",
|
|
19462
|
+
"syntax": "light-dark( [ <image> | none ] , [ <image> | none ] )",
|
|
19444
19463
|
"extended": []
|
|
19445
19464
|
},
|
|
19446
19465
|
{
|
|
@@ -20377,7 +20396,7 @@
|
|
|
20377
20396
|
{
|
|
20378
20397
|
"name": "scope-boundaries",
|
|
20379
20398
|
"href": "https://drafts.csswg.org/css-cascade-6/#typedef-scope-boundaries",
|
|
20380
|
-
"syntax": "[ ( <scope-start> ) ]? [ to ( <scope-end> ) ]?",
|
|
20399
|
+
"syntax": "[ [ ( <scope-start> ) ]? [ to ( <scope-end> ) ]? ]!",
|
|
20381
20400
|
"extended": []
|
|
20382
20401
|
},
|
|
20383
20402
|
{
|
|
@@ -20738,6 +20757,12 @@
|
|
|
20738
20757
|
"syntax": "( [ <declaration> | <supports-condition-name> ] )",
|
|
20739
20758
|
"extended": []
|
|
20740
20759
|
},
|
|
20760
|
+
{
|
|
20761
|
+
"name": "supports-env-fn",
|
|
20762
|
+
"href": "https://drafts.csswg.org/css-conditional-5/#typedef-supports-env-fn",
|
|
20763
|
+
"syntax": "env( <ident> )",
|
|
20764
|
+
"extended": []
|
|
20765
|
+
},
|
|
20741
20766
|
{
|
|
20742
20767
|
"name": "supports-feature",
|
|
20743
20768
|
"href": "https://drafts.csswg.org/css-conditional-5/#typedef-supports-feature",
|
|
@@ -20842,7 +20867,7 @@
|
|
|
20842
20867
|
},
|
|
20843
20868
|
{
|
|
20844
20869
|
"name": "system-color",
|
|
20845
|
-
"prose": "However, in forced colors mode, most colors on the page are forced into a restricted, user-chosen palette. The <system-color> keywords expose these user-chosen colors so that the rest of the page can integrate with this restricted palette.",
|
|
20870
|
+
"prose": "However, in forced colors mode, most colors on the page are forced into a restricted, user-chosen palette, see CSS Color Adjustment 1 § 5.2 Forced Colors Mode Color Palettes. The <system-color> keywords expose these user-chosen colors so that the rest of the page can integrate with this restricted palette.",
|
|
20846
20871
|
"href": "https://drafts.csswg.org/css-color-4/#typedef-system-color",
|
|
20847
20872
|
"syntax": "AccentColor | AccentColorText | ActiveText | ButtonBorder | ButtonFace | ButtonText | Canvas | CanvasText | Field | FieldText | GrayText | Highlight | HighlightText | LinkText | Mark | MarkText | SelectedItem | SelectedItemText | VisitedText | <deprecated-color>",
|
|
20848
20873
|
"extended": []
|