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)
Core
CSS Parsing and Computation
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.
| Reporter | ||
Comment 3•26 years ago
|
||
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.
Comment 4•26 years ago
|
||
Assigning to ekrock: 1/3 of Pierre's NEW bugs to help reduce his doomage factor
Assignee: pierre → ekrock
| Assignee | ||
Comment 5•26 years ago
|
||
Reassigned back to me these bugs that shouldn't have left my list.
Assignee: ekrock → pierre
Comment 6•26 years ago
|
||
Marking INVALID. David is correct.
Comment 7•26 years ago
|
||
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.
Description
•