-
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 will ignore embedded css if it is directly preceded by a comment #25
Comments
Just tested to verify this still happens. It looks like Yahoo replaces CSS comments with its own <div id="yiv4236027226">
<title>Document</title>
<style>
#yiv4236027226 body {
font-family: Helvetica, Arial, sans-serif;
font-size: 12px;
color: #333333;
line-height: 16px;
}
#yiv4236027226
#yiv4236027226 ul {
padding: 0;
margin: 0 0 0 15px;
}
#yiv4236027226 ul ul {
margin: 0 0 5px 15px;
}
#yiv4236027226 li {
margin: 0 0 5px 0;
}
</style>
<div>
<ul>
<li>test</li>
</ul>
</div>
</div> So the selector becomes |
Yep, that's the bug. Thanks for clarifying that. |
Just tested this again with the above CSS - Yahoo Mail still replaces the comment with the unique email #ID. But if you need to use CSS comments, it doesn't strip this single line comment:
However the single line comment above is stripped by Gmail as it parses it as invalid CSS and removes the whole <style> tag. |
It looks like Yahoo Mail has fixed this bug. I tested using the CSS above and Yahoo removed the comment instead of replacing it with the message's wrapper ID. Can someone else confirm? |
Wow, I confirm. Finally. |
@hteumeuleu can this issue be set to closed now? |
Absolutely! |
Example:
ul { padding: 0; }
was ignored. Yahoo added its.undoreset ul { padding-left: 40px; }
Corrected example:
Once the comment has been removed, the
ul { padding: 0; }
will be respected.The text was updated successfully, but these errors were encountered: