Closed Bug 292548 Opened 20 years ago Closed 20 years ago

<col> elements do not honor CSS

Categories

(Core :: Layout: Tables, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

VERIFIED INVALID

People

(Reporter: jpage, Unassigned)

Details

(Keywords: testcase)

Attachments

(1 file)

User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; (R1 1.5); .NET CLR 1.0.3705; Media Center PC 2.8) Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050225 Firefox/1.0.1 Any CSS that is attached to <col> tags seems to be ignored. In the example attached, <col style="background:yellow"> is rendered with a white background. If you attach the style to the individual <td> elements they are honored. I have not been able to ascertain if the standard says they should honor CSS. But IE, Opera, Konqueror, etc all seem to. Reproducible: Always Steps to Reproduce: 1.run attached HTML file 2. 3. Actual Results: CSS ignored on the <col> tags
http://www.w3.org/TR/CSS21/tables.html#q4 details the limited things you can do with column styles in CSS2. Background is WFM on the trunk (bug 237078), color not expected to work/INVALID. Incidentally, Opera renders your example the same for me.
In Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.7) Gecko/20050414 Firefox/1.0.3 - Left column background is white (expected yellow) - Right column text is black (apparently expected red) In Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b2) Gecko/20050501 Firefox/1.0+ - Left column background is yellow (as expected) - Right column text is black (as expected as per comment 2) WFM/INVALID?
Using a non-CSS background (bgcolor=yellow) doesn't work in either version.
(In reply to comment #2) > http://www.w3.org/TR/CSS21/tables.html#q4 details the limited things you can do > with column styles in CSS2. > Background is WFM on the trunk (bug 237078), color not expected to work/INVALID. > Incidentally, Opera renders your example the same for me. Sorry , what is WFM? What is the trunk? Opera renders the left col yellow bg but does not render the right col in red. Another issue for Opera I guess.
Component: General → Layout: Tables
Product: Firefox → Core
QA Contact: general → layout.tables
Version: unspecified → Trunk
Keywords: testcase
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
> Sorry , what is WFM? "Works for me". > What is the trunk? The current development version (or Firefox 1.1 prerelease if you prefer). > but does not render the right col in red. That's the correct behavior. Please see the specification cited in comment 2. Verified invalid.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: