Closed Bug 505099 Opened 17 years ago Closed 14 years ago

Incorrect display of HTML with inline CSS in compose window: Links don't respect css styles until sending (always blue & underlined in composition), red table guidelines are confusing

Categories

(Thunderbird :: Message Compose Window, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 210787

People

(Reporter: welshgeek, Unassigned)

Details

(Whiteboard: [consider followup to improve table guidelines])

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/530.5 (KHTML, like Gecko) Chrome/2.0.172.37 Safari/530.5 Build Identifier: version 2.0.0.22 (20090605) A page of HTML with inline CSS does not display properly in the COMPOSE window. It displays perfectly in the READ window when received and also displays perfectly in the text window whilst viewing it in the SENT folder. A copy of the HTML/CSS file is included below in the "Additional Information" box. In the COMPOSE window, the links are blue and the menu at the top is bordered with red dotted lines. Viewing this same page in the SENT MESSAGES folder, the links are white as they should be and there are not dotted lines around the menu at tht top. The HTML/CSS included below results in "No Warnings, No Errors" when checked with the TIDY HTML Validator. Reproducible: Always Steps to Reproduce: 1. Create a new message in Thunderbird 2. Select Insert / HTML from the menu 3. Paste the HTML/CSS (included below) into the compose window Actual Results: Links will appear blue Red/orange dotted lines appear around the menu at the top of this HTML page Expected Results: Links should have been white IAW the inline CSS There should be no dotted lines around the menu <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>The Photos of Hillar Ilves</title> <meta name="verify-v1" content="HZ7jOXQkMhaKBvTvMeh5BBrl9+szP2RTvWF/V9oO8qg=" /> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <meta name="description" content="This site features the photography of Hillar Ilves" /> <meta name="keywords" content="abstract,art,Berlin,black and white,cameras,Cologne,color,creatures,dog,farm,flowers,gallery,German,Germany,graphic,Hillar Ilves,hill,holiday,house,John Deere,kids,landscape,life,light,lighting,novelties,pages,people,photo,photography,picture,prints,sale,seasons,tractor,travel" /> <link rel="shortcut icon" href="favicon.ico" /> <style type="text/css"> #container { width: 800px; background-color: #856116; } h1 { font-family: Georgia, Times, "Times New Roman", serif; text-align: center; font-size: 2em; font-style: italic; color: #FFFFFF; } h3 { font-family: Georgia, Times, "Times New Roman", serif; text-align: center; } a { color: #FFFFFF; } body { margin: 20px; } #header { background-color: #47340C; padding: 2px; } #menu-bar { background-color: #000000; padding-top: 4px; padding-bottom: 4px; font-weight: bold; } img.idx { width: 640px; height: 480px; margin: 10px 10px 10px 10px; border-width: 20px; border-style: solid; border-color: white; } </style> </head> <!-- This is a modified copy of the index page designed to be sent via email --> <body> <div id="container"> <div id="header"> <h1>The Photography of Hillar Ilves</h1> </div> <!-- BEGIN MENU BAR --> <div id="menu-bar"> <table class="navig" align="center" width="90%"> <tr> <td align="left" width="16%"><a class="navig" href="http://www.HillarsPhotos.com/index.html"> Home </a></td> <td align="left" width="16%"><a class="navig" href="http://www.HillarsPhotos.com/main_gallery.html"> Galleries </a></td> <td align="center" width="16%"><a class="navig" href="http://www.HillarsPhotos.com/photos.html"> About The Photos </a></td> <td align="center" width="16%"><a class="navig" href="http://www.HillarsPhotos.com/hillar.html"> About Hillar </a></td> <td align="right" width="16%"><a class="navig" href="http://www.HillarsPhotos.com/order.html"> Ordering Prints </a></td> <td align="right" width="16%"><a class="navig" href="http://www.HillarsPhotos.com/privacy.html"> Privacy </a></td> </tr> </table> </div> <!-- END MENU BAR --> <div> <center> <img class="idx" src="http://HillarsPhotos.com/Img/Rover-Rd-Maples_DSC02943.jpg" /> </center> <h3><a href="http://www.HillarsPhotos.com"> WWW.HillarsPhotos.Com</a></h3> <p> &nbsp; </p> </div> </div> </body> </html>
The red dotted lines always appear in the compose window to indicate that a <TABLE> is present. That is normal and expected. I'm not sure about the cause of the link color, but basically using <STYLE> blocks in HTML emails is not recommended because some email clients (Gmail in particular) completely strips out <STYLE> blocks. You need to use inline styles instead. This article might be helpful: http://www.webreference.com/programming/css_html/ Simon.
(In reply to Simon from comment #1) > The red dotted lines always appear in the compose window to indicate that a > <TABLE> is present. That is normal and expected. ...and it's temporary, so it won't affect what gets sent. I think that's bearable, albeit not ideal. There should be a way of switching the guidelines off, or only showing them when hovering the table or cursor is inside the table. > I'm not sure about the cause of the link color, but basically using <STYLE> > blocks in HTML emails is not recommended because some email clients (Gmail > in particular) completely strips out <STYLE> blocks. You need to use inline > styles instead. Perhaps, but inline styles will not solve the problem that links don't respect css styles in composition window. That might be a design decision, but I agree it's wrong. If it's a security thing (to indicate links while composing), we need some less intrusive indication. This bug should be confirmed unless it's a dupe, which it might be.
Whiteboard: dupme?
Summary: Incorrect display of HTML with inline CSS in compose window → Incorrect display of HTML with inline CSS in compose window: Links don't respect css styles until sending (always blue & underlined in composition), red table guidelines are confusing
(In reply to Thomas D. from comment #2) > (In reply to Simon from comment #1) > > The red dotted lines always appear in the compose window to indicate that a > > <TABLE> is present. That is normal and expected. > > ...and it's temporary, so it won't affect what gets sent. I think that's > bearable, albeit not ideal. There should be a way of switching the > guidelines off, or only showing them when hovering the table or cursor is > inside the table. Imho this part is negligible, and would need a new bug of type "enhancement" with specific suggestions if somebody wants to pursue it. > > I'm not sure about the cause of the link color, > > This bug should be confirmed unless it's a dupe, which it might be. From our bug collectibles: bug 210787
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
Whiteboard: dupme? → [consider followup to improve table guidelines]
OS: Windows XP → All
Hardware: x86 → All
You need to log in before you can comment on or make changes to this bug.