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:
Boris Chiou 2023-01-24 22:21:19 +00:00 committed by Martin Robinson
parent b5b64af3f1
commit 835268aec2
8 changed files with 102 additions and 8 deletions

View file

@ -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,