Closed
Bug 28228
Opened 25 years ago
Closed 25 years ago
Style applied to <SPAN> isn't inherited by <A ...>
Categories
(Core :: CSS Parsing and Computation, defect, P3)
Tracking
()
VERIFIED
INVALID
People
(Reporter: fireball, Assigned: pierre)
References
()
Details
Cascated Style Sheets using <SPAN></SPAN> don't work as expected.
<STYLE TYPE="text/css">
span { text-decoration:none }
</STYLE>
and then using <SPAN><A HREF="...>Text</A></SPAN> won't avoid the default link
underlining, but I think it suposed to do so.
Comment 1•25 years ago
|
||
Reassigning to style guys. Leaving as unconfirmed since I have no clue what's
the right behaviour.
Assignee: cbegle → pierre
Component: Browser-General → Style System
QA Contact: asadotzler → chrisd
Summary: CSS SPAN-Tag bug → Style applied to <SPAN> isn't inherited by <A ...>
http://www.w3.org/TR/REC-CSS1#inheritance
http://www.w3.org/TR/REC-CSS1#text-decoration
http://www.w3.org/Style/CSS/Test/current/sec543.htm
From the descriptions, I think the link shouldn't be underlined.
This is not a bug. Inheritance only occurs when no declarations match, and
there's a declaration for text-decoration in the user stylesheet that matches
:link, :visited.
Reporter | ||
Comment 4•25 years ago
|
||
So you mean because I defined <BODY ... LINK="#C62929" VLINK="#C62929"> there is
no inheritance of <SPAM> in this case?
Wouldn't that mean that Netscape Communicator 4.7 works not correctly in this
case (since it doesn't display underlines)?
Comment 5•25 years ago
|
||
Yup, it means that Netscape Navigator 4 doesn't work correctly in this case.
To see how to get the effect you are looking for, read:
http://www.people.fas.harvard.edu/~dbaron/css/1999/09/links
Status: UNCONFIRMED → RESOLVED
Closed: 25 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•