| Summary: | REGRESSION: CSS scroll-behavior: smooth with overflow: hidden breaks JS scrollTo/scrollLeft/scrollTop | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Peter <peter> | ||||
| Component: | Scrolling | Assignee: | Nikos Mouchtaris <nmouchtaris> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Critical | CC: | alexis.dubois, allllllx, clshortfuse, delatorre.juanpablo, malaudh, mic.gallego, peter, simon.fraser, webkit-bug-importer | ||||
| Priority: | P2 | Keywords: | InRadar | ||||
| Version: | Safari 15 | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| See Also: |
https://bugs.webkit.org/show_bug.cgi?id=242224 https://bugs.webkit.org/show_bug.cgi?id=245300 |
||||||
| Attachments: |
|
||||||
|
Description
Peter
2022-03-29 02:26:33 PDT
Thank you for the report. We start a ScrollAnimationSmooth but never service it. The scrollable area is not added to FrameView's set of scrollable areas because it's not user-scrollable, so we don't traverse it in Document::runScrollSteps() to run the animation. Hi, This is a pretty critical bug actually, as it broke all our sites that were using programmatic scroll. The issue also happens for "scrollBy" on the element. Considering how critical this issue is and that it makes any website relying on overflow: hidden programmatic scroll broken, is there any hope to have this being fixed in a minor release as soon as possible? This has broken our ARIA tab panel system. It's been over a month and listed as critical. Can somebody please be assigned? Pull request: https://github.com/WebKit/WebKit/pull/1387 Committed r295448 (251454@main): <https://commits.webkit.org/251454@main> Reviewed commits have been landed. Closing PR #1387 and removing active labels. Created attachment 460596 [details]
Image
Hi, Is this bug supposed to be fixed? I have tried on TP148 and the result is now even stranger. Since Safari 15.4 it did not scroll a bit. Now from TP148 it scrolls by a few pixels, but the position is completely off. You can try here: https://focal-theme-carbon.myshopify.com/ and click on the arrows on the section I have sent as an attachment. That site appears to still be broken with the fix. I filed bug 242224 to track. I can confirm that this is still happening (with element.scroll({options}) method)
Harry, could you point to an example that still fails? Thanks. (In reply to Simon Fraser (smfr) from comment #14) > Harry, could you point to an example that still fails? Thanks. I confirm this issue is still not fixed as per Safari 16.2. You can reproduce it here: https://en.horizonfarms.jp/products/pl200?_pos=2&_psq=whole+organic&_ss=e&_v=1.0 In the list of thumbnails below the product image, if you click on the last one, our image do a "scrollTo" with a smooth behavior. However, the overflow: hidden prevents it. Changing to overflow: visible fixes it. Can you test a recent Safari Tech Preview? (In reply to Simon Fraser (smfr) from comment #16) > Can you test a recent Safari Tech Preview? Seems to be fixed on TP. When is this plan to be released? Having such a basic API being broken from Safari 15.4 to Safari 16.3 (.4 ?) really was problematic. Hello, Any news of the target release version to fix this bug ? |