We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
vh units have always been a little off in Applemail as they render from the email height rather than the viewport height.
vh
However in iOS15 it now looks like they are rendering as 0 no matter what size vh is set.
0
They aren't used often but if you need them the best solution is probably to use max()and set a fallback value height:max(100vh, 200px).
max()
height:max(100vh, 200px)
vw units are working as expected.
vw
The text was updated successfully, but these errors were encountered:
Finally got my hands on iOS 15 public beta 1 and I confirm the issue. Here's a test code I used.
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>iOS 15 vh test</title> </head> <body style="margin:0;"> <div style="background:green; height:100vh;"> Lorem ipsum dolor, sit amet consectetur adipisicing elit. Est, ducimus illo, vel officiis quibusdam quidem quas nemo, laborum aut laudantium itaque dicta temporibus. Possimus dolores facilis, quos tempore dicta inventore. </div> </body> </html>
Sorry, something went wrong.
No branches or pull requests
vh
units have always been a little off in Applemail as they render from the email height rather than the viewport height.However in iOS15 it now looks like they are rendering as
0
no matter what sizevh
is set.They aren't used often but if you need them the best solution is probably to use
max()
and set a fallback valueheight:max(100vh, 200px)
.vw
units are working as expected.The text was updated successfully, but these errors were encountered: