-
Notifications
You must be signed in to change notification settings - Fork 24.2k
-
Notifications
You must be signed in to change notification settings - Fork 24.2k
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
aspectRatio + undefined width/height #22979
Labels
Comments
Hey @santiph thanks for filing If I understand correctly, this is the way aspectRatio is designed to work since aspectRatio controls the size of the unset dimension. If I'm misunderstanding, can you provide a snack or repro that demonstrates? |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
Environment
Description
aspectRatio and height: 100% seem to work only when width is set to undefined, but with aspectRatio and width set, then height is not required at all. (See Demo)
Why is that?
Reproducible Demo
Working fine:
The text was updated successfully, but these errors were encountered: