mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-16 05:45:33 +00:00
Bug 1229609 - Remove layout.css.text-emphasis.enabled pref. r=heycam
MozReview-Commit-ID: IEWZmZHKoXA --HG-- extra : source : 382feec3df1b64ccaf07cbfe7de58d0e97a59e46
This commit is contained in:
parent
0a93398e34
commit
6d44085edf
@ -109,4 +109,4 @@ fuzzy-if(OSX==1010,1,2) == underline-button-2.html underline-button-2-ref.html
|
||||
== underline-select-2.html underline-select-2-ref.html
|
||||
== 1133392.html 1133392-ref.html
|
||||
!= 1159729-offset-adjustment.html 1159729-offset-adjustment-notref.html
|
||||
pref(layout.css.text-emphasis.enabled,true) == emphasis-style-dynamic.html emphasis-style-dynamic-ref.html
|
||||
== emphasis-style-dynamic.html emphasis-style-dynamic-ref.html
|
||||
|
@ -1,5 +1,4 @@
|
||||
default-preferences pref(layout.css.vertical-text.enabled,true)
|
||||
default-preferences pref(layout.css.text-emphasis.enabled,true)
|
||||
|
||||
== ruby-text-decoration-01.html ruby-text-decoration-01-ref.html
|
||||
== text-decoration-propagation-01.html text-decoration-propagation-01-ref.html
|
||||
|
@ -3967,17 +3967,15 @@ CSS_PROP_SHORTHAND(
|
||||
text-emphasis,
|
||||
text_emphasis,
|
||||
TextEmphasis,
|
||||
CSS_PROPERTY_PARSE_FUNCTION |
|
||||
CSS_PROPERTY_ENABLED_IN_UA_SHEETS,
|
||||
"layout.css.text-emphasis.enabled")
|
||||
CSS_PROPERTY_PARSE_FUNCTION,
|
||||
"")
|
||||
CSS_PROP_TEXT(
|
||||
text-emphasis-color,
|
||||
text_emphasis_color,
|
||||
TextEmphasisColor,
|
||||
CSS_PROPERTY_PARSE_VALUE |
|
||||
CSS_PROPERTY_IGNORED_WHEN_COLORS_DISABLED |
|
||||
CSS_PROPERTY_ENABLED_IN_UA_SHEETS,
|
||||
"layout.css.text-emphasis.enabled",
|
||||
CSS_PROPERTY_IGNORED_WHEN_COLORS_DISABLED,
|
||||
"",
|
||||
VARIANT_HC,
|
||||
nullptr,
|
||||
CSS_PROP_NO_OFFSET,
|
||||
@ -3987,9 +3985,8 @@ CSS_PROP_TEXT(
|
||||
text_emphasis_position,
|
||||
TextEmphasisPosition,
|
||||
CSS_PROPERTY_PARSE_VALUE |
|
||||
CSS_PROPERTY_VALUE_PARSER_FUNCTION |
|
||||
CSS_PROPERTY_ENABLED_IN_UA_SHEETS,
|
||||
"layout.css.text-emphasis.enabled",
|
||||
CSS_PROPERTY_VALUE_PARSER_FUNCTION,
|
||||
"",
|
||||
0,
|
||||
kTextEmphasisPositionKTable,
|
||||
CSS_PROP_NO_OFFSET,
|
||||
@ -3999,9 +3996,8 @@ CSS_PROP_TEXT(
|
||||
text_emphasis_style,
|
||||
TextEmphasisStyle,
|
||||
CSS_PROPERTY_PARSE_VALUE |
|
||||
CSS_PROPERTY_VALUE_PARSER_FUNCTION |
|
||||
CSS_PROPERTY_ENABLED_IN_UA_SHEETS,
|
||||
"layout.css.text-emphasis.enabled",
|
||||
CSS_PROPERTY_VALUE_PARSER_FUNCTION,
|
||||
"",
|
||||
0,
|
||||
nullptr,
|
||||
CSS_PROP_NO_OFFSET,
|
||||
|
@ -3744,6 +3744,45 @@ var gCSSProperties = {
|
||||
other_values: [ "double", "dotted", "dashed", "wavy", "-moz-none" ],
|
||||
invalid_values: [ "none", "groove", "ridge", "inset", "outset", "solid dashed", "wave" ]
|
||||
},
|
||||
"text-emphasis": {
|
||||
domProp: "textEmphasis",
|
||||
inherited: true,
|
||||
type: CSS_TYPE_TRUE_SHORTHAND,
|
||||
prerequisites: { "color": "black" },
|
||||
subproperties: [ "text-emphasis-style", "text-emphasis-color" ],
|
||||
initial_values: [ "none currentColor", "currentColor none", "none", "currentColor", "none black" ],
|
||||
other_values: [ "filled dot black", "#f00 circle open", "sesame filled rgba(0,0,255,0.5)", "red", "green none", "currentColor filled", "currentColor open" ],
|
||||
invalid_values: [ "filled black dot", "filled filled red", "open open circle #000", "circle dot #f00", "rubbish" ]
|
||||
},
|
||||
"text-emphasis-color": {
|
||||
domProp: "textEmphasisColor",
|
||||
inherited: true,
|
||||
type: CSS_TYPE_LONGHAND,
|
||||
prerequisites: { "color": "black" },
|
||||
initial_values: [ "currentColor", "black", "rgb(0,0,0)" ],
|
||||
other_values: [ "red", "rgba(255,255,255,0.5)", "transparent" ],
|
||||
invalid_values: [ "#0", "#00", "#00000", "#0000000", "#000000000", "000000", "ff00ff", "rgb(255,xxx,255)" ]
|
||||
},
|
||||
"text-emphasis-position": {
|
||||
domProp: "textEmphasisPosition",
|
||||
inherited: true,
|
||||
type: CSS_TYPE_LONGHAND,
|
||||
initial_values: [ "over right", "right over" ],
|
||||
other_values: [ "over left", "left over", "under left", "left under", "under right", "right under" ],
|
||||
invalid_values: [ "over over", "left left", "over right left", "rubbish left", "over rubbish" ]
|
||||
},
|
||||
"text-emphasis-style": {
|
||||
domProp: "textEmphasisStyle",
|
||||
inherited: true,
|
||||
type: CSS_TYPE_LONGHAND,
|
||||
initial_values: [ "none" ],
|
||||
other_values: [ "filled", "open", "dot", "circle", "double-circle", "triangle", "sesame", "'#'",
|
||||
"filled dot", "filled circle", "filled double-circle", "filled triangle", "filled sesame",
|
||||
"dot filled", "circle filled", "double-circle filled", "triangle filled", "sesame filled",
|
||||
"dot open", "circle open", "double-circle open", "triangle open", "sesame open" ],
|
||||
invalid_values: [ "rubbish", "dot rubbish", "rubbish dot", "open rubbish", "rubbish open", "open filled", "dot circle",
|
||||
"open '#'", "'#' filled", "dot '#'", "'#' circle", "1", "1 open", "open 1" ]
|
||||
},
|
||||
"text-indent": {
|
||||
domProp: "textIndent",
|
||||
inherited: true,
|
||||
@ -7625,48 +7664,6 @@ if (IsCSSPropertyPrefEnabled("layout.css.float-logical-values.enabled")) {
|
||||
gCSSProperties["clear"].invalid_values.push("inline-end");
|
||||
}
|
||||
|
||||
if (IsCSSPropertyPrefEnabled("layout.css.text-emphasis.enabled")) {
|
||||
gCSSProperties["text-emphasis"] = {
|
||||
domProp: "textEmphasis",
|
||||
inherited: true,
|
||||
type: CSS_TYPE_TRUE_SHORTHAND,
|
||||
prerequisites: { "color": "black" },
|
||||
subproperties: [ "text-emphasis-style", "text-emphasis-color" ],
|
||||
initial_values: [ "none currentColor", "currentColor none", "none", "currentColor", "none black" ],
|
||||
other_values: [ "filled dot black", "#f00 circle open", "sesame filled rgba(0,0,255,0.5)", "red", "green none", "currentColor filled", "currentColor open" ],
|
||||
invalid_values: [ "filled black dot", "filled filled red", "open open circle #000", "circle dot #f00", "rubbish" ]
|
||||
};
|
||||
gCSSProperties["text-emphasis-color"] = {
|
||||
domProp: "textEmphasisColor",
|
||||
inherited: true,
|
||||
type: CSS_TYPE_LONGHAND,
|
||||
prerequisites: { "color": "black" },
|
||||
initial_values: [ "currentColor", "black", "rgb(0,0,0)" ],
|
||||
other_values: [ "red", "rgba(255,255,255,0.5)", "transparent" ],
|
||||
invalid_values: [ "#0", "#00", "#00000", "#0000000", "#000000000", "000000", "ff00ff", "rgb(255,xxx,255)" ]
|
||||
};
|
||||
gCSSProperties["text-emphasis-position"] = {
|
||||
domProp: "textEmphasisPosition",
|
||||
inherited: true,
|
||||
type: CSS_TYPE_LONGHAND,
|
||||
initial_values: [ "over right", "right over" ],
|
||||
other_values: [ "over left", "left over", "under left", "left under", "under right", "right under" ],
|
||||
invalid_values: [ "over over", "left left", "over right left", "rubbish left", "over rubbish" ]
|
||||
};
|
||||
gCSSProperties["text-emphasis-style"] = {
|
||||
domProp: "textEmphasisStyle",
|
||||
inherited: true,
|
||||
type: CSS_TYPE_LONGHAND,
|
||||
initial_values: [ "none" ],
|
||||
other_values: [ "filled", "open", "dot", "circle", "double-circle", "triangle", "sesame", "'#'",
|
||||
"filled dot", "filled circle", "filled double-circle", "filled triangle", "filled sesame",
|
||||
"dot filled", "circle filled", "double-circle filled", "triangle filled", "sesame filled",
|
||||
"dot open", "circle open", "double-circle open", "triangle open", "sesame open" ],
|
||||
invalid_values: [ "rubbish", "dot rubbish", "rubbish dot", "open rubbish", "rubbish open", "open filled", "dot circle",
|
||||
"open '#'", "'#' filled", "dot '#'", "'#' circle", "1", "1 open", "open 1" ]
|
||||
};
|
||||
}
|
||||
|
||||
if (IsCSSPropertyPrefEnabled("layout.css.background-clip-text.enabled")) {
|
||||
gCSSProperties["background-clip"].other_values.push(
|
||||
"text",
|
||||
|
@ -2566,9 +2566,6 @@ pref("layout.css.control-characters.visible", false);
|
||||
pref("layout.css.control-characters.visible", true);
|
||||
#endif
|
||||
|
||||
// Is support for text-emphasis enabled?
|
||||
pref("layout.css.text-emphasis.enabled", true);
|
||||
|
||||
// pref for which side vertical scrollbars should be on
|
||||
// 0 = end-side in UI direction
|
||||
// 1 = end-side in document/content direction
|
||||
|
Loading…
x
Reference in New Issue
Block a user