Skip to content
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

[css-sizing-4] "scroll container" probably needs to be more precise. #4635

Closed
bfgeek opened this issue Dec 30, 2019 · 1 comment
Closed

[css-sizing-4] "scroll container" probably needs to be more precise. #4635

bfgeek opened this issue Dec 30, 2019 · 1 comment

Comments

@bfgeek
Copy link

bfgeek commented Dec 30, 2019

https://drafts.csswg.org/css-sizing-4/#aspect-ratio-minimum

It is possible for something to be a scroll container along one axis, e.g. "overflow-x: auto". This rule probably only wants to apply when the "ratio-dependent axis", is the same as the scroll container axis?

@Loirooriol
Copy link
Contributor

It's not possible, see https://drafts.csswg.org/css-overflow-3/#overflow-properties

Only the visible and clip values avoid a scroll container, and

Computed value: as specified, except with visible/clip computing to auto/hidden (respectively) if one of overflow-x or overflow-y is neither visible nor clip.

The overflow-x: auto that you mention behaves as either scroll or hidden, both of which make a scroll container (even if there is no scrollbar, you can scroll with JS).

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

No branches or pull requests

3 participants