From 9f8c80fb3ad9630b2db3fb1c2d40d52c7d69a266 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Fri, 6 Jul 2018 03:44:28 +0200 Subject: [PATCH] style: Make writing-mode and direction non-animatable. Per https://github.com/w3c/csswg-drafts/issues/2751 Bug: 1473779 Reviewed-by: heycam --- .../style/properties/longhands/inherited_box.mako.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/components/style/properties/longhands/inherited_box.mako.rs b/components/style/properties/longhands/inherited_box.mako.rs index 1bbfeabba95..efb3ec19ccb 100644 --- a/components/style/properties/longhands/inherited_box.mako.rs +++ b/components/style/properties/longhands/inherited_box.mako.rs @@ -26,7 +26,7 @@ ${helpers.single_keyword( rl=horizontal-tb rl-tb=horizontal-tb \ tb=vertical-rl tb-rl=vertical-rl", servo_pref="layout.writing-mode.enabled", - animation_value_type="discrete", + animation_value_type="none", spec="https://drafts.csswg.org/css-writing-modes/#propdef-writing-mode", servo_restyle_damage="rebuild_and_reflow", )} @@ -34,12 +34,15 @@ ${helpers.single_keyword( ${helpers.single_keyword( "direction", "ltr rtl", - animation_value_type="discrete", + animation_value_type="none", spec="https://drafts.csswg.org/css-writing-modes/#propdef-direction", needs_conversion=True, 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",