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:
Hiroyuki Ikezoe 2019-04-11 06:19:13 +00:00 committed by Emilio Cobos Álvarez
parent 0a84073767
commit 2f457ed144
6 changed files with 8 additions and 7 deletions

View file

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