Closed Bug 501049 Opened 16 years ago Closed 14 years ago

Inconsistent layout of <fieldset> with text-indent when emptying a text node

Categories

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

x86
macOS
defect
Not set
minor

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: jruderman, Unassigned)

References

Details

(Keywords: testcase)

Attachments

(2 files)

Attached file testcase (dynamic)
Based on layout/forms/crashtests/266225-1.html
Attached file reference (static)
Not form-related; you can get the same effect with a float:left div with a border on it. We include the text-indent in the min-width of a shrink-wrap block if it has at least one line box. The one in the dynamic case does (holding a single textframe). The one in the static testcase does not. Arguably, we shouldn't include the text-indent if there's no text... or something.
Component: Layout: Form Controls → Layout: Block and Inline
QA Contact: layout.form-controls → layout.block-and-inline
It's odd that when we recreate the frame here from inside CharacterDataChanged we don't end up suppressing it. roc, any idea why? Not that we should be relying on the block whitespace suppression for correctness, but in this case it should be working for us that way.... ;)
That would be because we never suppress a text frame created via ContentInserted, right?
Oh, right. We don't set the item list as having line boundaries at start or end in ContentInserted.
Perhaps we should include the text-indent even if we have no line-boxes?
WFM
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: