-
Notifications
You must be signed in to change notification settings - Fork 20
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
Yahoo converts the height property to min-height #9
Comments
Yahoo does the same thing. |
The desktop webmail of Gmail no longer does this after the 2016 update. But Inbox by Gmail still does. |
I have the impression that Yahoo doesn't do it anymore. |
It's the end of 2017 and this is still happening in the Yahoo Mail! app when an image has a height attribute declared inline. My smaller images scale just fine, but the larger ones (larger than the viewport I assume) scale incorrectly. I removed the You suggest:
Is this a viable solution? Or will leaving the height attribute off of an |
I was able to workaround this by using a max-height inline style instead of height. was converted to
While was left as it is
Hope this helps. |
After a report by @jkupczak on the #emailgeeks Slack yesterday, it seems that this bug is back in the Gmail Android app. The Here's a test email I used. <!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<title>La Joconde</title>
</head>
<body>
<div style="margin:0 auto;">
<a href="https://fr.wikipedia.org/wiki/La_Joconde"><img src="http://i.imgur.com/Mr8hwAJ.jpg" border="0" alt="La Joconde" width="1058" height="1600" style="display:block; width:100%; height:auto;" /></a>
<p style="Margin:1em 0; text-align:right; color:#333; font:1em/1.5 serif;"><em>La Joconde</em>, Léonard de Vinci</p>
</div>
</body>
</html> |
By request on Slack, I ran a new test this morning and it seems this bug is no longer in Gmail Android. Here's the test on Email on Acid. |
Following a conservation on Slack today, it seems this bug is back on the last version of the desktop webmail of Yahoo. |
I'm also seeing this issue when using background images, since I can't omit the height property. Is there a way to prevent Yahoo from collapsing the container? In this case I don't want the height to be controlled by a nested HTML element, since it will be of variable height. |
As of May-2019 i have tested i just wanted to fix height of image as 30px so i have given inline style as |
I relaunched a test with the code posted here and I'm not longer seeing this bug in any Yahoo email client (desktop webmail, iOS app, Android app) neither in any Gmail client (desktop webmail, mobile webmail, iOS app, Android app, GANGA). So I guess it's over! |
This comment was marked as spam.
This comment was marked as spam.
In case if it's not yet working for you could use the following yahoo specific class:
|
Nice hack using display:grid, how come this also works?
Casper Floor | Front-end Web Designer | Wunderman Thompson MSC | M +4530784157
From: Wilbert Heinen <[email protected]>
Reply to: hteumeuleu/email-bugs <[email protected]>
Date: Thursday, 18 June 2020 at 10.32
To: hteumeuleu/email-bugs <[email protected]>
Cc: Casper Floor <[email protected]>, Comment <[email protected]>
Subject: Re: [hteumeuleu/email-bugs] Yahoo converts the height property to min-height (#9)
In case if it's not yet working for you could use the following yahoo specific class:
`<style>
.& .y-grid {
display: grid
}
</style>
...
...`
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#9 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AJVZZHPDAWA3W7NBD4S2JWTRXHGJ7ANCNFSM4BW6TXEQ>.
|
I'm seeing this fixed on IOS app but not yet on Android app or desktop webmail. I guess it may take a while to roll out the update. Really looking forward to this one going away as I had to jump through all sorts of hoops to work around this in some cases. @wilbertheinen I just tried the
Thanks for this hack it really helps out! |
That margin stuff fixed something for me I encountered in Yahoo in Chome 😅Thanks! |
From what I see Yahoo converts Gmail desktop basic HTML view seems to convert all instances of the |
As you can see, yahoo produces the same issue in 2024. This is resolved of course by using a max-width property. However, there is an alignment issue as white space takes up what would of been the image height without max-width. Thus, I had to use a new alignment value. |
Gmail and Yahoo convert the CSS
height
property tomin-height
. The following code :…is turned into :
This is problematic because the image might now appear squashed if it's displayed below it's maximum width. In order to prevent this, it's best advised to avoid using the
height
attribute in HTML and be cautious when usingheight
in CSS.This happens across all Gmail clients (desktop webmail, mobile webmail, iOS app, Android app, and Inbox clients as well) and Yahoo clients (desktop webmail, iOS app).
This was also discussed here :
The text was updated successfully, but these errors were encountered: