Skip to content

Layout viewport scrollbars #11

Description

@hwride

Apologies if it's not appropriate to raise issues for something like this. But I've been looking at the different viewports and behaviours on browsers and I've noticed for the layout viewport there are potentially a couple of slightly different definitions:

  • Including scrollbars: MDN for example explains the layout viewport as follows: "The area within the innerHeight and innerWidth is generally considered the layout viewport. The browser chrome is not considered part of the viewport."
    https://developer.mozilla.org/en-US/docs/Web/CSS/Viewport_concepts . Now these properties include scrollbars.
  • Not including scrollbars: as described by yourself and others, referring to it as the area a fixed element is positioned with top, bottom, left, right of 0. This personally makes more sense to me as this is actually the space elements are laid out relative to.

Not sure if mentioning this distinction anywhere is worth it, and I could be missing something, but it does seem to be a little bit of a dual definition.

Cheers

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions