Closed Bug 302216 Opened 19 years ago Closed 19 years ago

Firefox : 3 render problems: #1: body tag margins displaces first output line above pixel line 1 #2: 12x <big> will disable <br> #3: &nbsp not correctly recognized by missing cutoff at parsing even if a semicolon is missing

Categories

(Firefox :: General, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: vattene, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; de-DE; rv:1.7.10) Gecko/20050717 Firefox/1.0.6
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; de-DE; rv:1.7.10) Gecko/20050717 Firefox/1.0.6

Concerning Firefox (until 1.0.6):
HTML sourcecode example

<html>


<!-- Margins set like in line 11 of the body tag will move the first line almost
out of sight = before line 1
Question: How could you ever level up logical (text and graphics) line 1 before
actual line 1 in the output context ?
 This in an inconsequent behaviour to me ! Only CSS shall be able to do things
like that (if wanted to place the starting pixel line out of (=above) the output
context.

Consequence: Let graphical pixel line 1 be the top of the output in any case
 except for ! a CSS setting ! is altering the first pixel line to a level above
the first pixel line -->

<!-- Leave away the margin settings of the body tag below - here in the HTML
source - to observe mistake 2 and 3 in a more convenient way -->

<body rightmargin="0" topmargin="0" leftmargin="0" bottommargin="0"
marginheight="0" marginwidth="0">


<!-- Mistake 2: combination of two nested font tags with 12 !!! (11 do not show
the mistake) BIG tags disables the linefeed by <br>
Hint: Obviously an error - a sort of overflow -  in the tag counting structures
and the procedures managing these -->

<!-- Leave away one BIG tag and strangely enough it will work in Firefox as
expected -->

<FONT face=times color=#ff6820 size=5>
<BIG><BIG><BIG><BIG><BIG><BIG><BIG><BIG><BIG><BIG><BIG>
<BIG>
<FONT size=2>
Line 1 Line 1 Line 1 Line 1 Line 1 Line 1 Line 1 Line 1 Line 1 Line 1 Line 1
Line 1 Line 1 Line 1 Line 1 Line 1 Line 1 Line 1
<br>


<!-- Mistake 3: leaving no space between &nbsp and the string "Line..." makes
the special character '&nbsp' to be interpreted as text rather than a special
character.
Solution: Parsing '&nbsp' should immediately result in a space character in the
output stream ! -->

&nbspLine 2 Line 2 Line 2 Line 2 Line 2 Line 2 Line 2 Line 2 Line 2 Line 2 Line
2 Line 2 Line 2 Line 2 Line 2 Line 2 Line 2 Line 2

</FONT>
</BIG></BIG></BIG></BIG></BIG></BIG></BIG></BIG></BIG></BIG></BIG>
</BIG>
</font>


</body>
</html>


Reproducible: Always

Steps to Reproduce:
1. just save the html code of the Details section to a .htm file and opem the
.htm file with Firefox to see mistake 1
2. delete the margin settings of the body tag to see mistake 2 and 3
3. delete one <big> </big> tag bracket to see mistake 2 to disappear, insert a
blank character after &nbsp to make mistake 3 go away


Expected Results:  
See comments in the code example in Details section

AMD K8 Athlon64 3000+, 2 GB DDR400, Windows 2000 SP4 + SP5, Firefox 1.0.6
Mistake 1 and 2 depend on each other
First off, please test in Deer Park Alpha 2 (Firefox 1.5alpha).
Secondly, multiple bugs filed in one bug *never* get looked at. Please file bugs
seperately.
Thirdly, please use "Create new attachment" to attach testcases that show the
behaviour you are seeing.
Thanks!
tip:
&nbsp needs a ; so
&npsp;line works fine

for the rest this is a multiple bugreport w/o proper testcase and very likely
invalid html

->INVA

Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.