Skip to content

Commit 81fa08f

Browse files
feat(css): Update syntax for font (#992)
* feat(css): Update syntax for `font` * Apply suggestions from code review
1 parent 980e137 commit 81fa08f

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

css/properties.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4965,7 +4965,7 @@
49654965
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/flood-opacity"
49664966
},
49674967
"font": {
4968-
"syntax": "[ [ <'font-style'> || <font-variant-css21> || <'font-weight'> || <'font-stretch'> ]? <'font-size'> [ / <'line-height'> ]? <'font-family'> ] | caption | icon | menu | message-box | small-caption | status-bar",
4968+
"syntax": "[ [ <'font-style'> || <font-variant-css2> || <'font-weight'> || <font-width-css3> ]? <'font-size'> [ / <'line-height'> ]? <'font-family'># ] | <system-family-name>",
49694969
"media": "visual",
49704970
"inherited": true,
49714971
"animationType": [

css/syntaxes.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -386,12 +386,15 @@
386386
"font-stretch-absolute": {
387387
"syntax": "normal | ultra-condensed | extra-condensed | condensed | semi-condensed | semi-expanded | expanded | extra-expanded | ultra-expanded | <percentage>"
388388
},
389-
"font-variant-css21": {
390-
"syntax": "[ normal | small-caps ]"
389+
"font-variant-css2": {
390+
"syntax": "normal | small-caps"
391391
},
392392
"font-weight-absolute": {
393393
"syntax": "normal | bold | <number [1,1000]>"
394394
},
395+
"font-width-css3": {
396+
"syntax": "normal | ultra-condensed | extra-condensed | condensed | semi-condensed | semi-expanded | expanded | extra-expanded | ultra-expanded"
397+
},
395398
"form-control-identifier": {
396399
"syntax": "select"
397400
},
@@ -1010,6 +1013,9 @@
10101013
"system-color": {
10111014
"syntax": "AccentColor | AccentColorText | ActiveText | ButtonBorder | ButtonFace | ButtonText | Canvas | CanvasText | Field | FieldText | GrayText | Highlight | HighlightText | LinkText | Mark | MarkText | SelectedItem | SelectedItemText | VisitedText"
10121015
},
1016+
"system-family-name": {
1017+
"syntax": "caption | icon | menu | message-box | small-caption | status-bar"
1018+
},
10131019
"tan()": {
10141020
"syntax": "tan( <calc-sum> )"
10151021
},

0 commit comments

Comments
 (0)