Closed Bug 51196 Opened 24 years ago Closed 24 years ago

<FONT size=5> override CSS font-size on a child element.

Categories

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

x86
Windows 98
defect

Tracking

()

VERIFIED WONTFIX

People

(Reporter: MatsPalmgren_bugz, Assigned: pierre)

References

()

Details

(Keywords: testcase)

Attachments

(1 file)

DESCRIPTION: <FONT size=5> override CSS font-size on a child element. Given the following CSS style and HTML snippet: .TOPIC {font-size:13pt;} <font size=5><div class=TOPIC> text </div></font> The text has the size of a <FONT size=5> font. STEPS TO REPRODUCE: 1. load testcase ACTUAL RESULTS: 1st line of text is rendered as line 3 (using <FONT size=5>) EXPECTED RESULTS: 1st line of text is rendered as line 2 (using font-size:13pt from its CSS style) DOES NOT WORK CORRECTLY ON: Mozilla nightly build 2000-09-02-08 on Windows 98 SE. WORKS CORRECTLY ON: Communicator 4.75 on Windows 98 SE. IE 5.00 on Windows 98 SE. Opera 4.01 on Windows 98 SE.
Attached file Testcase (deleted) —
Keywords: 4xp, testcase
Could this be related to the parser's fixup?
*** Bug 4920 has been marked as a duplicate of this bug. ***
David is correct. The markup is invalid, and so in an attempt to fix it, we are turning: <font><div></div></font> ...into: <font></font><div><font></font></div><font></font> Thus, styles on the inner <font> are overriding those on the <div>, since the style system thinks the <font> is the child of the <div>, and not the other way around. This is occuring because of invalid markup. We have no time to fix this before the 6.0 release, and after 6.0 there will be no point in fixing it since people will have to "code around" 6.0's "bug" in this matter anyway, so at that point whether we change our behaviour or not will not be important. -> WONTFIX.
Status: NEW → RESOLVED
Closed: 24 years ago
Keywords: verifyme
Resolution: --- → WONTFIX
Verifying WONTFIX.
Status: RESOLVED → VERIFIED
Keywords: verifyme
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: