aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <emilio@crisal.io>2018-08-21 16:42:27 +0200
committerEmilio Cobos Álvarez <emilio@crisal.io>2018-09-03 12:31:04 +0200
commita2d6566d0b2d541e51c3338a95a871ce8f480b57 (patch)
tree5aaa32f8c0d42ec0f5f0afb4132a70eab1d96117
parente338bd3addaa996fcaa179bd9a0c8f708fd01955 (diff)
downloadservo-a2d6566d0b2d541e51c3338a95a871ce8f480b57.tar.gz
servo-a2d6566d0b2d541e51c3338a95a871ce8f480b57.zip
style: Make text-orientation, unicode-bidi, contain and will-change non-animatable.
Per recent CSSWG resolutions: https://github.com/w3c/csswg-drafts/issues/2737 https://github.com/w3c/csswg-drafts/issues/2751 Differential Revision: https://phabricator.services.mozilla.com/D3888
-rw-r--r--components/style/properties/longhands/box.mako.rs20
-rw-r--r--components/style/properties/longhands/inherited_box.mako.rs5
-rw-r--r--components/style/properties/longhands/text.mako.rs12
3 files changed, 19 insertions, 18 deletions
diff --git a/components/style/properties/longhands/box.mako.rs b/components/style/properties/longhands/box.mako.rs
index 4ef45a502bc..c408bfe11e9 100644
--- a/components/style/properties/longhands/box.mako.rs
+++ b/components/style/properties/longhands/box.mako.rs
@@ -513,14 +513,16 @@ ${helpers.predefined_type(
servo_restyle_damage="reflow_out_of_flow"
)}
-${helpers.predefined_type("contain",
- "Contain",
- "specified::Contain::empty()",
- animation_value_type="discrete",
- products="gecko",
- flags="CREATES_STACKING_CONTEXT FIXPOS_CB",
- gecko_pref="layout.css.contain.enabled",
- spec="https://drafts.csswg.org/css-contain/#contain-property")}
+${helpers.predefined_type(
+ "contain",
+ "Contain",
+ "specified::Contain::empty()",
+ animation_value_type="none",
+ products="gecko",
+ flags="CREATES_STACKING_CONTEXT FIXPOS_CB",
+ gecko_pref="layout.css.contain.enabled",
+ spec="https://drafts.csswg.org/css-contain/#contain-property",
+)}
// Non-standard
${helpers.predefined_type(
@@ -552,7 +554,7 @@ ${helpers.predefined_type(
"WillChange",
"computed::WillChange::auto()",
products="gecko",
- animation_value_type="discrete",
+ animation_value_type="none",
spec="https://drafts.csswg.org/css-will-change/#will-change"
)}
diff --git a/components/style/properties/longhands/inherited_box.mako.rs b/components/style/properties/longhands/inherited_box.mako.rs
index 4482931fd7a..d810ec3d29a 100644
--- a/components/style/properties/longhands/inherited_box.mako.rs
+++ b/components/style/properties/longhands/inherited_box.mako.rs
@@ -40,15 +40,12 @@ ${helpers.single_keyword(
servo_restyle_damage="rebuild_and_reflow",
)}
-// TODO(emilio): Should text-orientation be non-animatable? It affects the
-// WritingMode value, but not the logical -> physical mapping of properties,
-// which is the reason direction / writing-mode are non-animatable.
${helpers.single_keyword(
"text-orientation",
"mixed upright sideways",
extra_gecko_aliases="sideways-right=sideways",
products="gecko",
- animation_value_type="discrete",
+ animation_value_type="none",
spec="https://drafts.csswg.org/css-writing-modes/#propdef-text-orientation",
)}
diff --git a/components/style/properties/longhands/text.mako.rs b/components/style/properties/longhands/text.mako.rs
index 613ed6c5f67..f87fe4915a3 100644
--- a/components/style/properties/longhands/text.mako.rs
+++ b/components/style/properties/longhands/text.mako.rs
@@ -21,11 +21,13 @@ ${helpers.predefined_type("text-overflow",
spec="https://drafts.csswg.org/css-ui/#propdef-text-overflow",
servo_restyle_damage="rebuild_and_reflow")}
-${helpers.single_keyword("unicode-bidi",
- "normal embed isolate bidi-override isolate-override plaintext",
- animation_value_type="discrete",
- spec="https://drafts.csswg.org/css-writing-modes/#propdef-unicode-bidi",
- servo_restyle_damage="rebuild_and_reflow")}
+${helpers.single_keyword(
+ "unicode-bidi",
+ "normal embed isolate bidi-override isolate-override plaintext",
+ animation_value_type="none",
+ spec="https://drafts.csswg.org/css-writing-modes/#propdef-unicode-bidi",
+ servo_restyle_damage="rebuild_and_reflow",
+)}
${helpers.predefined_type("text-decoration-line",
"TextDecorationLine",