mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
style: Implement Animate trait and ComputeSquaredDistance trait for <ratio>.
I also update the wpt becasue it seems the original one lets <ratio> support the addition. However, the spec says "Addition of <ratio>s is not possible". Differential Revision: https://phabricator.services.mozilla.com/D106219
This commit is contained in:
parent
52d39fc1bc
commit
0ef2410ea0
4 changed files with 83 additions and 7 deletions
|
@ -10,15 +10,12 @@ use style_traits::{CssWriter, ToCss};
|
|||
|
||||
/// A generic value for the `<ratio>` value.
|
||||
#[derive(
|
||||
Animate,
|
||||
Clone,
|
||||
ComputeSquaredDistance,
|
||||
Copy,
|
||||
Debug,
|
||||
MallocSizeOf,
|
||||
PartialEq,
|
||||
SpecifiedValueInfo,
|
||||
ToAnimatedZero,
|
||||
ToComputedValue,
|
||||
ToResolvedValue,
|
||||
ToShmem,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue