Skip to content

[css-overscroll-behavior] Interaction between overscroll-behavior and zooming #3267

Closed
@theres-waldo

Description

@theres-waldo

The overscroll-behavior spec does not explicilty mention how overscroll-behavior interacts with zooming.

Consider this test page, which has a scrollable div with overscroll-behavior: contain. If you load this page on mobile and zoom in such that the div fills the screen, the behaviour in Firefox is that you cannot scroll to bring all areas of the div into view. Specifically, you can scroll the div itself, i.e. bring new areas into its scrollport, but insofar as zooming made parts of the div's scrollport itself be offscreen, those areas cannot be brought onscreen (because that would constitute scrolling of the enclosing scroll container, which is forbidden by the overscroll-behavior: contain).

It's not clear whether or not this is the intended behaviour. Either way, the spec should be clarified to describe what the intended behaviour is here.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions