Issue metadata
Sign in to add a comment
|
Issues with intrinsic heights and scrollbars |
||||||||||||||||||||||
Issue descriptionThe height of an element with min-content|max-content|fit-content|-webkit-fill-available is wrongly computed if the element has horizontal scrollbar. A simple case to reproduce the issue: <div style="width: 100px; height: min-content; border: solid thick; overflow-x: scroll;">foobar</div> The size of this should be the same than: <div style="width: 100px; height: auto; border: solid thick; overflow-x: scroll;">foobar</div> But it's different. Check the attached example for more cases. Investigating the code it seems this got broken in r201824 (https://chromium.googlesource.com/chromium/src/+/a78687847c12659503d2f1e02f8f522d52c0c1fd) when LayoutBox::computeContentAndScrollbarLogicalHeightUsing() was modified so it adds the scrollbar in: return computeIntrinsicLogicalContentHeightUsing(height, intrinsicContentHeight, borderAndPaddingLogicalHeight()) + scrollbarLogicalHeight(); Removing that fixes the issues but causes a failure in css3/flexbox/overflow-auto-resizes-correctly.html.
,
Nov 20
,
Nov 20
,
Nov 20
The right fix is probably to subtract ScrollbarLogicalHeight() from intrinsic_content_logical_height_ when passing it to computeIntrinsicLogicalContentHeightUsing
,
Nov 20
Morten, see also my comment above why I think this bug is different |
|||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||
Comment 1 by susan.boorgula@chromium.org
, Nov 19