Closed
Bug 66488
Opened 24 years ago
Closed 24 years ago
Mozilla ignores table header attributes set via CSS1
Categories
(Core :: Layout: Tables, defect)
Tracking
()
CLOSED
INVALID
People
(Reporter: dylang, Assigned: karnaze)
Details
(Keywords: css1)
Given this HTML:
<html>
<head>
<title>Mozilla ignores TH CSS1 attributes as of build 2001011306</title>
<script type="text/css">
TH {
color: #FFFFFF;
background-color: #000000;
}
</script>
</head>
<body>
<table border="1">
<tr>
<th>This should be white on black.</th>
</tr>
</table>
</body>
</html>
Mozilla will happily IGNORE the correct colour attributes, and render it as the
default colour values the user has set. This also affects Netscape 6. Internet
Explorer 5 and Netscape 4 correctly render the table with a header box of white
text on black background.
Comment 1•24 years ago
|
||
CSS is not a scripting language. CSS content to be applied to a document should
be enclosed in a "style", not a "script" tag. The code renders correctly if
this is changed- note also that IE 5.5 Win will not apply this CSS when it is in
a script tag. Could someone please mark this "invalid"?
Oh boy. Egg on my face. Sorry :) Changing script to style works.
Status: UNCONFIRMED → RESOLVED
Closed: 24 years ago
Resolution: --- → INVALID
Updated•24 years ago
|
QA Contact: chrisd → amar
Comment 3•24 years ago
|
||
QA contact update
Comment 4•24 years ago
|
||
According to the reporters comments this bug is invalid..
closing this bug
Status: RESOLVED → CLOSED
You need to log in
before you can comment on or make changes to this bug.
Description
•