Closed Bug 306410 Opened 19 years ago Closed 17 years ago

blocks with negative text-indent overlap at certain sizes

Categories

(Core :: Layout: Block and Inline, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: rdmsoft, Unassigned)

Details

(Keywords: testcase)

Attachments

(2 files, 1 obsolete file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b4) Gecko/20050829 Firefox/1.0+
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b4) Gecko/20050829 Firefox/1.0+

Using the font and text indent that I used on my website, some list items
overlap. Changing the font size or text indent by 0.01em fixes the problem.

Reproducible: Always

Steps to Reproduce:
1. Open testcase.
Actual Results:  
Some of the list items - April, June, and Tags - overlap the previous one.

Expected Results:  
No overlapping, all list items displayed with the same height.
Attached file testcase (obsolete) —
Keywords: testcase
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20051008
Firefox/1.6a1
Confirmed, testcase and URL exhibit the problem on current trunk build.
This happens whenever the negative text-indent is exactly equal to the width of the text in the block.  The code I _think_ is to blame is in nsLineLayout::VerticalAlignFrames :

      if ((psd->mX != psd->mLeftEdge) || preMode || foundLI) {
...
      else {
        // XXX issues:
        // [1] BR's on empty lines stop working
        // [2] May not honor css2's notion of handling empty elements
        // [3] blank lines in a pre-section ("\n") (handled with preMode)
...
        minY = maxY = 0;
      }

In this case, psd->mX != psd->mLeftEdge tests false, since the text-indent exactly cancels out the width of the text...
Status: UNCONFIRMED → NEW
Component: Layout → Layout: Block and Inline
Ever confirmed: true
Flags: blocking1.9a1?
OS: Windows XP → All
QA Contact: layout → layout.block-and-inline
Hardware: PC → All
Summary: List items with negative text-indent overlap at certain sizes → blocks with negative text-indent overlap at certain sizes
Attachment #194289 - Attachment is obsolete: true
Flags: blocking1.9a1? → blocking1.9-
Whiteboard: [wanted-1.9]
Reproducible on latest-trunk (2006.11.23), both Windows and Linux (Cairo on)
Flags: wanted1.9+
Whiteboard: [wanted-1.9]
Fixed on trunk, almost certainly by bug 400813.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: