Skip to content

[css-values-4] Should we ignore the scrollbars/etc when using vw/etc units on the root? #9653

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
tabatkins opened this issue Nov 29, 2023 · 0 comments
Labels
css-values-4 Current Work

Comments

@tabatkins
Copy link
Member

In #6026, we just resolved to subtract scrollbars from viewport units when overflow:scroll is specified on the root (or similar things, like scrollbar-gutter:always).

For obvious reasons, we do not do this adjustment when v* units are used in MQs; it's trivially cyclic. @emilio asked in IRC if we need to similarly ignore these adjustments for v* units used on the root, similarly to how we treat em and other "look at the parent for some information" units.

It wasn't immediately clear to us on the call if there's actually a potential cyclic issue here or not, so this issue is to figure out if there is.

@tabatkins tabatkins changed the title [css-overflow] Should we ignore the scrollbars/etc when using vw/etc units on the root? [css-values-4] Should we ignore the scrollbars/etc when using vw/etc units on the root? Nov 29, 2023
@tabatkins tabatkins added css-values-4 Current Work and removed css-overflow-4 labels Nov 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
css-values-4 Current Work
Projects
None yet
Development

No branches or pull requests

1 participant