tall content size "leaks" through size-containment boundary, inside a scrollframe, via min-height:auto and flex-basis:auto
Categories
(Core :: Layout: Scrolling and Overflow, defect, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox68 | --- | fixed |
People
(Reporter: dholbert, Assigned: dholbert)
References
Details
Attachments
(5 files, 1 obsolete file)
Assignee | ||
Comment 1•6 years ago
|
||
Assignee | ||
Updated•6 years ago
|
Comment 2•6 years ago
|
||
The yellow area should only be 50px tall.
There's no yellow in that testcase...
Assignee | ||
Comment 3•6 years ago
|
||
Oops, you're right. Looks like I attached the wrong testcase.
I reconstructed a functional testcase based on the bug summary & the description in comment 0, and I'll post that shortly. Also, this should clearly block letting containment hit release (bug 1487493), so I'll mark it as such.
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Comment 4•6 years ago
|
||
Assignee | ||
Comment 5•6 years ago
|
||
Assignee | ||
Comment 6•6 years ago
|
||
This patch doesn't affect behavior. It just makes it easier for the next patch
in this series to implement contain:size for scrollframes (by conditionally
setting the new helper variable to 0,0 if we have contain:size).
Assignee | ||
Comment 7•6 years ago
|
||
Depends on D25154
Updated•6 years ago
|
Updated•6 years ago
|
Assignee | ||
Comment 8•6 years ago
|
||
This patch adds tweaked copies of the testcases from the prior patch,
exercising the other relevant values for the 'overflow' property (for 'hidden'
and 'auto', rather than 'scroll').
Depends on D25155
Assignee | ||
Comment 9•6 years ago
|
||
TYLin: hope you don't mind that I tagged you to review this. So far I think I've been the main reviewer for containment patches (with interns doing the impl), so I need to find another reviewer for my followup work. :)
Fortunately it's pretty straightforward - contain:size
should just make us behave as if there were no children when determining the parent size in layout, which in practice means a special case in GetPref/MinISize functions and a special case in Reflow and/or a helper.
Spec is here: https://drafts.csswg.org/css-contain/#containment-size
And it may be useful to look at IsContainSize() usages in our other container types:
https://searchfox.org/mozilla-central/search?q=IsContainSize()
(The strategy in part 2 here is just the scrollframe version of what we've already got in other container types.)
Assignee | ||
Comment 10•6 years ago
|
||
[oops, meant to CC you, TYLin -- see comment 9, and let me know if you have any questions. Thanks!]
Comment 11•6 years ago
|
||
(In reply to Daniel Holbert [:dholbert] from comment #9)
TYLin: hope you don't mind that I tagged you to review this. So far I think I've been the main reviewer for containment patches (with interns doing the impl), so I need to find another reviewer for my followup work. :)
No worries. I'm happy to review those patches :)
Assignee | ||
Comment 12•6 years ago
|
||
I landed this on autoland an hour ago via Lando, but pulsebot didn't post for some reason.
Anyway, here are the commits:
https://hg.mozilla.org/integration/autoland/rev/a4552bbd062b
https://hg.mozilla.org/integration/autoland/rev/f1d82b9507f7
https://hg.mozilla.org/integration/autoland/rev/877d344fd292
Comment 13•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/a4552bbd062b
https://hg.mozilla.org/mozilla-central/rev/f1d82b9507f7
https://hg.mozilla.org/mozilla-central/rev/877d344fd292
Comment 14•6 years ago
|
||
Description
•