[Webkit-unassigned] [Bug 192862] New: Anchor link in horizontal scroll container won't trigger scrolling if element is at least partially in view

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Dec 19 10:51:56 PST 2018


https://bugs.webkit.org/show_bug.cgi?id=192862

            Bug ID: 192862
           Summary: Anchor link in horizontal scroll container won't
                    trigger scrolling if element is at least partially in
                    view
           Product: WebKit
           Version: Safari Technology Preview
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Layout and Rendering
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: hi at jonjohnjohnson.com
                CC: bfulgham at webkit.org, simon.fraser at apple.com,
                    zalan at apple.com

Steps to reproduce the problem:
1. Go to https://vault.jonjohnjohnson.com/examples/scrolltabs/
2. Open up devtools and remove `scroll-snap-type` declaration from ruleset of '.tabbed' selector. (Sorry I don't have time to reduce case, but easily understandable without reduction)
3. Click tab 2. Click tab 1. See anchors exhibit scrolling to move either targeted panel into view.
4. Scroll horiztonally so that you are halfway between tabs/panels 1 and 2.
5. Now click tab 1 and tab 2 and notice how the browser will not align the targeted panels towards the scroll start edge of the scrollport.

What is the expected behavior?
Clicking anchors should always align targeted elements to corresponding scroll start edge in scrollport. Regardless of elements having been partially in view.

What went wrong?
Video of bug (without style alteration in devtools)
http://cl.ly/330c24b7c063

Does this work in other browsers? Yes, firefox.
Blink also has this same unexpected/broken behavior.

I'd thought this would have already been reported, but couldn't find an issue. Sorry if this is a dup. :/




Same filing against blink https://bugs.chromium.org/p/chromium/issues/detail?id=916631

-- 
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/20181219/bcd79a61/attachment.html>


More information about the webkit-unassigned mailing list