Skip to content

Commit

Permalink
feat(css): Replace <box> type with <visual-box> type (#842)
Browse files Browse the repository at this point in the history
  • Loading branch information
skyclouds2001 authored Dec 21, 2024
1 parent c73adfe commit 57b11d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion css/properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -1330,7 +1330,7 @@
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/-webkit-line-clamp"
},
"-webkit-mask": {
"syntax": "[ <mask-reference> || <position> [ / <bg-size> ]? || <repeat-style> || [ <box> | border | padding | content | text ] || [ <box> | border | padding | content ] ]#",
"syntax": "[ <mask-reference> || <position> [ / <bg-size> ]? || <repeat-style> || [ <visual-box> | border | padding | content | text ] || [ <visual-box> | border | padding | content ] ]#",
"media": "visual",
"inherited": false,
"animationType": "discrete",
Expand Down
9 changes: 3 additions & 6 deletions css/syntaxes.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
"syntax": "none | <image>"
},
"bg-layer": {
"syntax": "<bg-image> || <bg-position> [ / <bg-size> ]? || <repeat-style> || <attachment> || <box> || <box>"
"syntax": "<bg-image> || <bg-position> [ / <bg-size> ]? || <repeat-style> || <attachment> || <visual-box> || <visual-box>"
},
"bg-position": {
"syntax": "[ [ left | center | right | top | bottom | <length-percentage> ] | [ left | center | right | <length-percentage> ] [ top | center | bottom | <length-percentage> ] | [ center | [ left | right ] <length-percentage>? ] && [ center | [ top | bottom ] <length-percentage>? ] ]"
Expand All @@ -95,9 +95,6 @@
"blur()": {
"syntax": "blur( <length> )"
},
"box": {
"syntax": "border-box | padding-box | content-box"
},
"brightness()": {
"syntax": "brightness( <number-percentage> )"
},
Expand Down Expand Up @@ -327,7 +324,7 @@
"syntax": "[ <filter-function> | <url> ]+"
},
"final-bg-layer": {
"syntax": "<'background-color'> || <bg-image> || <bg-position> [ / <bg-size> ]? || <repeat-style> || <attachment> || <box> || <box>"
"syntax": "<'background-color'> || <bg-image> || <bg-position> [ / <bg-size> ]? || <repeat-style> || <attachment> || <visual-box> || <visual-box>"
},
"fit-content()": {
"syntax": "fit-content( <length-percentage [0,∞]> )"
Expand Down Expand Up @@ -801,7 +798,7 @@
"syntax": "rect(<top>, <right>, <bottom>, <left>)"
},
"shape-box": {
"syntax": "<box> | margin-box"
"syntax": "<visual-box> | margin-box"
},
"shape-radius": {
"syntax": "<length-percentage> | closest-side | farthest-side"
Expand Down

0 comments on commit 57b11d6

Please sign in to comment.