-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add dumps of CSS definitions per spec
See discussion in w3c/reffy#113 The dumps follow a simple JSON structure that separates definitions of properties, descriptors and valuespaces. That structure may evolve and completely change over time, depending on needs.
- Loading branch information
Showing
132 changed files
with
14,438 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
{ | ||
"properties": { | ||
"-webkit-background-clip": { | ||
"name": "-webkit-background-clip", | ||
"value": "border-box | padding-box | content-box | text", | ||
"initial": "none", | ||
"appliesTo": "all elements", | ||
"inherited": "no", | ||
"percentages": "N/A", | ||
"media": "visual", | ||
"computedValue": "\"text\"", | ||
"canonicalOrder": "per grammar", | ||
"animationType": "discrete" | ||
}, | ||
"-webkit-text-fill-color": { | ||
"name": "-webkit-text-fill-color", | ||
"value": "<color>", | ||
"initial": "currentcolor", | ||
"appliesTo": "all elements", | ||
"inherited": "yes", | ||
"percentages": "N/A", | ||
"media": "visual", | ||
"computedValue": "an RGBA color", | ||
"canonicalOrder": "per grammar", | ||
"animationType": "as color" | ||
}, | ||
"-webkit-text-stroke-color": { | ||
"name": "-webkit-text-stroke-color", | ||
"value": "<color>", | ||
"initial": "currentcolor", | ||
"appliesTo": "all elements", | ||
"inherited": "yes", | ||
"percentages": "N/A", | ||
"media": "visual", | ||
"computedValue": "an RGBA color", | ||
"canonicalOrder": "per grammar", | ||
"animationType": "as color" | ||
}, | ||
"-webkit-text-stroke-width": { | ||
"name": "-webkit-text-stroke-width", | ||
"value": "<line-width>", | ||
"initial": "0", | ||
"appliesTo": "all elements", | ||
"inherited": "yes", | ||
"percentages": "N/A", | ||
"media": "visual", | ||
"computedValue": "absolute length", | ||
"canonicalOrder": "per grammar", | ||
"animationType": "discrete" | ||
}, | ||
"-webkit-text-stroke": { | ||
"name": "-webkit-text-stroke", | ||
"value": "<line-width> || <color>", | ||
"initial": "See individual properties", | ||
"appliesTo": "See individual properties", | ||
"inherited": "yes", | ||
"percentages": "N/A", | ||
"media": "visual", | ||
"computedValue": "See individual properties", | ||
"canonicalOrder": "per grammar", | ||
"animationType": "See individual properties" | ||
}, | ||
"touch-action": { | ||
"name": "touch-action", | ||
"value": "auto | none | [ [ pan-x | pan-left | pan-right ] || [ pan-y | pan-up | pan-down ] || pinch-zoom ] | manipulation", | ||
"initial": "auto", | ||
"appliesTo": "all elements except: non-replaced inline elements, table rows, row groups, table columns, and column groups.", | ||
"inherited": "no", | ||
"percentages": "N/A", | ||
"media": "visual", | ||
"computedValue": "Same as specified value", | ||
"canonicalOrder": "per grammar", | ||
"animationType": "discrete" | ||
} | ||
}, | ||
"descriptors": { | ||
"-webkit-device-pixel-ratio": { | ||
"name": "-webkit-device-pixel-ratio", | ||
"for": "@media", | ||
"value": "<number>", | ||
"type": "range" | ||
}, | ||
"-webkit-transform-3d": { | ||
"name": "-webkit-transform-3d", | ||
"for": "@media", | ||
"value": "<mq-boolean>", | ||
"acceptsMin/maxPrefixes": "no" | ||
} | ||
}, | ||
"valuespaces": {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
{ | ||
"properties": { | ||
"mix-blend-mode": { | ||
"name": "mix-blend-mode", | ||
"value": "<blend-mode>", | ||
"initial": "normal", | ||
"appliesTo": "All elements. In SVG, it applies to container elements, graphics elements and graphics referencing elements. [SVG11]", | ||
"inherited": "no", | ||
"percentages": "N/A", | ||
"media": "visual", | ||
"computedValue": "as specified", | ||
"canonicalOrder": "per grammar", | ||
"animatable": "no" | ||
}, | ||
"isolation": { | ||
"name": "isolation", | ||
"value": "<isolation-mode>", | ||
"initial": "auto", | ||
"appliesTo": "All elements. In SVG, it applies to container elements, graphics elements and graphics referencing elements. [SVG11]", | ||
"inherited": "no", | ||
"percentages": "N/A", | ||
"media": "visual", | ||
"computedValue": "as specified", | ||
"canonicalOrder": "per grammar", | ||
"animatable": "no" | ||
}, | ||
"background-blend-mode": { | ||
"name": "background-blend-mode", | ||
"value": "<blend-mode>#", | ||
"initial": "normal", | ||
"appliesTo": "All HTML elements", | ||
"inherited": "no", | ||
"percentages": "N/A", | ||
"media": "visual", | ||
"computedValue": "as specified", | ||
"canonicalOrder": "per grammar", | ||
"animatable": "no" | ||
} | ||
}, | ||
"descriptors": {}, | ||
"valuespaces": { | ||
"<blend-mode>": { | ||
"value": "normal | multiply | screen | overlay | darken | lighten | color-dodge |color-burn | hard-light | soft-light | difference | exclusion | hue | saturation | color | luminosity" | ||
}, | ||
"<isolation-mode>": { | ||
"value": "auto | isolate" | ||
}, | ||
"<composite-mode>": { | ||
"value": "clear | copy | source-over | destination-over | source-in | destination-in | source-out | destination-out | source-atop | destination-atop | xor | lighter | plus-darker | plus-lighter" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,154 @@ | ||
{ | ||
"properties": { | ||
"align-content": { | ||
"name": "align-content", | ||
"value": "normal | <baseline-position> | <content-distribution> | <overflow-position>? <content-position>", | ||
"initial": "normal", | ||
"appliesTo": "block containers, multicol containers, flex containers, and grid containers", | ||
"inherited": "no", | ||
"percentages": "n/a", | ||
"computedValue": "specified value", | ||
"canonicalOrder": "per grammar", | ||
"animatable": "no" | ||
}, | ||
"justify-content": { | ||
"name": "justify-content", | ||
"value": "normal | <content-distribution> | <overflow-position>? [ <content-position> | left | right ]", | ||
"initial": "normal", | ||
"appliesTo": "multicol containers, flex containers, and grid containers", | ||
"inherited": "no", | ||
"percentages": "n/a", | ||
"computedValue": "specified value", | ||
"canonicalOrder": "per grammar", | ||
"animatable": "no" | ||
}, | ||
"place-content": { | ||
"name": "place-content", | ||
"value": "<‘align-content’> <‘justify-content’>?", | ||
"initial": "normal", | ||
"appliesTo": "block containers, flex containers, and grid containers", | ||
"inherited": "no", | ||
"percentages": "n/a", | ||
"computedValue": "see individual properties", | ||
"canonicalOrder": "per grammar", | ||
"animatable": "no" | ||
}, | ||
"justify-self": { | ||
"name": "justify-self", | ||
"value": "auto | normal | stretch | <baseline-position> | <overflow-position>? [ <self-position> | left | right ]", | ||
"initial": "auto", | ||
"appliesTo": "block-level boxes, absolutely-positioned boxes, and grid items", | ||
"inherited": "no", | ||
"percentages": "n/a", | ||
"computedValue": "specified value", | ||
"canonicalOrder": "per grammar", | ||
"animatable": "no" | ||
}, | ||
"align-self": { | ||
"name": "align-self", | ||
"value": "auto | normal | stretch | <baseline-position> | <overflow-position>? <self-position>", | ||
"initial": "auto", | ||
"appliesTo": "flex items, grid items, and absolutely-positioned boxes", | ||
"inherited": "no", | ||
"percentages": "n/a", | ||
"computedValue": "specified value", | ||
"canonicalOrder": "per grammar", | ||
"animatable": "no" | ||
}, | ||
"place-self": { | ||
"name": "place-self", | ||
"value": "<‘align-self’> <‘justify-self’>?", | ||
"initial": "auto", | ||
"appliesTo": "block-level boxes, absolutely-positioned boxes, and grid items", | ||
"inherited": "no", | ||
"percentages": "n/a", | ||
"computedValue": "see individual properties", | ||
"canonicalOrder": "per grammar", | ||
"animatable": "no" | ||
}, | ||
"justify-items": { | ||
"name": "justify-items", | ||
"value": "normal | stretch | <baseline-position> | <overflow-position>? [ <self-position> | left | right ] | legacy | legacy && [ left | right | center ]", | ||
"initial": "legacy", | ||
"appliesTo": "all elements", | ||
"inherited": "no", | ||
"percentages": "n/a", | ||
"computedValue": "specified value, except for legacy (see prose)", | ||
"canonicalOrder": "per grammar", | ||
"animatable": "no" | ||
}, | ||
"align-items": { | ||
"name": "align-items", | ||
"value": "normal | stretch | <baseline-position> | [ <overflow-position>? <self-position> ]", | ||
"initial": "normal", | ||
"appliesTo": "all elements", | ||
"inherited": "no", | ||
"percentages": "n/a", | ||
"computedValue": "specified value", | ||
"canonicalOrder": "per grammar", | ||
"animatable": "no" | ||
}, | ||
"place-items": { | ||
"name": "place-items", | ||
"value": "<‘align-items’> <‘justify-items’>?", | ||
"initial": "see individual properties", | ||
"appliesTo": "all elements", | ||
"inherited": "no", | ||
"percentages": "n/a", | ||
"computedValue": "see individual properties", | ||
"canonicalOrder": "per grammar", | ||
"animatable": "no" | ||
}, | ||
"row-gap": { | ||
"name": "row-gap", | ||
"value": "normal | <length-percentage>", | ||
"initial": "normal", | ||
"appliesTo": "multi-column containers, flex containers, grid containers", | ||
"inherited": "no", | ||
"percentages": "refer to corresponding dimension of the content area", | ||
"computedValue": "as specified, with <length>s made absolute", | ||
"canonicalOrder": "per grammar", | ||
"animatable": "as length, percentage, or calc" | ||
}, | ||
"column-gap": { | ||
"name": "column-gap", | ||
"value": "normal | <length-percentage>", | ||
"initial": "normal", | ||
"appliesTo": "multi-column containers, flex containers, grid containers", | ||
"inherited": "no", | ||
"percentages": "refer to corresponding dimension of the content area", | ||
"computedValue": "as specified, with <length>s made absolute", | ||
"canonicalOrder": "per grammar", | ||
"animatable": "as length, percentage, or calc" | ||
}, | ||
"gap": { | ||
"name": "gap", | ||
"value": "<‘row-gap’> <‘column-gap’>?", | ||
"initial": "see individual properties", | ||
"appliesTo": "multi-column containers, flex containers, grid containers", | ||
"inherited": "no", | ||
"percentages": "refer to corresponding dimension of the content area", | ||
"computedValue": "see individual properties", | ||
"canonicalOrder": "per grammar", | ||
"animatable": "as length, percentage, or calc" | ||
} | ||
}, | ||
"descriptors": {}, | ||
"valuespaces": { | ||
"<self-position>": { | ||
"value": "center | start | end | self-start | self-end | flex-start | flex-end;" | ||
}, | ||
"<content-position>": { | ||
"value": "center | start | end | flex-start | flex-end;" | ||
}, | ||
"<baseline-position>": { | ||
"value": "[ first | last ]? baseline" | ||
}, | ||
"<content-distribution>": { | ||
"value": "space-between | space-around | space-evenly | stretch" | ||
}, | ||
"<overflow-position>": { | ||
"value": "unsafe | safe" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"properties": { | ||
"animation-composition": { | ||
"name": "animation-composition", | ||
"value": "<single-animation-composition>#", | ||
"initial": "replace", | ||
"appliesTo": "all elements, ::before and ::after pseudo-elements", | ||
"inherited": "none", | ||
"percentages": "N/A", | ||
"computedValue": "As specified", | ||
"canonicalOrder": "per grammar", | ||
"animatable": "no" | ||
} | ||
}, | ||
"descriptors": {}, | ||
"valuespaces": { | ||
"<single-animation-composition>": { | ||
"value": "replace | add | accumulate" | ||
} | ||
} | ||
} |
Oops, something went wrong.