mirror of
https://github.com/servo/servo.git
synced 2025-10-17 00:39:15 +01:00
style: Support view-timeline-inset in style system
Support view-timeline-inset: `[ [ auto | <length-percentage> ]{1,2} ]#`. And its initial value is 0. Differential Revision: https://phabricator.services.mozilla.com/D166243
This commit is contained in:
parent
b5b64af3f1
commit
835268aec2
8 changed files with 102 additions and 8 deletions
|
@ -733,9 +733,11 @@ impl Default for Scroller {
|
|||
}
|
||||
}
|
||||
|
||||
/// A value for the <Axis> used in scroll().
|
||||
/// A value for the <Axis> used in scroll(), or a value for {scroll|view}-timeline-axis.
|
||||
///
|
||||
/// https://drafts.csswg.org/scroll-animations-1/rewrite#typedef-axis
|
||||
/// https://drafts.csswg.org/scroll-animations-1/#typedef-axis
|
||||
/// https://drafts.csswg.org/scroll-animations-1/#scroll-timeline-axis
|
||||
/// https://drafts.csswg.org/scroll-animations-1/#view-timeline-axis
|
||||
#[derive(
|
||||
Clone,
|
||||
Debug,
|
||||
|
@ -862,7 +864,7 @@ impl Parse for AnimationTimeline {
|
|||
/// Note: The spec doesn't mention `auto` for scroll-timeline-name. However, `auto` is a keyword in
|
||||
/// animation-timeline, so we reject `auto` for scroll-timeline-name now.
|
||||
///
|
||||
/// https://drafts.csswg.org/scroll-animations-1/rewrite#scroll-timeline-name
|
||||
/// https://drafts.csswg.org/scroll-animations-1/#scroll-timeline-name
|
||||
#[derive(
|
||||
Clone,
|
||||
Debug,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue