mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Update references to Web Animations spec
This commit is contained in:
parent
e631d167bf
commit
150db42ef6
2 changed files with 6 additions and 6 deletions
|
@ -262,7 +262,7 @@ impl AnimatedProperty {
|
||||||
% for prop in data.longhands:
|
% for prop in data.longhands:
|
||||||
% if prop.animatable:
|
% if prop.animatable:
|
||||||
AnimatedProperty::${prop.camel_case}(ref from, ref to) => {
|
AnimatedProperty::${prop.camel_case}(ref from, ref to) => {
|
||||||
// https://w3c.github.io/web-animations/#discrete-animation-type
|
// https://drafts.csswg.org/web-animations/#discrete-animation-type
|
||||||
% if prop.animation_value_type == "discrete":
|
% if prop.animation_value_type == "discrete":
|
||||||
let value = if progress < 0.5 { from.clone() } else { to.clone() };
|
let value = if progress < 0.5 { from.clone() } else { to.clone() };
|
||||||
% else:
|
% else:
|
||||||
|
@ -2833,7 +2833,7 @@ impl ComputeSquaredDistance for AnimatedFilterList {
|
||||||
///
|
///
|
||||||
/// border-top-color, border-color, border-top, border
|
/// border-top-color, border-color, border-top, border
|
||||||
///
|
///
|
||||||
/// [property-order] https://w3c.github.io/web-animations/#calculating-computed-keyframes
|
/// [property-order] https://drafts.csswg.org/web-animations/#calculating-computed-keyframes
|
||||||
#[cfg(feature = "gecko")]
|
#[cfg(feature = "gecko")]
|
||||||
pub fn compare_property_priority(a: &PropertyId, b: &PropertyId) -> cmp::Ordering {
|
pub fn compare_property_priority(a: &PropertyId, b: &PropertyId) -> cmp::Ordering {
|
||||||
match (a.as_shorthand(), b.as_shorthand()) {
|
match (a.as_shorthand(), b.as_shorthand()) {
|
||||||
|
|
|
@ -48,15 +48,15 @@ pub trait Animate: Sized {
|
||||||
|
|
||||||
/// An animation procedure.
|
/// An animation procedure.
|
||||||
///
|
///
|
||||||
/// <https://w3c.github.io/web-animations/#procedures-for-animating-properties>
|
/// <https://drafts.csswg.org/web-animations/#procedures-for-animating-properties>
|
||||||
#[allow(missing_docs)]
|
#[allow(missing_docs)]
|
||||||
#[derive(Clone, Copy, Debug, PartialEq)]
|
#[derive(Clone, Copy, Debug, PartialEq)]
|
||||||
pub enum Procedure {
|
pub enum Procedure {
|
||||||
/// <https://w3c.github.io/web-animations/#animation-interpolation>
|
/// <https://drafts.csswg.org/web-animations/#animation-interpolation>
|
||||||
Interpolate { progress: f64 },
|
Interpolate { progress: f64 },
|
||||||
/// <https://w3c.github.io/web-animations/#animation-addition>
|
/// <https://drafts.csswg.org/web-animations/#animation-addition>
|
||||||
Add,
|
Add,
|
||||||
/// <https://w3c.github.io/web-animations/#animation-accumulation>
|
/// <https://drafts.csswg.org/web-animations/#animation-accumulation>
|
||||||
Accumulate { count: u64 },
|
Accumulate { count: u64 },
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue