Closed Bug 17082 Opened 25 years ago Closed 25 years ago

<TABLE> element ignores style

Categories

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

x86
Linux
defect

Tracking

()

VERIFIED DUPLICATE of bug 1044

People

(Reporter: jwb, Assigned: pierre)

Details

Styles applied to the TABLE element are ignored, while styles applied to TR or
TD are treated correctly.  Consider these three test cases:

Case 1: Text is displayed normal size (wrong)

<HTML>
	<HEAD>
		<STYLE type="text/css">
			TABLE { font-size: xx-small }
		</STYLE>
	<HEAD>
	<BODY>
		<TABLE>
			<TR>
				<TD>Hello, Mozilla!</TD>
			</TR>
		</TABLE>
	</BODY>
</HTML>

Case 2: Text is displayed normal size (wrong)

<HTML>
	<BODY>
		<TABLE style="font-size: xx-small">
			<TR>
				<TD>Hello, Mozilla!</TD>
			</TR>
		</TABLE>
	</BODY>
</HTML>

Case 3: Text is displayed xx-small (right)

<HTML>
	<HEAD>
		<STYLE type="text/css">
			TR { font-size: xx-small }
		</STYLE>
	<HEAD>
	<BODY>
		<TABLE>
			<TR>
				<TD>Hello, Mozilla!</TD>
			</TR>
		</TABLE>
	</BODY>
</HTML>

Case 4: Text is displayed xx-small (right)

<HTML>
	<HEAD>
		<STYLE type="text/css">
			TD { font-size: xx-small }
		</STYLE>
	<HEAD>
	<BODY>
		<TABLE>
			<TR>
				<TD>Hello, Mozilla!</TD>
			</TR>
		</TABLE>
	</BODY>
</HTML>

Okay you get the idea.  I couldn't find this exact bug report, but this may be
related to Bug 1004 or Bug 3992 and probably others.

Mozilla M10 on Linux 2.2.
Reassigning peterl's bugs to myself
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → DUPLICATE
It is indeed a duplicate of #1044. I left some comments on #1044 pointing to the
test cases provided here.


*** This bug has been marked as a duplicate of 1044 ***
Status: RESOLVED → VERIFIED
Verified dup of #1044
You need to log in before you can comment on or make changes to this bug.