[Webkit-unassigned] [Bug 200643] New: CSS scroll-* properties should be set on html for viewport, not on body

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Aug 12 14:28:34 PDT 2019


            Bug ID: 200643
           Summary: CSS scroll-* properties should be set on html for
                    viewport, not on body
           Product: WebKit
           Version: Safari 12
          Hardware: Macintosh
                OS: macOS 10.14
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Scrolling
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: miriam at oddbird.net

- https://s.codepen.io/mirisuzanne/debug/yLBNpdQ

Expected Behavior:
- `scroll-padding` and `scroll-snap-type` should be applied to the default viewport scrolling.

Actual Behavior:
- Neither property is applied, so there is no scroll-snapping or scroll offset applied
- The demo only works if you set the properties on `body` instead of `html`, which is counter-to-spec and breaks the (proper) Firefox implementation

- Chrome bug: https://bugs.chromium.org/p/chromium/issues/detail?id=952711
- CSSWG discussion: https://github.com/w3c/csswg-drafts/issues/3740

[Note that *neither* `body` nor `html` seems to work inside an iframe, which is why I link to the "debug" view in codepen. The original pen is available here: https://codepen.io/mirisuzanne/pen/yLBNpdQ?editors=1100)

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20190812/5a8cad44/attachment.html>

More information about the webkit-unassigned mailing list