mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22: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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue