Skip to content

Commit

Permalink
feat(css): Fix/Add synatx for font-palette <palette-identifier> `…
Browse files Browse the repository at this point in the history
…palette-mix()` (#785)

* feat(css): Add missing syntax for `<palette-identifier>`

* add missing mdn_url

* fix syntax & animationType

* add missing data for `palette-mix()`

---------

Co-authored-by: Vadim Makeev <[email protected]>
  • Loading branch information
skyclouds2001 and pepelsbey authored Dec 2, 2024
1 parent 12e6074 commit d572bcb
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 3 deletions.
2 changes: 1 addition & 1 deletion css/at-rules.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@document"
},
"@font-palette-values": {
"syntax": "@font-palette-values <dashed-ident> { <declaration-list> }",
"syntax": "@font-palette-values <dashed-ident> { <declaration-list> }",
"groups": [
"CSS Fonts"
],
Expand Down
8 changes: 8 additions & 0 deletions css/functions.json
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,14 @@
"status": "standard",
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/image/paint"
},
"palette-mix()": {
"syntax": "palette-mix(<color-interpolation-method> , [ [normal | light | dark | <palette-identifier> | <palette-mix()> ] && <percentage [0,100]>? ]#{2})",
"groups": [
"CSS Fonts"
],
"status": "standard",
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/font-palette/palette-mix"
},
"perspective()": {
"syntax": "perspective( <length> )",
"groups": [
Expand Down
4 changes: 2 additions & 2 deletions css/properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -5115,10 +5115,10 @@
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/font-optical-sizing"
},
"font-palette": {
"syntax": "normal | light | dark | <palette-identifier>",
"syntax": "normal | light | dark | <palette-identifier> | <palette-mix()>",
"media": "visual",
"inherited": true,
"animationType": "byComputedValueType",
"animationType": "byComputedValue",
"percentages": "no",
"groups": [
"CSS Fonts"
Expand Down
1 change: 1 addition & 0 deletions css/properties.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"angleBasicShapeOrPath",
"angleOrBasicShapeOrPath",
"basicShapeOtherwiseNo",
"byComputedValue",
"byComputedValueType",
"byComputedValueTypeNormalAnimatesAsObliqueZeroDeg",
"color",
Expand Down
3 changes: 3 additions & 0 deletions css/syntaxes.json
Original file line number Diff line number Diff line change
Expand Up @@ -617,6 +617,9 @@
"paint()": {
"syntax": "paint( <ident>, <declaration-value>? )"
},
"palette-identifier": {
"syntax": "<dashed-ident>"
},
"perspective()": {
"syntax": "perspective( [ <length [0,∞]> | none ] )"
},
Expand Down
3 changes: 3 additions & 0 deletions l10n/css.json
Original file line number Diff line number Diff line change
Expand Up @@ -593,6 +593,9 @@
"ru": "блочные элементы",
"zh-CN": "盒元素"
},
"byComputedValue": {
"en-US": "by computed value"
},
"byComputedValueType": {
"en-US": "by computed value type",
"ja": "計算値の型による",
Expand Down

0 comments on commit d572bcb

Please sign in to comment.