"class" attribute is ignored for table columns

VERIFIED INVALID

Status

()

VERIFIED INVALID
17 years ago
17 years ago

People

(Reporter: jimoe, Assigned: dbaron)

Tracking

Trunk
x86
OS/2
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(URL)

(Reporter)

Description

17 years ago
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (OS/2; U; Warp 4.5; en-US; rv:0.9.9) Gecko/20020311
BuildID:    2002031114

   The "class" attribute for <td> is not applied to content in table columns.
Foreground and background colors, fonts, text alignment, all of it might as well
not exist.
  Using the "style" attribute in <td> _does_ work:
<td colspan="2" style="font-family: verdana,arial,helvetica,sans-serif;
font-weight: bold; color: #ffffff; background-color: rgb(0, 115, 125);">

displays as I would expect.


Styles defined in <head>:
 <style type="text/css">
   td.news4 ( font-family: "georgia,times new roman,times,serif";
              text-align: justify;
              font-size: smaller; }
   td.news1,
   td.news2,
   td.news3 { font-family: verdana,arial,helvetica,sans-serif; }
   td.news1,
   td.news2 { vertical-align: top;
              font-size: smaller; }
   td.news3 { font-weight: bold;
              color: #ffffff;
              background-color: rgb(0, 115, 125); }
 </style>

How I use it:
<table>
 <tr><td class="news3">--stuff--</td></tr>
</table>



Reproducible: Always
Steps to Reproduce:
1. Go to the page noted in "URL".
2. Observe the problem.


Actual Results:  None of the styles defined in the <style> section were applied
to the content in the table column.

Expected Results:  Applied the styles.
The sheet has a syntax error.  I strongly recommend validating CSS before
reporting bugs on it:

http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwww.sohnen-moe.com%2Fidx.htm&warning=1&profile=css2

In particular, the sheet has:

"td.news4 ( text-align: justify;"  That's an opening parenthesis "(" instead of
an opening curly brace "{".  Fixing that makes things work.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 17 years ago
Resolution: --- → INVALID
Also, font-family: "georgia,times new roman,times,serif"
won't work unless you have a font called "georgia,times new roman,times,serif".
 You probably meant:
font-family: georgia,"times new roman",times,serif
v
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.