style: Implement offset-distance.

Define the offset-distance property in style system.

Differential Revision: https://phabricator.services.mozilla.com/D30582
This commit is contained in:
Boris Chiou 2019-05-20 23:42:52 +00:00 committed by Emilio Cobos Álvarez
parent d80a5d9196
commit c50829bf6e

View file

@ -404,6 +404,19 @@ ${helpers.predefined_type(
gecko_pref="layout.css.motion-path.enabled",
flags="CREATES_STACKING_CONTEXT FIXPOS_CB",
spec="https://drafts.fxtf.org/motion-1/#offset-path-property",
servo_restyle_damage="reflow_out_of_flow"
)}
// Motion Path Module Level 1
${helpers.predefined_type(
"offset-distance",
"LengthPercentage",
"computed::LengthPercentage::zero()",
products="gecko",
animation_value_type="none",
gecko_pref="layout.css.motion-path.enabled",
spec="https://drafts.fxtf.org/motion-1/#offset-distance-property",
servo_restyle_damage="reflow_out_of_flow"
)}
// CSSOM View Module