mirror of
https://github.com/servo/servo.git
synced 2025-08-09 15:35:34 +01:00
style: Rename ScrollSnapType to ScrollSnapStrictness.
The scroll snap strictness is defined in the new spec [1], and the structure is the exactly same as the old scroll snap type structure. [1] https://drafts.csswg.org/css-scroll-snap-1/#snap-strictness Differential Revision: https://phabricator.services.mozilla.com/D21621
This commit is contained in:
parent
0a84073767
commit
2f457ed144
6 changed files with 8 additions and 7 deletions
|
@ -379,6 +379,7 @@ impl Parse for AnimationName {
|
|||
}
|
||||
}
|
||||
|
||||
/// https://drafts.csswg.org/css-scroll-snap-1/#snap-strictness
|
||||
#[allow(missing_docs)]
|
||||
#[cfg_attr(feature = "servo", derive(Deserialize, Serialize))]
|
||||
#[derive(
|
||||
|
@ -396,7 +397,7 @@ impl Parse for AnimationName {
|
|||
ToShmem,
|
||||
)]
|
||||
#[repr(u8)]
|
||||
pub enum ScrollSnapType {
|
||||
pub enum ScrollSnapStrictness {
|
||||
None,
|
||||
Mandatory,
|
||||
Proximity,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue