mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
style: Support scroll-timeline-axis longhand in style system
Implement "scroll-timeline-axis: block | inline | vertical | horizontal". Differential Revision: https://phabricator.services.mozilla.com/D146019
This commit is contained in:
parent
8d8594ef86
commit
0c709f714b
5 changed files with 20 additions and 8 deletions
|
@ -315,3 +315,14 @@ ${helpers.predefined_type(
|
|||
spec="https://github.com/w3c/csswg-drafts/issues/6674",
|
||||
rule_types_allowed=DEFAULT_RULES_EXCEPT_KEYFRAME,
|
||||
)}
|
||||
|
||||
${helpers.predefined_type(
|
||||
"scroll-timeline-axis",
|
||||
"ScrollAxis",
|
||||
"computed::ScrollAxis::default()",
|
||||
engines="gecko",
|
||||
animation_value_type="none",
|
||||
gecko_pref="layout.css.scroll-linked-animations.enabled",
|
||||
spec="https://github.com/w3c/csswg-drafts/issues/6674",
|
||||
rule_types_allowed=DEFAULT_RULES_EXCEPT_KEYFRAME,
|
||||
)}
|
||||
|
|
|
@ -15,8 +15,9 @@ pub use crate::values::specified::box_::{
|
|||
AnimationName, AnimationTimeline, Appearance, BreakBetween, BreakWithin,
|
||||
Clear as SpecifiedClear, Contain, ContainerName, ContainerType, ContentVisibility, Display,
|
||||
Float as SpecifiedFloat, Overflow, OverflowAnchor, OverflowClipBox, OverscrollBehavior,
|
||||
ScrollSnapAlign, ScrollSnapAxis, ScrollSnapStop, ScrollSnapStrictness, ScrollSnapType,
|
||||
ScrollTimelineName, ScrollbarGutter, TouchAction, TransitionProperty, WillChange,
|
||||
ScrollAxis, ScrollSnapAlign, ScrollSnapAxis, ScrollSnapStop, ScrollSnapStrictness,
|
||||
ScrollSnapType, ScrollTimelineName, ScrollbarGutter, TouchAction, TransitionProperty,
|
||||
WillChange,
|
||||
};
|
||||
|
||||
/// A computed value for the `vertical-align` property.
|
||||
|
|
|
@ -49,7 +49,7 @@ pub use self::box_::{AnimationIterationCount, AnimationName, AnimationTimeline,
|
|||
pub use self::box_::{Appearance, BreakBetween, BreakWithin, Clear, ContentVisibility, Float};
|
||||
pub use self::box_::{Display, Overflow, OverflowAnchor, TransitionProperty};
|
||||
pub use self::box_::{OverflowClipBox, OverscrollBehavior, Perspective, Resize, ScrollbarGutter};
|
||||
pub use self::box_::{ScrollSnapAlign, ScrollSnapAxis, ScrollSnapStop};
|
||||
pub use self::box_::{ScrollAxis, ScrollSnapAlign, ScrollSnapAxis, ScrollSnapStop};
|
||||
pub use self::box_::{ScrollSnapStrictness, ScrollSnapType, ScrollTimelineName};
|
||||
pub use self::box_::{TouchAction, VerticalAlign, WillChange};
|
||||
pub use self::color::{Color, ColorOrAuto, ColorPropertyValue, ColorScheme, PrintColorAdjust};
|
||||
|
|
|
@ -774,13 +774,13 @@ impl Default for Scroller {
|
|||
#[repr(u8)]
|
||||
pub enum ScrollAxis {
|
||||
/// The block axis of the scroll container. (Default.)
|
||||
Block,
|
||||
Block = 0,
|
||||
/// The inline axis of the scroll container.
|
||||
Inline,
|
||||
Inline = 1,
|
||||
/// The vertical block axis of the scroll container.
|
||||
Vertical,
|
||||
Vertical = 2,
|
||||
/// The horizontal axis of the scroll container.
|
||||
Horizontal,
|
||||
Horizontal = 3,
|
||||
}
|
||||
|
||||
impl Default for ScrollAxis {
|
||||
|
|
|
@ -40,7 +40,7 @@ pub use self::box_::{AnimationIterationCount, AnimationName, AnimationTimeline,
|
|||
pub use self::box_::{Appearance, BreakBetween, BreakWithin, ContainerName, ContainerType};
|
||||
pub use self::box_::{Clear, ContentVisibility, Float, Overflow, OverflowAnchor};
|
||||
pub use self::box_::{OverflowClipBox, OverscrollBehavior, Perspective, Resize, ScrollbarGutter};
|
||||
pub use self::box_::{ScrollSnapAlign, ScrollSnapAxis, ScrollSnapStop};
|
||||
pub use self::box_::{ScrollAxis, ScrollSnapAlign, ScrollSnapAxis, ScrollSnapStop};
|
||||
pub use self::box_::{ScrollSnapStrictness, ScrollSnapType, ScrollTimelineName};
|
||||
pub use self::box_::{TouchAction, TransitionProperty, VerticalAlign, WillChange};
|
||||
pub use self::color::{Color, ColorOrAuto, ColorPropertyValue, ColorScheme, PrintColorAdjust};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue