Closed Bug 490605 Opened 16 years ago Closed 15 years ago

css font-size doesn't work in table in div with a too long comment before <!DOCTYPE ...>

Categories

(Core :: DOM: HTML Parser, defect)

x86
Linux
defect
Not set
minor

Tracking

()

RESOLVED FIXED

People

(Reporter: mseb56, Unassigned)

References

()

Details

(Whiteboard: [fixed by the HTML5 parser])

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2a1pre) Gecko/20090428 Minefield/3.6a1pre Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2a1pre) Gecko/20090428 Minefield/3.6a1pre In a website I'm making, I include GPL-notices. Geany (=editor) puts these comments above the <!DOCTYPE ...> tag. So far so good. But if I include two more lines in the comment tag (<!-- -->), Firefox seems to ignore the CSS font-size property for a <table> in a <div> element. this site works OK: http://ffbug.awardspace.biz/ff_bug.html this site doesn't: http://ffbug.awardspace.biz/ff_bug2.html the latter has two more (indented) lines in the <!-- --> tag and the font size in the table is the firefox standard instead of the css-specified 28 px. Reproducible: Always Steps to Reproduce: 1. Open the websites noted in the 'Details' section Actual Results: The font size of the text in the table-in-div is standard (14px?) instead of the css-specified 28px (in ff_bug2.html) Expected Results: The font size of the text in the table-in-div should be 28px, what was specified in css. So do Opera and Safari Tested on clean install on Windows with latest nightly build and on Linux with latest nightly build (no clean install)
The second is using Mozilla Quirks Mode (because a standard DOCTYPE is not found in the first buffer?): 83 table { 84 text-align: start; 85 white-space: normal; /* compatible with IE & spec */ 86 line-height: normal; 87 88 /* Quirk: cut off all font inheritance in tables except for family. */ 89 font-size: -moz-initial; 90 font-weight: -moz-initial; 91 font-style: -moz-initial; 92 font-variant: -moz-initial; 93 }
Component: General → HTML: Parser
Product: Firefox → Core
QA Contact: general → parser
The HTML5 parser seems to handle this correctly (html5.enable set to true) Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9.2a1pre) Gecko/20090722 Minefield/3.6a1pre ID:20090722042136
Status: UNCONFIRMED → NEW
Depends on: html5-parsing
Ever confirmed: true
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Whiteboard: [fixed by the HTML5 parser]
You need to log in before you can comment on or make changes to this bug.