mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
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:
parent
33690b9eaf
commit
c6cdaaf1cf
2 changed files with 4 additions and 1 deletions
|
@ -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",
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue