Split out combine-upright (tate-chu-yoko) from vertical text writing mode.

We don't actually have an implementation for this, so we should not advertise support along with vertical text writing mode.
This commit is contained in:
Pale Moon
2017-04-03 14:42:16 +02:00
committed by roytam1
parent 2bbfd56db3
commit cccd1f323c
4 changed files with 20 additions and 14 deletions
+2 -3
View File
@@ -3112,9 +3112,8 @@ CSS_PROP_TEXT(
text_combine_upright,
TextCombineUpright,
CSS_PROPERTY_PARSE_VALUE |
CSS_PROPERTY_VALUE_PARSER_FUNCTION |
CSS_PROPERTY_ALWAYS_ENABLED_IN_UA_SHEETS,
"layout.css.vertical-text.enabled",
CSS_PROPERTY_VALUE_PARSER_FUNCTION,
"layout.css.text-combine-upright.enabled",
0,
kTextCombineUprightKTable,
offsetof(nsStyleText, mTextCombineUpright),
+13 -10
View File
@@ -4741,16 +4741,6 @@ if (SpecialPowers.getBoolPref("layout.css.vertical-text.enabled")) {
other_values: [ "upright", "sideways-right" ],
invalid_values: [ "none", "3em", "sideways", "sideways-left" ] /* sideways, sideways-left not yet supported */
},
"text-combine-upright": {
domProp: "textCombineUpright",
inherited: true,
type: CSS_TYPE_LONGHAND,
initial_values: [ "none" ],
other_values: [ "all", "digits", "digits 2", "digits 3", "digits 4", "digits 3" ],
invalid_values: [ "auto", "all 2", "none all", "digits -3", "digits 0",
"digits 12", "none 3", "digits 3.1415", "digits3", "digits 1",
"digits 3 all", "digits foo", "digits all", "digits 3.0" ]
},
"border-block-end": {
domProp: "borderBlockEnd",
inherited: false,
@@ -5314,6 +5304,19 @@ if (SpecialPowers.getBoolPref("layout.css.vertical-text.enabled")) {
});
}
if (SpecialPowers.getBoolPref("layout.css.text-combine-upright.enabled")) {
gCSSProperties["text-combine-upright"] = {
domProp: "textCombineUpright",
inherited: true,
type: CSS_TYPE_LONGHAND,
initial_values: [ "none" ],
other_values: [ "all", "digits", "digits 2", "digits 3", "digits 4", "digits 3" ],
invalid_values: [ "auto", "all 2", "none all", "digits -3", "digits 0",
"digits 12", "none 3", "digits 3.1415", "digits3", "digits 1",
"digits 3 all", "digits foo", "digits all", "digits 3.0" ]
};
}
if (SpecialPowers.getBoolPref("layout.css.masking.enabled")) {
gCSSProperties["mask-type"] = {
domProp: "maskType",
@@ -68,7 +68,8 @@ function step() {
// ----
var gProps = {
"layout.css.vertical-text.enabled": ["text-combine-upright", "text-orientation", "writing-mode"],
"layout.css.vertical-text.enabled": ["text-orientation", "writing-mode"],
"layout.css.text-combine-upright.enabled": ["text-combine-upright"],
"layout.css.image-orientation.enabled": ["image-orientation"],
"layout.css.mix-blend-mode.enabled": ["mix-blend-mode"],
"layout.css.isolation.enabled": [ "isolation"],
+3
View File
@@ -2441,6 +2441,9 @@ pref("layout.css.background-blend-mode.enabled", true);
// Is support for CSS vertical text enabled?
pref("layout.css.vertical-text.enabled", false);
// Is support for CSS text-combine-upright (tate-chu-yoko) enabled?
pref("layout.css.text-combine-upright.enabled", false);
// Is support for object-fit and object-position enabled?
pref("layout.css.object-fit-and-position.enabled", true);