зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1796983 - patch 1 - Fix property_database.js to correctly respect the font-variant-emoji pref. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D160256
This commit is contained in:
Родитель
873d4e5179
Коммит
6c978a4239
|
@ -5524,7 +5524,6 @@ var gCSSProperties = {
|
|||
"font-variant-alternates",
|
||||
"font-variant-caps",
|
||||
"font-variant-east-asian",
|
||||
"font-variant-emoji",
|
||||
"font-variant-ligatures",
|
||||
"font-variant-numeric",
|
||||
"font-variant-position",
|
||||
|
@ -5792,7 +5791,6 @@ var gCSSProperties = {
|
|||
"font-variant-alternates",
|
||||
"font-variant-caps",
|
||||
"font-variant-east-asian",
|
||||
"font-variant-emoji",
|
||||
"font-variant-ligatures",
|
||||
"font-variant-numeric",
|
||||
"font-variant-position",
|
||||
|
@ -5914,25 +5912,6 @@ var gCSSProperties = {
|
|||
"jis78 ruby simplified",
|
||||
],
|
||||
},
|
||||
"font-variant-emoji": {
|
||||
domProp: "fontVariantEmoji",
|
||||
inherited: true,
|
||||
type: CSS_TYPE_LONGHAND,
|
||||
applies_to_first_letter: true,
|
||||
applies_to_first_line: true,
|
||||
applies_to_marker: true,
|
||||
applies_to_placeholder: true,
|
||||
applies_to_cue: true,
|
||||
initial_values: ["normal"],
|
||||
other_values: ["text", "emoji", "unicode"],
|
||||
invalid_values: [
|
||||
"none",
|
||||
"auto",
|
||||
"text emoji",
|
||||
"auto text",
|
||||
"normal, unicode",
|
||||
],
|
||||
},
|
||||
"font-variant-ligatures": {
|
||||
domProp: "fontVariantLigatures",
|
||||
inherited: true,
|
||||
|
@ -12050,6 +12029,30 @@ if (IsCSSPropertyPrefEnabled("layout.css.font-palette.enabled")) {
|
|||
};
|
||||
}
|
||||
|
||||
if (IsCSSPropertyPrefEnabled("layout.css.font-variant-emoji.enabled")) {
|
||||
gCSSProperties["font"].subproperties.push("font-variant-emoji");
|
||||
gCSSProperties["font-variant"].subproperties.push("font-variant-emoji");
|
||||
gCSSProperties["font-variant-emoji"] = {
|
||||
domProp: "fontVariantEmoji",
|
||||
inherited: true,
|
||||
type: CSS_TYPE_LONGHAND,
|
||||
applies_to_first_letter: true,
|
||||
applies_to_first_line: true,
|
||||
applies_to_marker: true,
|
||||
applies_to_placeholder: true,
|
||||
applies_to_cue: true,
|
||||
initial_values: ["normal"],
|
||||
other_values: ["text", "emoji", "unicode"],
|
||||
invalid_values: [
|
||||
"none",
|
||||
"auto",
|
||||
"text emoji",
|
||||
"auto text",
|
||||
"normal, unicode",
|
||||
],
|
||||
};
|
||||
}
|
||||
|
||||
var isGridTemplateSubgridValueEnabled = IsCSSPropertyPrefEnabled(
|
||||
"layout.css.grid-template-subgrid-value.enabled"
|
||||
);
|
||||
|
|
Загрузка…
Ссылка в новой задаче