mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Allow cross interpolation between differing translate/scale functions
See ToPrimitive() in StyleAnimationValue.cpp
This commit is contained in:
parent
f699b8cfb2
commit
9c9a181f35
4 changed files with 12 additions and 3 deletions
|
@ -706,6 +706,11 @@ impl CSSPixelLength {
|
|||
pub fn abs(self) -> Self {
|
||||
CSSPixelLength::new(self.0.abs())
|
||||
}
|
||||
|
||||
/// Zero value
|
||||
pub fn zero() -> Self {
|
||||
CSSPixelLength::new(0.)
|
||||
}
|
||||
}
|
||||
|
||||
impl ToCss for CSSPixelLength {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue