Closed Bug 1471274 Opened 6 years ago Closed 6 years ago

Inner text should not affect the behaviour of size-contained elements

Categories

(Core :: Layout, defect, P3)

defect

Tracking

()

RESOLVED FIXED

People

(Reporter: morgan, Unassigned)

References

Details

Attachments

(4 files, 1 obsolete file)

According to the draft spec for containment [1], "When laying out the containing element, it must be treated as having no contents. After layout of the element is complete, its contents must then be laid out into the containing element’s resolved size". The current implementation for 'contain:size' behaves correctly on most frame types, however in flexContinerFrames and HTMLButtonControlFrames information about text contents leaks and affects the positioning/margins of size-contained elements in a small subset of cases. [1] https://drafts.csswg.org/css-contain/#containment-size
Attached file contain-size-flex-002-ref.html (obsolete) —
Test case for currently failing 'contain:size' case on flexContainerFrame
Reference case for currently failing 'contain:size' case on flexContainerFrame
Attachment #8987885 - Attachment is obsolete: true
Test case for currently failing 'contain:size' case on flexContainerFrame
Reference case for currently failing 'contain:size' case on HTMLButtonControlFrame
Test case for currently failing 'contain:size' case on HTMLButtonControlFrame
Blocks: 1467209
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Fixed in main implementation (Bug 1467209)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: