Closed Bug 1964229 Opened 1 year ago Closed 1 year ago

Inline abs-containing block with trailing whitespace overflows its own box

Categories

(Core :: Layout: Positioned, defect)

defect

Tracking

()

RESOLVED DUPLICATE of bug 629059

People

(Reporter: dshin, Unassigned)

References

Details

Attachments

(1 file)

In the attached test case, "b" should be positioned within the bordered box, but it's outside.

Summary: Inline abs-containing block with trailing space overflows its own box → Inline abs-containing block with trailing whitespace overflows its own box

When inline frame's abspos children are being reflowed, we only have the non-trimmed size available to us.

The proper size is set only when the entire line is being placed, after all (Incl. abspos children) frames in that line are reflowed.

... So perhaps the answer is that we need to do a separate traversal for abspos containing frames within inline layout context.

Note while we do track potentially-trimmed inline size in line layout context, but we can't just use it since the trimming may not happen: e.g. An abspos containing span with trailing spaces, but then it has a next sibling span with content. This approach likely doesn't handle deeply nested spans, etc. either.

Status: NEW → RESOLVED
Closed: 1 year ago
Duplicate of bug: 629059
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: