Skip to content

Commit

Permalink
style: Make offset-anchor animatable.
Browse files Browse the repository at this point in the history
Per the spec issue, w3c/csswg-drafts#3482,
we update the wpt to keep the percentage in `calc()` for `offset-anchor`.

Differential Revision: https://phabricator.services.mozilla.com/D39552
  • Loading branch information
BorisChiou authored and emilio committed Aug 15, 2019
1 parent 33690b9 commit c6cdaaf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion components/style/properties/longhands/box.mako.rs
Expand Up @@ -427,7 +427,7 @@ ${helpers.predefined_type(
"PositionOrAuto",
"computed::PositionOrAuto::auto()",
engines="gecko",
animation_value_type="none",
animation_value_type="ComputedValue",
gecko_pref="layout.css.motion-path.enabled",
spec="https://drafts.fxtf.org/motion-1/#offset-anchor-property",
servo_restyle_damage="reflow_out_of_flow",
Expand Down
3 changes: 3 additions & 0 deletions components/style/values/generics/position.rs
Expand Up @@ -45,13 +45,16 @@ impl<H, V> Position<H, V> {
/// This is used by <offset-anchor> for now.
/// https://drafts.fxtf.org/motion-1/#offset-anchor-property
#[derive(
Animate,
Clone,
ComputeSquaredDistance,
Copy,
Debug,
MallocSizeOf,
Parse,
PartialEq,
SpecifiedValueInfo,
ToAnimatedZero,
ToComputedValue,
ToCss,
ToResolvedValue,
Expand Down

0 comments on commit c6cdaaf

Please sign in to comment.