haikuwebkit/LayoutTests/fast/inline-block
Zalan Bujtas b33817e103 [IFC] Incorrect box height when scrollbar takes padding box space
https://bugs.webkit.org/show_bug.cgi?id=224546
<rdar://problem/76666402>

Reviewed by Antti Koivisto.

Source/WebCore:

This patch fixes the case when a non-overlay scrollbar can't be accomodated in the padding/content box area (e.g <div style="height: 10px; overflow: scroll">...)
In the legacy render tree the non-overlay scrollbar size is already taken into account when calling RenderBox::contentWidth/Height (paddingBoxHeight/Width), so
we just have to check how much space they actully take (currently maximum of 15px).

Test: fast/inline-block/non-overlay-scrollbar-incorrect-padding.html

* layout/integration/LayoutIntegrationLineLayout.cpp:
(WebCore::LayoutIntegration::LineLayout::updateLayoutBoxDimensions):

LayoutTests:

* fast/inline-block/non-overlay-scrollbar-incorrect-padding-expected.txt: Added.
* fast/inline-block/non-overlay-scrollbar-incorrect-padding.html: Added.


Canonical link: https://commits.webkit.org/236629@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@276135 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-04-16 13:35:08 +00:00
..
001.html
002.html
003.html
004-expected.txt
004.html
005-expected.txt
005.html
006.html
14498-positionForCoordinates.html
anonymous-block-crash-expected.txt
anonymous-block-crash.html
baseline-vertical-01-expected.html
baseline-vertical-01.html
baseline-vertical-02-expected.html
baseline-vertical-02.html
baseline-vertical-03-expected.html
baseline-vertical-03.html
baseline-vertical-04-expected.html
baseline-vertical-04.html
baseline-vertical-05-expected.html
baseline-vertical-05.html
baseline-vertical-06-expected.html
baseline-vertical-06.html
baseline-vertical-07-expected.html
baseline-vertical-07.html
baseline-vertical-08-expected.html
baseline-vertical-08.html
baseline-with-zero-width-replaced-child-expected.html
baseline-with-zero-width-replaced-child.html
contenteditable-baseline.html
float-both-whitespace-expected.png
float-both-whitespace-expected.txt
float-both-whitespace.html
float-leading-whitespace-expected.png
float-leading-whitespace-expected.txt
float-leading-whitespace.html
float-no-whitespace-expected.png
float-no-whitespace-expected.txt
float-no-whitespace.html
float-trailing-whitespace-expected.png
float-trailing-whitespace-expected.txt Breaking Float: floated block level element following inline element in floated container breaks to next line 2013-04-17 18:48:56 +00:00
float-trailing-whitespace.html
hidpi-margin-top-with-subpixel-value-and-overflow-hidden-expected.html
hidpi-margin-top-with-subpixel-value-and-overflow-hidden.html
hit-test-negative-margin-child-expected.txt [LFC][Integration] Elements that overflow inline-blocks are not hit tested correctly 2021-03-30 17:34:53 +00:00
hit-test-negative-margin-child.html [LFC][Integration] Elements that overflow inline-blocks are not hit tested correctly 2021-03-30 17:34:53 +00:00
hittest-fails-on-inline-block-with-visibility-change-expected.txt
hittest-fails-on-inline-block-with-visibility-change.html
inline-block-empty-spans-expected.html REGRESSION(r152313): Inline-block element doesn't wrap properly 2014-11-18 22:51:42 +00:00
inline-block-empty-spans.html
inline-block-vertical-align-2-expected.txt
inline-block-vertical-align-2.html
inline-block-vertical-align.html
multiple-floats-with-whitespace-expected.png
multiple-floats-with-whitespace-expected.txt
multiple-floats-with-whitespace.html
non-overlay-scrollbar-incorrect-padding-expected.txt [IFC] Incorrect box height when scrollbar takes padding box space 2021-04-16 13:35:08 +00:00
non-overlay-scrollbar-incorrect-padding.html [IFC] Incorrect box height when scrollbar takes padding box space 2021-04-16 13:35:08 +00:00
overflow-clip.html
relative-positioned-rtl-crash-expected.txt
relative-positioned-rtl-crash.html
simple-line-layout-expected.html
simple-line-layout.html
tricky-baseline.html