Open
Bug 210787
Opened 23 years ago
Updated 4 years ago
Link & hover CSS color for links are ignored while composing: default blue textcolor (display error violating UX-wysiwyg, gets sent correctly)
Categories
(MailNews Core :: Composition, defect)
MailNews Core
Composition
Tracking
(Not tracked)
NEW
People
(Reporter: okinasevych, Unassigned)
References
Details
(Whiteboard: [ux-wysiwyg])
Attachments
(1 file)
|
1.04 KB,
text/html
|
Details |
User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.4; Okina Consulting) Gecko/20030612
Build Identifier: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.4; ) Gecko/20030612
I use an HTML sig in some of my emails. The HTML sig uses a CSS stylesheet.
The HTML sig displays correctly in the browser and in the email after it is
sent, however when the message is being composed the links aren't being
displayed as directed by the stylesheet.
Reproducible: Always
Steps to Reproduce:
1. Compose message with an HTML sig that uses CSS stylesheet. Stylesheet must
make use of a:link, a:visited, a:active, and a:hover selectors. HTML sig must
have links that would use these selectors.
2. Examine the links in the sig while in the mail compose window -- they do not
use the CSS style.
Actual Results:
The HTML sig doesn't make use of the link selectors specified in the CSS stylesheet.
Expected Results:
It should have display the links as instructed by the stylesheet. These display
correctly in the browser and in the email after it is sent, but not when message
is being composed.
Here is the code for an HTML sig that displays incorrectly.
----
<head>
<style type="text/css"><!--
.addr { font: 11px verdana,sans-serif; color: #999999; } .quote {font: italic
11px georgia,serif; color: #669999;}
.lnk { font: italic 11px georgia,serif; }
a:link, a:visited { text-decoration : none; color : #999999; border-bottom : 1px
dotted #CFCFCF; }
a:hover, a:active { text-decoration : none; color: #FFFFFF; background-color:
#CFCFCF; border-bottom : 1px dotted #CFCFCF; cursor: pointer; }
--></style>
</head>
<div class="addr">+1 204 510-0000 - Canada<br />+1 973 978-0000 -
U.S.<br /></div><br />
<div class="lnk"><a href="http://www.okina.net/0/netscape"><img
src="http://wp.netscape.com/favicon.ico" border="0"> Netscape
now! </a></div>
<div class="lnk"><a href="http://www.okina.net/0/mozilla"><img
src="http://www.mozilla.org/images/mozilla-16.png"
border="0"> Mozilla! </a></div>
----
Note that in the example, the CSS stylesheet instructs the links to be grey with
a dotted grey underline. Instead, they display as blue links with solid underlines.
Comment 2•22 years ago
|
||
Still true: the default text-color for a:link overrides any specified in the
<style> block for <a>, or a:link, a:hover, etc. This is true in both the
compose and message display.
The text-decoration is overridden in the compose window, but not in the message
display window.
I am not seeing the a:active selector being recognized in either the compose or
message display windows.
Reproduced with 1.6 Final and 1.7a-0301, Win2K.
Severity: trivial → minor
Status: UNCONFIRMED → NEW
Ever confirmed: true
Updated•22 years ago
|
Product: MailNews → Core
Comment 3•19 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
| Assignee | ||
Updated•18 years ago
|
Product: Core → MailNews Core
Bug still active in Thunderbird 10.0.1
I'm using Linux, and the bug reporter used Windows, so the bug seems to be multi-platform. (please update the "Platform" field of the bug).
Some days ago I started a thread at Mozillazine reporting the same problem:
Composer overrides the link style from HTML signature
http://forums.mozillazine.org/viewtopic.php?f=39&t=2433053
Initially I thought it was a problem in HTML signature, but after looking at Bug 492223 (a duplicate of this bug) now I think the problem is in Composer itself: The link style is overrided independently of how the style was defined (HTML signature, or "Insert > HTML" menu, etc.). Composer always imposes blue&underlined styles on links, ignoring the style defined by the user.
And, as also described at Bug 492223, the problem only happens with external links. If you type "http://gnu.org/" as the URL for the link, you will see a blue&underlined link. But, if you type "gnu.org" (not a valid external URL), you will see the link correctly, with exactly the styles you defined.
Perhaps it is something related to the autodetection of links in plain-text messages. If you receive a plain-text message, then Thunderbird automatically parses all the text and converts all found links into blue&underlined clickable links. Maybe Composer does something similar: It parses the text you are typing, and automatically shows all found links as blue&underlined links (ignoring your styles).
Could any Composer developer check for it? Currently the "Assigned To:" field says "Nobody; OK to take it and work on it". The bug is not urgent, since the messages are sent correctly, with the styles defined by the user. The problem only happens while composing.
Updated•14 years ago
|
OS: Windows 98 → All
Comment 7•14 years ago
|
||
This is about links, signatures are coincidental (hence irrelevant).
Hardware: x86 → All
Summary: Style display error for HTML sig in compose window → Link & hover CSS styles for links are ignored while composing: default blue textcolor and text-decoration:underline for a:link overrides custom style sheets (display error violating UX-wysiwyg, gets sent correctly)
Whiteboard: [ux-wysiwyg]
Confirming this bug on current (17.0.2) x86_64 RPM (openSUSE/Linux) build.
First reported in, excuse me, 2003? Are we kidding?
Comment 10•13 years ago
|
||
(In reply to Kalenz from comment #9)
> Confirming this bug on current (17.0.2) x86_64 RPM (openSUSE/Linux) build.
> First reported in, excuse me, 2003? Are we kidding?
Kalenz, I appreciate that it looks like a joke to you, and it's certainly deplorable that assumedly simple things like this don't get fixed over a long time. However, we need to put things into perspective:
- This bug is minor, even trivial. It's a small nuisance in rare scenarios while composing, but pretty inconsequential, and looking at only 1 vote, only 2 duplicates, and only 9 comments so far, almost nobody cares. Hundreds of other bugs are more severe than this, and affect more users.
- Even if this was more severe, it would be competing with hundreds, if not thousands of other unresolved bugs
- TB is free Open Source Software: you don't pay, so no obligations (but we've seen devs taking responsibility to address all sorts of issues)
- Mozilla has recently removed most paid manpower from the TB project, because they see a trend towards mobile messaging and TB no longer fitted into that trend (I don't agree with that...)
What this means for you is that if you really want this fixed, you have to contribute towards fixing it yourself. Some options:
- Add a reduced testcase msg to this bug, a draft.eml exposing this problem in a simple and obvious way
- Research on http://mxr.mozilla.org/comm-central/ and find the source code that causes this bug, then leave a pointer on this bug
- Fix this bug yourself if you're able to
- If you're not able to fix it yourself, assume that it might be more difficult and time-consuming than you think until proven otherwise, and be as cooperative and encouraging as possible in trying to narrow down the issue and finding others who might be able and willing to fix it :)
Comment 11•13 years ago
|
||
One part of the puzzle might be this:
http://mxr.mozilla.org/comm-central/source/mozilla/editor/composer/src/res/EditorOverride.css#44
Comment 12•12 years ago
|
||
I can confirm that it's still an issue with version 31.0.
Comment 13•12 years ago
|
||
(In reply to colintrebla@gmail.com from comment #12)
> I can confirm that it's still an issue with version 31.0.
Although after adding !important to my inline style the issue was resolved.
Comment 14•10 years ago
|
||
This is still a bug in Thunderbird 38.5.1, adding the !important CSS rule only fixes it in the compositor, the final e-mail that is sent still ignores the text-decoration declarations.
(In reply to Thomas D. (currently busy elsewhere; needinfo?me) from comment #10)
> Kalenz, I appreciate that it looks like a joke to you, and it's certainly
> deplorable that assumedly simple things like this don't get fixed over a
> long time. However, we need to put things into perspective:
>
> - This bug is minor, even trivial. It's a small nuisance in rare scenarios
> while composing, but pretty inconsequential, and looking at only 1 vote,
> only 2 duplicates, and only 9 comments so far, almost nobody cares. Hundreds
> of other bugs are more severe than this, and affect more users.
Although I'm sure this is just one user, which means nothing in the grand scheme of things for something like Thunderbird, I feel compelled to mention that this is the final straw in a series of issues with the program that has made me stop using it as my e-mail client. For me, it was not inconsequential at all :(
Comment 15•10 years ago
|
||
By the way, I've found the source of the bug:
If there's a hyperlink in this format:
<a style="text-decoration:none; color:#8D8D8D" href="mailto:myaddress@domain.com">myaddress@domain.com</a>
Thunderbird will take the text inside the tag and ignore the style attribute when converting it to a "moz-txt-link-abbreviated" class (for some reason, it also keeps the original <a> tag but removes the InnerText). I also find no option to disable this behavior of converting links to that class when sending. In any case, having the composer work on a different text processing pipeline than the one used for actually sending the thing feels horribly wrong.
Comment 17•9 years ago
|
||
Hello Andres,
thank you for sharing your user experience.
(In reply to andres.rodriguez from comment #14)
> This is still a bug in Thunderbird 38.5.1, adding the !important CSS rule
> only fixes it in the compositor, the final e-mail that is sent still ignores
> the text-decoration declarations.
Please let us know after testing the current version 52 of Thunderbird, if user-defined styles/classes still disappear in the sent message. That problem should have been fixed by bug 584313, backported to TB 45, shortly after you made your comment.
> (In reply to Thomas D. (currently busy elsewhere; needinfo?me) from comment
> #10)
> > Kalenz, I appreciate that it looks like a joke to you, and it's certainly
> > deplorable that assumedly simple things like this don't get fixed over a
> > long time. However, we need to put things into perspective:
> >
> > - This bug is minor, even trivial. It's a small nuisance in rare scenarios
> > while composing, but pretty inconsequential, and looking at only 1 vote,
> > only 2 duplicates, and only 9 comments so far, almost nobody cares. Hundreds
> > of other bugs are more severe than this, and affect more users.
>
> Although I'm sure this is just one user, which means nothing in the grand
> scheme of things for something like Thunderbird,
We do try our level best to take users' concerns seriously, but since Mozilla's withdrawal, volunteer manpower has been limited. By way of donations, we're now transitioning to a more independent Thunderbird which will also involve hiring some paid manpower.
> I feel compelled to mention
> that this is the final straw in a series of issues with the program that has
> made me stop using it as my e-mail client. For me, it was not
> inconsequential at all :(
I stand corrected, this bug is neither trivial nor minor. Formatting links might actually be a pretty regular scenario especially for many business or organizational users, and violating ux-wysiwyg for such sensible spots of the composed message is an irritating and annoying behaviour.
I totally sympathise with your train of thought wrt too many issues like this, but I'm also confident and hopeful that we've fixed a number of those issues which made you stop using Thunderbird. Please try our latest release, TB 52!
Maybe you'll want to send me a private mail with details about the "series of issues with TB" that made you stop using it.
Severity: minor → normal
Comment 18•9 years ago
|
||
Hey devs, I guess this bug, albeit small at first sight, can be pretty irritating and annoying especially for corporate or organizational users who have no immediate way of previewing the actual layout of their styled links as we stubbornly violate ux-wysiwyg for links during composition by forcing dinosaur blue text color and underline formatting (while actually sending the user-defined styles correctly, as well as displaying them in message reader). Can we find a starting point for fixing this?
(In reply to andres.rodriguez from comment #14)
> Although I'm sure this is just one user, which means nothing in the grand
> scheme of things for something like Thunderbird, I feel compelled to mention
> that this is the final straw in a series of issues with the program that has
> made me stop using it as my e-mail client. For me, it was not
> inconsequential at all :(
I'm also surprised about the meaning of moz-do-not-send attribute which gets magically added to a manually inserted link - scary and useless!
<p>this is a <a moz-do-not-send="true" href="http://www.mozilla.com">link</a>.<br></p>
Comment 19•9 years ago
|
||
Have you actually tried the signature from comment #0?
As far as I can see, the underline is dotted and the hover gives a grey background. The only thing that's wrong is the text colour which remains blue. Looks like a styling issue, Richard?
As for the moz-do-not-send attribute: What's scary? We use this to determine whether to download and attach the link target.
Flags: needinfo?(richard.marti)
Comment 20•9 years ago
|
||
When you add the signature from comment #0 to a contenteditable in an HTML document, you get what you expect.
So I think there is some styling going in the compose Windows that overrules the CSS with blue colour. Richard would know.
Comment 21•9 years ago
|
||
Oh, reading back through the bug, that was already mentioned:
https://dxr.mozilla.org/comm-central/rev/a374c35469935a874fefe64d3e07003fc5bc8884/mozilla/editor/composer/res/EditorOverride.css#44
Do we need this, Richard?
Actually, as was pointed out in comment #13, this works with !important added:
<head>
<style type="text/css"><!--
.addr { font: 11px verdana,sans-serif; color: #999999; } .quote {font: italic
11px georgia,serif; color: #669999;}
.lnk { font: italic 11px georgia,serif; }
a:link, a:visited { text-decoration : none; color : #999999 !important; border-bottom : 1px
dotted #CFCFCF ;}
a:hover, a:active { text-decoration : none; color: #FFFFFF !important ; background-color:
#CFCFCF; border-bottom : 1px dotted #CFCFCF; cursor: pointer;}
--></style>
</head>
So, two options:
1) Remove the colour from EditorOverride.css
2) Close bug as WONTFIX and tell people to use !important.
Comment 22•9 years ago
|
||
For fairness' sake, I will mention first that I came back to TB a few months ago since Geary ended up having its fair share of issues as well and webmail didn't cut it. In the end, I replaced in my signature the name@domain.com address for name [at] domain.com which worked around the bug.
However, I can confirm that at least on 52.0.1 the bug is finally gone :D Thanks!.
As for the other issues, I unfortunately didn't note them all down. Issues with GMail integration was one: separate GMail and TB folders, TB drafts folder doesn't work,... The UI not being as nice as Geary (IMO) was another, to the point I have been toying around replicating the Monterail redesign (https://dribbble.com/shots/2917534-Thunderbird-Redesign) in QtQuick in my free time for fun.
Thank you for the level of involvement, it gives me hope to see there's people not wanting to see Thunderbird stagnate.
Updated•9 years ago
|
Summary: Link & hover CSS styles for links are ignored while composing: default blue textcolor and text-decoration:underline for a:link overrides custom style sheets (display error violating UX-wysiwyg, gets sent correctly) → Link & hover CSS color for links are ignored while composing: default blue textcolor (display error violating UX-wysiwyg, gets sent correctly)
Comment 23•9 years ago
|
||
(In reply to Jorg K (GMT+2) from comment #21)
> Oh, reading back through the bug, that was already mentioned:
> https://dxr.mozilla.org/comm-central/rev/
> a374c35469935a874fefe64d3e07003fc5bc8884/mozilla/editor/composer/res/
> EditorOverride.css#44
>
> Do we need this, Richard?
Without this style, alink would not look like a link when the user hasn't set his own styling.
> Actually, as was pointed out in comment #13, this works with !important
> added
The problem is that the inline styles are applied before the resources. If we could move it to the end, then it should work without the !important.
Flags: needinfo?(richard.marti)
Comment 24•9 years ago
|
||
(In reply to Richard Marti (:Paenglab) from comment #23)
> The problem is that the inline styles are applied before the resources. If
> we could move it to the end, then it should work without the !important.
Richard, can you confirm that the following is correct rephrasing of your proposal:
Current behaviour:
- Any (user-defined) styles from message body (style block, inline styles etc.) are applied first
- *Thereafter*, we apply the default style from our own resources.
-> Consequently, user-defined styles will always get overridden by default link style unless they are enforced with !important.
Expected behaviour:
Swap the above (current) order of link style application:
- Apply default link style from our own resources *first*
- *Thereafter*, apply any (user-defined) styles from message body (style block, inline styles etc.)
-> Hence, user-defined styles will always be correctly applied even without !important.
Jörg, any idea how link style application order between user-defined styles and default link styles can be swapped?
There's a code starting point in your comment 21.
Comment 25•9 years ago
|
||
I don't know. Richard is the theme/style/CSS guy.
Comment 26•9 years ago
|
||
Yes, that's correct.
I think the message is loaded with the inline styles first and then the EditorOverride.css is loaded. Selectors with the same specificity are then checked in their order they are loaded. And then EditorOverride.css has precedence. If the HTMLEditor.cpp would load EditorOverride.css before he loads the message, then it should work.
Updated•4 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•