mirror of
https://github.com/servo/servo.git
synced 2025-10-04 02:29:12 +01:00
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:
parent
09fc10c5c2
commit
e3e2ee64de
3 changed files with 36 additions and 30 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue