Open
Bug 280480
Opened 20 years ago
Updated 2 years ago
CSS on mail <body>: background-image url not converted to cid:
Categories
(MailNews Core :: Composition, defect)
MailNews Core
Composition
Tracking
(Not tracked)
NEW
People
(Reporter: rod, Unassigned)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b) Gecko/20050127 Firefox/1.0+ Build Identifier: Thunderbird 1.0 (20041206) In an HTML signature file, <IMG src=""/> references are converted to attachments and sent with the email (see Bug 127077) and apparently <BODY background=""> references are too (see Bug 116867). However <TABLE background=""> references are left as-is, as are CSS style="background-image: url()" references. I've used both file:/// and http:// URLs, both with the same effect. My current signature uses a table background image and also an <IMG/> image and only the <IMG/> is converted to an attachment, the other is left as a URL. Reproducible: Always Steps to Reproduce: 1. Create new signature file 2. Enter text: <table background="http://www.mozilla.org/images/firefox-oneoh-top.png"> <tr><td>A silly signature table with a background image and an in-line image <img src="http://www.mozilla.org/images/thunderbird-screen.png" hspace=10 vspace=10/></td></tr></table> 3. Send email to yourself, save and check source. You get a <img src="cid:part..." for the in-line and you get the original background="http:// for the table. Same effect if you use style="background-image: url(http://www.mozilla.org/images/firefox-oneoh-top.png)" in the <table/> instead of background="".
Comment 1•20 years ago
|
||
This is actually two bugs -- one about copying the attribute from style to background attribute (should be unnecessary) plus not converting the URL in the style to the cid:; the other about failing to attach the image (and convert the URL) for the <td> background image. Reproduced both problems with TB 1.0 and Moz 1.86b-0120, Win2K. Interestingly, I notice that -- with "do not display images in mail" pref checked (and whitelisting turned off for TB) -- when the <body>'s background attribute has been set to a cid: URL, but the style attribute's background-image property is still the external URL, that there is no background image shown: the style is overriding the 'background' attribute. Bug 234252 and bug 253222 are related to the style/attribute confusion.
Assignee: mscott → sspitzer
Status: UNCONFIRMED → NEW
Component: Message Compose Window → MailNews: Composition
Ever confirmed: true
OS: Windows XP → All
Product: Thunderbird → Core
Hardware: PC → All
Version: unspecified → Trunk
Comment 2•20 years ago
|
||
(In reply to comment #1) > This is actually two bugs -- one about copying the attribute from style to > background attribute (should be unnecessary) plus not converting the URL in > the style to the cid:; the other about failing to attach the image (and > convert the URL) for the <td> background image. The second problem has been reported, as bug 277925, now confirmed. Focusing this bug on the first problem.
Summary: Table background image and CSS background-image not sent with message → CSS on mail <body>: background-image url not converted to cid:
Comment 3•17 years ago
|
||
sorry for the spam. making bugzilla reflect reality as I'm not working on these bugs. filter on FOOBARCHEESE to remove these in bulk.
Assignee: sspitzer → nobody
Updated•17 years ago
|
QA Contact: composition
| Assignee | ||
Updated•16 years ago
|
Product: Core → MailNews Core
I get no cids and now images as attachments. Thunderbird 52.0.1 (32-bit) Windows 7 64-bit
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•