DescriptionRenderBox::computePositionedLogicalHeightUsing() decides top, bottom and
height of the positioned box.
LogicalHeightLength is a height specified by CSS. So, whether it
contains borders and paddings depends on box-sizing value. There is no
difference between a normal block and a table.
In a table case, the current code overwrites the CSS height using the
height of a RenderBox. The height of a RenderBox always doesn't contain
borders and paddings. If a table has box-sizing border-box, the code
sets the height which doesn't contain borders and paddings to
logicalHeightLength which thinks its value contains borders and
paddings. This makes a result height narrower than an expected height.
Since we already has a height which doesn't contain borders and padding
for a table, we should not call adjustContentBoxLogicalHeightForBoxSizing().
BUG=301393
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=159743
Patch Set 1 #
Total comments: 2
Patch Set 2 : /Users/yukisekiguchi/work/chromium-blink/src/third_party/WebKit/LayoutTests/fast/box-sizing/table-c… #
Created: 7 years, 2 months ago
Messages
Total messages: 11 (0 generated)
|