Closed Bug 1251799 Opened 4 years ago Closed 2 years ago

The frame insertion point for a parent frame is wrong when its first child frame is a ::before for a display:contents child

Categories

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

defect

Tracking

()

RESOLVED FIXED

People

(Reporter: mats, Unassigned)

References

Details

(Keywords: testcase)

Attachments

(1 file)

Attached file testcase
It looks like the bug is in nsLayoutUtils::IsGeneratedContentFor at first glance.
It returns true but it seems it should return false.

The result for the testcase should be:
1:before 1 1:after 2:before 2 2:after

IOW, the dyn1() function should be idempotent, but it's not.
The bug also occurs for a Grid parent frame so it's probably a general problem.
Summary: The frame insertion point for a block parent is wrong when its first child frame is a ::before for a display:contents child → The frame insertion point for a parent frame is wrong when its first child frame is a ::before for a display:contents child
Mats, do you plan to fix this?
Flags: needinfo?(mats)
It doesn't seem that urgent to me and I've got higher prio stuff ATM (Grid).
Flags: needinfo?(mats)
See Also: → 1402442
Fixed by bug 1413619
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.