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

[Safari] When height is not specified for the parent element, the height of the child is 0 #43

Open
syuilo opened this issue May 29, 2018 · 2 comments

Comments

@syuilo
Copy link

syuilo commented May 29, 2018

TL;DR, See demo: https://jsfiddle.net/0fezqfxw/
It will display correctly in Chrome, Firefox, Edge. It is not displayed in Safari.

For example, when fixing the aspect ratio, you can not specify height for the parent element.

Thanks for this great repository, And sorry my bad English!

@bjnsn
Copy link

bjnsn commented Jan 17, 2019

I found the same issue in Safari 12.0, 12.0.2 & 11.1.2 using https://jsfiddle.net/8whbotq2/
Defining height explicitly resolves the issue: https://jsfiddle.net/mueoxnga/1/

I believe this worked in an earlier version of Safari 11 - since some related code worked before rolling forward.

@syuilo
Copy link
Author

syuilo commented Jul 11, 2021

Looks like the problem is fixed in iOS15.

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

No branches or pull requests

2 participants