Re: [csswg-drafts] [cssom-view-1] Update spec text for visual viewport scroll and scrollend events (#8205)

Your understanding is correct but the spec now matches how Chrome and Safari behave (though I see Firefox does fire it for document scrolls as well). 

It was intended that `scroll` is fired at VisualViewport only when its `offsetTop` or `offsetLeft` values change - I checked the [draft spec](https://wicg.github.io/visual-viewport/index.html#additions-to-resizing-viewports) and it seems I made a mistake there (sorry!) as that text implies Firefox's behavior.

Given Chrome and Safari both avoid firing it on document scrolls this behavior is web compatible though.

-- 
GitHub Notification of comment by bokand
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/pull/8205#issuecomment-1520851163 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 24 April 2023 21:29:28 UTC