Bug 1791778 - CSS support for the font-palette property. r=emilio

This is just the CSS parsing, not yet connected to the rendering back-end.

Differential Revision: https://phabricator.services.mozilla.com/D157957
This commit is contained in:
Jonathan Kew
2022-10-07 18:58:52 +00:00
parent 14654a91c7
commit c4f1dbdd1e
19 changed files with 146 additions and 40 deletions

View File

@@ -3037,6 +3037,7 @@ exports.CSS_PROPERTIES = {
"font-variation-settings",
"font-language-override",
"font-optical-sizing",
"font-palette",
"math-depth",
"math-style",
"-moz-osx-font-smoothing",
@@ -6681,7 +6682,8 @@ exports.CSS_PROPERTIES = {
"font-variant-position",
"font-language-override",
"font-feature-settings",
"font-variation-settings"
"font-variation-settings",
"font-palette"
],
"supports": [],
"values": [
@@ -6815,6 +6817,20 @@ exports.CSS_PROPERTIES = {
"unset"
]
},
"font-palette": {
"isInherited": true,
"subproperties": [
"font-palette"
],
"supports": [],
"values": [
"inherit",
"initial",
"revert",
"revert-layer",
"unset"
]
},
"font-size": {
"isInherited": true,
"subproperties": [
@@ -11918,6 +11934,10 @@ exports.PREFERENCES = [
"d",
"layout.css.d-property.enabled"
],
[
"font-palette",
"layout.css.font-palette.enabled"
],
[
"font-variation-settings",
"layout.css.font-variations.enabled"