Open Bug 607548 Opened 14 years ago Updated 2 years ago

Empty line consisting of an empty text node immediately followed by a block element has an incorrect top position

Categories

(Core :: Layout, defect)

x86
macOS
defect

Tracking

()

People

(Reporter: ehsan.akhgari, Unassigned)

References

Details

Attachments

(2 files)

I'll attach two test cases to this bug to demonstrate the issue.

I encountered this when I was working on bug 389321.  I'm going to disable the respective reftest <http://mxr.mozilla.org/mozilla-central/source/layout/reftests/bugs/503531-1.html> in that bug for now.  When this bug is fixed, that reftest should be re-enabled.
Attached file Incorrect case
This is what the frame tree for this test case looks like: http://pastebin.mozilla.org/827730

Note that the y position of the empty text frame is 1152.  This is wrong.
Attached file Correct case
Here's what the frame tree for this test case looks like: http://pastebin.mozilla.org/827732

Note that the y value for the textframe which contains \u200c (ZWNJ) is 1248, which is the correct value.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: