Skip to content

Commit

Permalink
fix: Update syntax for 'forced-color-adjust' & 'scale' properties, 'a…
Browse files Browse the repository at this point in the history
…xis', 'color', 'scroller', 'system-color' types (#771)

* Update aspect-ratio property

* Update syntaxes for animation-timeline

* Update forced-color-adjust

* Add <syntax-color>

* Add percentage to scale

---------

Co-authored-by: Brian Thomas Smith <[email protected]>
  • Loading branch information
pamelalozano16 and bsmth authored Nov 5, 2024
1 parent 8c66896 commit 39f2aed
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions css/properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -5550,7 +5550,7 @@
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/font-weight"
},
"forced-color-adjust": {
"syntax": "auto | none",
"syntax": "auto | none | preserve-parent-color",
"media": "visual",
"inherited": true,
"animationType": "notAnimatable",
Expand Down Expand Up @@ -8720,7 +8720,7 @@
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/ry"
},
"scale": {
"syntax": "none | <number>{1,3}",
"syntax": "none | [ <number> | <percentage> ]{1,3}",
"media": "visual",
"inherited": false,
"animationType": "transform",
Expand Down
9 changes: 6 additions & 3 deletions css/syntaxes.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"syntax": "[ <line-names>? [ <fixed-size> | <fixed-repeat> ] ]* <line-names>? <auto-repeat>\n[ <line-names>? [ <fixed-size> | <fixed-repeat> ] ]* <line-names>?"
},
"axis": {
"syntax": "block | inline | vertical | horizontal"
"syntax": "block | inline | x | y"
},
"baseline-position": {
"syntax": "[ first | last ]? baseline"
Expand Down Expand Up @@ -123,7 +123,7 @@
"syntax": "<url>"
},
"color": {
"syntax": "<rgb()> | <rgba()> | <hsl()> | <hsla()> | <hwb()> | <lab()> | <lch()> | <light-dark()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>"
"syntax": "<rgb()> | <rgba()> | <hsl()> | <hsla()> | <hwb()> | <lab()> | <lch()> | <oklab()> | <oklch()> | <color()> | <hex-color> | <named-color> | <system-color> | <deprecated-system-color> | currentcolor | transparent"
},
"color-stop": {
"syntax": "<color-stop-length> | <color-stop-angle>"
Expand Down Expand Up @@ -714,7 +714,7 @@
"syntax": "scroll( [ <axis> || <scroller> ]? )"
},
"scroller": {
"syntax": "root | nearest"
"syntax": "root | nearest | self"
},
"self-position": {
"syntax": "center | start | end | self-start | self-end | flex-start | flex-end"
Expand Down Expand Up @@ -812,6 +812,9 @@
"symbol": {
"syntax": "<string> | <image> | <custom-ident>"
},
"system-color": {
"syntax": "AccentColor | AccentColorText | ActiveText | ButtonBorder | ButtonFace | ButtonText | Canvas | CanvasText | Field | FieldText | GrayText | Highlight | HighlightText | LinkText | Mark | MarkText | SelectedItem | SelectedItemText | VisitedText"
},
"tan()": {
"syntax": "tan( <calc-sum> )"
},
Expand Down

0 comments on commit 39f2aed

Please sign in to comment.