On Tue, 10 Sep 2024 13:39:10 GMT, Hannes Wallnöfer <hann...@openjdk.org> wrote:
> Please review a simple JavaScript change to avoid the `ResizeObserver` > callback to interrupt smooth scrolling on Chrome browsers when an page with > an anchor is loaded. Unfortunately, Chrome is susceptible to interrupt smooth > scrolling if a script accesses the DOM while scrolling. Since the > `ResizeObserver` callback is invoked when the page is loaded, Chrome failed > to scroll to the element indicated by the anchor. This change causes the > initial invocation of the callback to be ignored. > > I have uploaded [sample docs built with this > fix](https://cr.openjdk.org/~hannesw/8339684/api.00/) to be tested against > the [unfixed > docs](https://download.java.net/java/early_access/jdk24/docs/api/). I checked this in Chrome. Your unfixed version is broken, and the fixed version works fine. ------------- Marked as reviewed by prappo (Reviewer). PR Review: https://git.openjdk.org/jdk/pull/20935#pullrequestreview-2346115767