WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
17677
text in the anchor tag is applying incorrect styling from font tag
https://bugs.webkit.org/show_bug.cgi?id=17677
Summary
text in the anchor tag is applying incorrect styling from font tag
jasneet
Reported
2008-03-04 17:51:18 PST
I Steps: Go to the attached reduction II Issue: In Opera, the default color of an <a> underline is blue. In FF, if the font-face is NOT Verdana, then the underline color of <a> is the same as the text's color. If the font-face is Verdana, then the default color of the underline is blue. In Safari, the underline color of <a> is just the same as the text's color. In IE, there were no underline in the links because the text-decoration in the <font> was set to none. III Conclusion: It looks like FF2/3, Safari are just not applying the text-decoration from the font tag on the text in the anchor tag, but they are applying the other stylings from the font tag. IV Nightly tested: 30628
Attachments
reduction
(665 bytes, text/html)
2008-03-04 17:51 PST
,
jasneet
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
jasneet
Comment 1
2008-03-04 17:51:53 PST
Created
attachment 19541
[details]
reduction
Robert Blaut
Comment 2
2008-03-05 06:29:34 PST
The CSS 2.1 specification says: "The 'text-decoration' property on descendant elements cannot have any effect on the decoration of the ancestor." [
http://www.w3.org/TR/CSS21/text.html#propdef-text-decoration
] So if the ancestor <a> have default underline set its descendant text-decoration property have no effect on underline effect. Check below test case:
http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!doctype%20HTML%3E%3Cspan%20style%3D%22text-decoration%3Aunderline%22%3Etest%20test%20%3Cspan%20style%3D%22text-decoration%3Anone%3B%20color%3A%20red%3B%22%3E%20this%20should%20be%20underlined%20despite%20text-decoration%3A%20none%3B%20%3C%2Fspan%3E%20test%0A
Bug report is INVALID.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug