mirror of
https://github.com/servo/servo.git
synced 2025-08-08 23:15:33 +01:00
style: Cleanup a bit the scroll-snap-type properties.
Still not perfect, but at least a bit more consistent.
This commit is contained in:
parent
05beeee268
commit
328f142f38
6 changed files with 24 additions and 20 deletions
|
@ -110,3 +110,10 @@ impl Parse for AnimationName {
|
|||
Ok(AnimationName(None))
|
||||
}
|
||||
}
|
||||
|
||||
define_css_keyword_enum! { ScrollSnapType:
|
||||
"none" => None,
|
||||
"mandatory" => Mandatory,
|
||||
"proximity" => Proximity,
|
||||
}
|
||||
add_impls_for_keyword_enum!(ScrollSnapType);
|
||||
|
|
|
@ -30,7 +30,7 @@ pub use self::align::{AlignItems, AlignJustifyContent, AlignJustifySelf, Justify
|
|||
pub use self::background::{BackgroundRepeat, BackgroundSize};
|
||||
pub use self::border::{BorderCornerRadius, BorderImageSlice, BorderImageWidth};
|
||||
pub use self::border::{BorderImageSideWidth, BorderRadius, BorderSideWidth, BorderSpacing};
|
||||
pub use self::box_::{AnimationIterationCount, AnimationName, VerticalAlign};
|
||||
pub use self::box_::{AnimationIterationCount, AnimationName, ScrollSnapType, VerticalAlign};
|
||||
pub use self::color::{Color, ColorPropertyValue, RGBAColor};
|
||||
pub use self::effects::{BoxShadow, Filter, SimpleShadow};
|
||||
pub use self::flex::FlexBasis;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue