Closed Bug 254015 Opened 20 years ago Closed 4 years ago

Ignores embedded images references (aka cid) in CSS style sheets

Categories

(Thunderbird :: Mail Window Front End, defect)

x86
All
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: hugo, Unassigned)

References

Details

Attachments

(2 files, 1 obsolete file)

User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322) Build Identifier: I uploaded the email file to: http://www.concepto.com.br/bug.eml The line 48: background-image: url(cid:108740906140d08ba5e205f); Is ignored by Thunderbird, its render ok in Outlook, see the email file and see the bug. Reproducible: Always Steps to Reproduce: 1. Open any email with embebed imagens references in CSS Actual Results: The image is ignored. Expected Results: Show the image
I have noticed this as well. We generated a HTML email with a <div id="someid">. The HTML contained the CSS in the <head> section, which gave the <div> a background image (which was encoded as a Mime attachment). The email was received and displayed fine by Mac Entourage and Windows Outlook, but would not display the background image in Linux Thunderbird. Kae
That's a rather old Mozilla bug. It also doesn't work for common elements, such as tables etc. Interestingly, Thunderbird - Can take a background color from from a style definition in the mail body, so it can read css definitions, - Can display a background image if given as a parameter, e.g. background=cid:image001.jpg@01C50DE6.E02557B0 for the BODY tag. So it should not be too much work to teach thunderbird displaying background images in HTML-E-mail-CSS
I'm glad i ran across this bug, i've been hitting my head against this since I'm just learning how to use MIME and base64 encoding in an email. TB is my primary client and I couldn't for the life of me get this work, but since i know its TB only i'll just reference with a cid and know it will work in OE and webmail clients. And of course vote for this bug and hope it gets fixed.
The sample file is no longer available at the cited URL. If the message is still available, please attach it (as a .EML file) to this bug, using the Create New Attachment link above.
Summary: Ignore embebed images references (aka cid) in CSS style sheets → Ignores embedded images references (aka cid) in CSS style sheets
This mail shows Thunderbird reads the embedded style sheet, renders images inserted with IMG tag but ignores backgrounds set by css attribute.
Thanks for the test case. (There is an error in there -- two <div>'s have the ID "evid" -- but that shouldn't affect this bug.) To other testers: the background images should be seen in the left-hand column of the message. That column is made of up three divs, stacked top-to-bottom: two with id "evid" and one with class "basso". Each of these has three <div>s of its own, also top-to-bottom, and each of those <div>s has a background-image specified in the stylesheet. Note that there are also some embedded <img> tags. If you open the attachment via File|Open TB 1.5/Seamonkey 1.0 or earlier, those images won't display (due to bug 206278, I think) but they'll show with 1.8.1 or later builds.
Version: unspecified → Trunk
QA Contact: front-end
Can we up the severity of this or mark it at least as wanted for TB3? This bug is almost 4 years old and very frustrating. The only solution I've found is to use an external URL for any CSS image backgrounds, which of course doesn't get loaded automatically, and most users see as a security risk. TB does display e.g. <table background="cid:x"> correctly, but I don't consider this a valid workaround since this is not truly valid in any version of HTML.
Flags: wanted-thunderbird3?
Assignee: mscott → nobody
Depends on: mid-urls
I support Ryan Hayle proposal: this bug should really be solved! :)
Am I doing something wrong? I see the same result when opening the .eml with either MS outlook2007, Windows Mail (Vista) or latest tb3.1a1pre nightlies. Is it fixed in these builds perhaps?
Can you people post a screenshot of when should be displayed please?
Complete email without the errors in html the previous attachment had.
Attachment #219168 - Attachment is obsolete: true
Screenshot of correct visualization of the previous attachment
Yep! as I thought... this is fixed in 3.0b2 and 3.1a1 that I've tested it with. Which version are you using at the moment & seeing this bug in?
Hi! I'm using TB 2.0.0.21 (20090302) and the bug is still there.
Ok, then this seems as a 2.x version bug and should be noted as such (owner of this bug should change its state). Manuele, I suggest you move to 3.x if this bug is really bothering you and if most of your extensions are compatible. I've been using it since its early alpha states without any serious issues (no data loss whatsoever) and for a few weeks now I've moved to 3.1 alphas... still very happy with it! Plus you'll have the chance to help testing the new features or suggest some yourself and perhaps spot and report new bugs.
Sorry but where can tb 3.1a1 be found for download?
here you can find 3.0b2 in different languages: http://www.mozillamessaging.com/en-US/thunderbird/early_releases/downloads/ and here are 3.1alpha builds, but only in english versions: ftp://ftp.mozilla.org/pub/mozilla.org/thunderbird/nightly/latest-comm-central-trunk/
Still broken pictures using (tested the .eml file https://bugzilla.mozilla.org/attachment.cgi?id=369045) Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1b4pre) Gecko/20090404 Lightning/1.0pre Shredder/3.0b3pre
does not work. Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1b3pre) Gecko/20090223 Thunderbird/3.0b2 example: MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_1_6609937.1240395356875" ------=_Part_1_6609937.1240395356875 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"><body> <div style="background-image:url(cid:image1@image); width:100px; height: 100px;"></div> </body></html> ------=_Part_1_6609937.1240395356875 Content-Type: image/png; name=img.png Content-Transfer-Encoding: base64 Content-Disposition: inline; filename=img.png Content-ID: <image1@image> iVBORw0KGgoAAAANSUhEUgAAAAEAAAAgCAMAAADkO+IoAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJ bWFnZVJlYWR5ccllPAAAAAxQTFRF48uy3ryay6aA////feJy5wAAAAR0Uk5T////AEAqqfQAAAAX SURBVHjaYmBiYGYgDTDCITMDE0CAAQABrQAQgqCe7gAAAABJRU5ErkJggg== ------=_Part_1_6609937.1240395356875--
The problem still exists in TB 3.1.7 . I use the method proposed in the last message of the webpage " http://forums.mozillazine.org/viewtopic.php?f=31&t=578408 " as a workaround. ( ...... My code, to apply a background image to any table with "class=backgroundTable" now worked. With the <!-- and //--> comment tags, it is: <style type="text/css"> <!-- .backgroundTable { background-image: url(http://airborn.com.au/image1/sky1.gif); } //--> </style> So in summary, if you are having problems with css images not working when emailing from thunderbird, alter your css to wrap your style rules in <!-- and //--> comment tags. ) Please help to recheck this problem and fix it. Thank you.
not working in TB 14 either with cid inline background images. can somebody please invest some time to fix this? you would make a lot of people VERY VERY happy!!!
Still not working correctly in TB 24... :(
Using 24.2.0 still not working. Is there any workaround?
2015, and this is still not working in Thunderbird 31 :-(
It's annoying. Thunderbird seems to be the only mail client that cannot render background images. 11 years and still in the pipeline.
(In reply to Gunar Werner from comment #25) > It's annoying. Thunderbird seems to be the only mail client that cannot > render background images. 11 years and still in the pipeline. definitely not the only one as many companies still use old software: http://www.email-standards.org/clients/microsoft-outlook-2007/screenshot/
Still present in 45.3.0.
Still present in 57.7.0...
Sorry, was meaning 52.7.0!

I am encountering this issue in Thunderbird 60.5.0.

Yes, this is still a bug in the latest Thunderbird. I know it's been 15 years, but is there any chance in Hades we could get this fixed? I'm willing to donate...maybe some sort of bounty?

I think we should wontfix this. It's really hard to end up with a cid url in css (though software can generate it). The simple replacement is using data uris if you need the use case.

Status: NEW → RESOLVED
Closed: 4 years ago
Flags: wanted-thunderbird3?
Resolution: --- → WONTFIX

While I agree that it is difficult for a user to create such CSS in the Thunderbird email client, for my use case I was trying to create a tool for creating/sending rich HTML email messages. Since Thunderbird is an email client intended to display email messages, it would be nice if it actually did so robustly.

(In reply to heavy from comment #33)

While I agree that it is difficult for a user to create such CSS in the Thunderbird email client, for my use case I was trying to create a tool for creating/sending rich HTML email messages. Since Thunderbird is an email client intended to display email messages, it would be nice if it actually did so robustly.

Agree 100%
Exactly same here!

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: