Skip to content

[css-values][css-contain] Can we account for scrollbars on containers when sizing 100cq*?  #10043

@mirisuzanne

Description

@mirisuzanne

In #6026 we resolved to have viewport units account for scrollbars, when overflow:scroll or scrollbar-gutters:stable is set on the root (propagating directly to viewport, not from body).

This will also work for cq* units that are relative to the root (no container defined), since they default to the equivalent sv* units. However, authors are likely to have the same issue on non-root containers.

Demo: https://codepen.io/miriamsuzanne/pen/poBjQxm?editors=1100

Would it make sense to apply our above resolution to cq* units anywhere that the container in question has either overflow:scroll or scrollbar-gutters:stable set?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Thursday morning

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions