Closed Bug 27245 Opened 26 years ago Closed 26 years ago

text-decoration inherits underline despite text-decoration: none

Categories

(Core :: CSS Parsing and Computation, defect, P3)

defect

Tracking

()

VERIFIED INVALID

People

(Reporter: anubis, Assigned: pierre)

References

()

Details

(Keywords: compat, css1, verifyme)

Overview Description: This code snippet shows the problem. <html><head> <style> #logo { text-decoration : none; } A { text-decoration : underline; } </style> </head> <body> <A HREF="test.htm"> <span id="logo"> test </span> </A> </body></html> Actual Results: Text is underlined. Expected Results: Text should not be underlined. Reproducibility: Always Build Date & Platform Bug Found: M13 (build: 2000012520), Win2K Additional Information: The text-decoration: none on the inner block should override the text- decoration: underline in the outer block. Other Properties work correctly (font- size, font-weight, color, etc) and do override the properties of the outer block.
Another one for you; perhaps markA can take this one from you.
Assignee: rickg → pierre
This is not a bug. This is the way CSS specifies text-decoration. The property is not inherited, but, rather, spans children.
I do believe dbaron is correct. The SPAN tags are not supposed to go in the A tag. If the id is placed in the A tag, everyting displays correctly. The only excuse I can think of for my defense is that I fell under the spell of IE's liberal specification interpretations.
Assigning to ekrock: 1/3 of Pierre's NEW bugs to help reduce his doomage factor
Assignee: pierre → ekrock
Reassigned back to me these bugs that shouldn't have left my list.
Assignee: ekrock → pierre
Marking INVALID. David is correct.
Status: NEW → RESOLVED
Closed: 26 years ago
Component: HTML Element → Style System
Keywords: compat, css1, verifyme
OS: other → All
Hardware: PC → All
Resolution: --- → INVALID
After reading http://www.w3.org/TR/REC-CSS2/text.html#lining-striking-props I'm marking this Verified/Invalid.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.