Closed Bug 45366 Opened 24 years ago Closed 24 years ago

<LINK> to style sheet fails to style <A> properly

Categories

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

defect

Tracking

()

RESOLVED INVALID

People

(Reporter: bugzilla, Assigned: clayton)

Details

Attachments

(3 files)

The following html will display a grey link which on mouse over will turn
orange. if the same style sheet is linked instead of inline then the link
appears blue and the mouse-over link uses a different font
(linked using : <LINK REL=stylesheet HREF="test.css" TYPE="text/css">)
The linked style sheet works fine on Netscape & IE

<html>
<head>
<title>test</title>

<style type="text/css">
<!--
    A:link,A:visited        {font-family:sans-serif;text-decoration:underline;
color:#999999;}
 A:hover,A:active       {font-family:sans-serif;text-decoration:underline;
color:#FF6600;}
-->
</style>

</head>
<body bgcolor="#FFFFFF" leftmargin=0 topmargin=0>
<a href="http://www.mozilla.org">Browsers</a>
</body>
</html>
seems to work for me? what build are you using. Also could you attach the source
to the two pages you use for the linked version?? (If build is more than a few
weeks old, try a new build first, ftp://ftp.mozilla.org/pub/mozilla/nightly/latest/
)
how does the test.css look like ? 
remove the following from test.css

<style type="text/css">
<!--

-->
</style>

a linked stylesheet should not have those definitions. without those lines it 
works correctly in mozilla. i would say this is a wont fix bug.
It may be fair to ignore this aspect, since I did suspect that they definition 
of the css file was suspect - however, where should this lie with regards to 
compatibility with NS4 and IE? The offending code snippet was taken from a 
10,000 users intranet project. While we will of course rectify the style sheet 
file, this aspect remains an incompatibility (then again, is it simply an 
improvement in the name of progress?)
Changing component to Style System and marking INVALID.  The <style> and
</style> should not be in an external CSS file and should cause the rule
following them to be ignored since they are part of the selector for that rule. 
The <!-- and --> are valid there (but unnecessary).  I think changes like this
need to be made for progress - it won't hurt any browsers if people remove HTML
markup from their external CSS, and it's easy to do.  I also don't think it's
that common.
Status: UNCONFIRMED → RESOLVED
Closed: 24 years ago
Component: Layout → Style System
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: