Bug 187697 - CSS.supports is incorrect for 'scroll-snap-type'
Summary: CSS.supports is incorrect for 'scroll-snap-type'
Status: RESOLVED DUPLICATE of bug 210468
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: Safari 11
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-07-16 07:56 PDT by Majid Valipour
Modified: 2020-10-15 07:26 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Majid Valipour 2018-07-16 07:56:41 PDT
`CSS.supports('scroll-snap-type: mandatory')` returns true but it should be false.


CSS Scroll Snap [1] which is supported by Safari require 'scroll-snap-type' to have the following syntax value.
none | [ x | y | block | inline | both ] [ mandatory | proximity ]?

So the above should return 'false'. This is particularly problematic since the buggy
syntax maps to the deprecated css-snap-points spec so it can cause confusion if someone tries to use it 
for feature detection between old and new specification.


[1] https://drafts.csswg.org/css-scroll-snap/#scroll-snap-type
Comment 1 Martin Robinson 2020-10-15 07:26:35 PDT

*** This bug has been marked as a duplicate of bug 210468 ***