style: Make writing-mode and direction non-animatable.

Per https://github.com/w3c/csswg-drafts/issues/2751

Bug: 1473779
Reviewed-by: heycam
This commit is contained in:
Emilio Cobos Álvarez 2018-07-06 03:44:28 +02:00
parent a11dcefee7
commit 9f8c80fb3a
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C

View file

@ -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",