style: Make offset-anchor animatable.

Per the spec issue, https://github.com/w3c/csswg-drafts/issues/3482,
we update the wpt to keep the percentage in `calc()` for `offset-anchor`.

Differential Revision: https://phabricator.services.mozilla.com/D39552
This commit is contained in:
Boris Chiou 2019-08-02 20:12:40 +00:00 committed by Emilio Cobos Álvarez
parent 33690b9eaf
commit c6cdaaf1cf
No known key found for this signature in database
GPG key ID: E1152D0994E4BF8A
2 changed files with 4 additions and 1 deletions

View file

@ -427,7 +427,7 @@ ${helpers.predefined_type(
"PositionOrAuto", "PositionOrAuto",
"computed::PositionOrAuto::auto()", "computed::PositionOrAuto::auto()",
engines="gecko", engines="gecko",
animation_value_type="none", animation_value_type="ComputedValue",
gecko_pref="layout.css.motion-path.enabled", gecko_pref="layout.css.motion-path.enabled",
spec="https://drafts.fxtf.org/motion-1/#offset-anchor-property", spec="https://drafts.fxtf.org/motion-1/#offset-anchor-property",
servo_restyle_damage="reflow_out_of_flow", servo_restyle_damage="reflow_out_of_flow",

View file

@ -45,13 +45,16 @@ impl<H, V> Position<H, V> {
/// This is used by <offset-anchor> for now. /// This is used by <offset-anchor> for now.
/// https://drafts.fxtf.org/motion-1/#offset-anchor-property /// https://drafts.fxtf.org/motion-1/#offset-anchor-property
#[derive( #[derive(
Animate,
Clone, Clone,
ComputeSquaredDistance,
Copy, Copy,
Debug, Debug,
MallocSizeOf, MallocSizeOf,
Parse, Parse,
PartialEq, PartialEq,
SpecifiedValueInfo, SpecifiedValueInfo,
ToAnimatedZero,
ToComputedValue, ToComputedValue,
ToCss, ToCss,
ToResolvedValue, ToResolvedValue,