Bug 187697
Summary: | CSS.supports is incorrect for 'scroll-snap-type' | ||
---|---|---|---|
Product: | WebKit | Reporter: | Majid Valipour <majidvp> |
Component: | CSS | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED DUPLICATE | ||
Severity: | Normal | CC: | mrobinson, wenson_hsieh |
Priority: | P2 | ||
Version: | Safari 11 | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Majid Valipour
`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
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Martin Robinson
*** This bug has been marked as a duplicate of bug 210468 ***