-
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
AOL and background-image in a <style> tag #2
Comments
In modern browsers, having the <style type="text/css">
.test {
background-image:url("<a href="http://i.imgur.com/A4kblQ3.jpg"" target=_blank>http://i.imgur.com/A4kblQ3.jpg"</a>;);
color:red;
}
</style> When using no quote, the code will be interpreted as the following : <style type="text/css">
.test {
background-image:url(<a href="http://i.imgur.com/A4kblQ3.jpg" target=_blank>http://i.imgur.com/A4kblQ3.jpg</a>);
color:red;
}
</style> Even if the |
I'm finding it's affecting the following selector too. In this example I just have 2 selectors
As a solution I've just separated the bg image into it's own selector and added this after it
|
@M-J-Robbins I think this is more related to this bug. But it's a nice solution you got there. |
This bug was reported on Twitter to @aolmailhelp and @aolmail. |
Yeah saw that, wan't aware of that before good catch. But I wasn't using quotes (minify takes them out for me). |
It seems that this bug was fixed. Background images are no longer badly replaced in AOL. |
This issue seems to have reappeared. Testing the initial sample of this post, the code becomes: #yiv8940145174 .yiv8940145174test {
background-image:url("<a href="https://ecp.yusercontent.com/mail?url=http%3A%2F%2Fi1.cmail20.com%2Fei%2Fy%2F27%2F262%2F17D%2F032355%2Fcsimport%2Fa4kblq3_0.jpg&t=1550766248&ymreqid=94544d5c-a0a0-c294-2f3c-eb0009010000&sig=SduUSLEF32_3Qqm9a27jSw--~C" class="linkified" target="_blank">https://ecp.yusercontent.com/mail?url=http%3A%2F%2Fi1.cmail20.com%2Fei%2Fy%2F27%2F262%2F17D%2F032355%2Fcsimport%2Fa4kblq3_0.jpg&t=1550766248&ymreqid=94544d5c-a0a0-c294-2f3c-eb0009010000&sig=SduUSLEF32_3Qqm9a27jSw--~C</a>");
} |
Thanks for Matthieu B. on Slack for the ping, this issue seems fixed now. The previous example is now turned into: #yiv7928140548 .yiv7928140548test {
background-image: removedimage__36ec86c5-3c4c-4886-b98f-1ebe79db19e8__url(https://ecp.yusercontent.com/mail?url=http%3A%2F%2Fi1.cmail20.com%2Fei%2Fy%…mreqid=94544d5c-a0a0-c294-2fc6-190009010000&sig=xeBxM_yYh4d4H5JzhEXleA--~C)
} Can anyone else confirm ? (just to make sure it's deployed everywhere before I close the issue) |
Back to normal for me too now :) |
Thanks ! I close this, hoping we won't have to reopen it in three years. :D |
AOL incorrectly replaces the path of a
background-image
when used in a<style>
tag. It wraps the URL of the image with an<a>
tag linking to the image itself. The following example…… becomes :
The same thing happens if you use single quotes or no quotes at all. It happens with the
background-image
property and thebackground
shorthand. It happens no matter if the<style>
tag is in the<body>
or the<head>
.It doesn't happen when using
background
orbackground-image
inline in astyle
attribute.The text was updated successfully, but these errors were encountered: