style: linear(...) easing: Parsing should split a linear stop value into two for entries with both linear-stop-length set

This brings the behaviour inline with `linear-gradient(...)`

Differential Revision: https://phabricator.services.mozilla.com/D149926
This commit is contained in:
David Shin 2022-06-28 11:31:34 +00:00 committed by Martin Robinson
parent 09fc10c5c2
commit e3e2ee64de
3 changed files with 36 additions and 30 deletions

View file

@ -27,12 +27,9 @@ use crate::values::generics::Optional;
pub struct LinearStop<Number, Percentage> {
/// Output of the function at the given point.
pub output: Number,
/// Playback progress at which this output starts.
/// Playback progress at which this output is given.
#[css(skip_if = "Optional::is_none")]
pub input_start: Optional<Percentage>,
/// Playback progress at which this output ends.
#[css(skip_if = "Optional::is_none")]
pub input_end: Optional<Percentage>,
pub input: Optional<Percentage>,
}
/// A generic easing function.