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)

x86
Windows 2000
defect

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.
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 ...>
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.
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)?
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
Verified invalid
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.