Ensure "contain:size" makes absolute positioned elements monolithic
Categories
(Core :: Layout, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox85 | --- | fixed |
People
(Reporter: TYLin, Assigned: TYLin)
References
Details
Attachments
(2 files)
Bug 1470329 made contain:size
element monolithic by setting the element's available block-size to NS_UNCONSTRAINEDSIZE
in Reflowinput::Init().
However, for an absolute positioned element, the absolute containing block overrides its available block-size after the ReflowInput
is constructed. We need to consider IsContainSize
when calculating the abs-pos child's available block-size, or pass the correct available block-size to ReflowInput
's constructor.
Assignee | ||
Comment 1•4 years ago
|
||
This patch shouldn't change the behavior.
Assignee | ||
Comment 2•4 years ago
|
||
This ensures abs-pos frame with size containment is monolithic because
ReflowInput::Init() can override available block-size to an
unconstrained size if the frame has size containment (Bug 1470329).
Depends on D98226
Comment 5•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/5a1afa9b7c44
https://hg.mozilla.org/mozilla-central/rev/954ba4c01157
Description
•