Skip to content

Commit

Permalink
Bug 1474317: Make text-orientation, unicode-bidi, contain and will-ch…
Browse files Browse the repository at this point in the history
…ange non-animatable. r=heycam

Per recent CSSWG resolutions:

  w3c/csswg-drafts#2737
  w3c/csswg-drafts#2751

Differential Revision: https://phabricator.services.mozilla.com/D3888
  • Loading branch information
emilio committed Aug 22, 2018
1 parent 0138496 commit 9f97893
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 43 deletions.
20 changes: 11 additions & 9 deletions servo/components/style/properties/longhands/box.mako.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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"
)}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
)}

Expand Down
12 changes: 7 additions & 5 deletions servo/components/style/properties/longhands/text.mako.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

This file was deleted.

0 comments on commit 9f97893

Please sign in to comment.