haikuwebkit/LayoutTests/scrollbars/custom-scrollbar-table-cell...

50 lines
873 B
HTML
Raw Permalink Normal View History

<!DOCTYPE html>
<html>
<head>
<style>
::-webkit-scrollbar {
width: 16px;
height: 16px;
}
::-webkit-scrollbar-track
{
background-color: #E3E3E3;
}
::-webkit-scrollbar-thumb
{
background: black;
}
.scroll-row {
display: table-row;
}
.scroll-cell {
display: table-cell;
overflow: scroll;
width: 50px;
height: 50px;
}
.overflowing {
width: 200px;
height: 200px;
}
</style>
<script>
if (window.testRunner)
testRunner.dumpAsText(true);
</script>
</head>
<body>
<!--
Bug 93903: Crash in RenderTableCell::borderTop() due to custom scrollbars after r124168
min-width/max-width of min-content/max-content don't work correctly if width is specified https://bugs.webkit.org/show_bug.cgi?id=106143 Reviewed by Tony Chang. Source/WebCore: Test: fast/css-intrinsic-dimensions/intrinsic-sized-blocks.html * rendering/RenderBlock.cpp: (WebCore::RenderBlock::computeIntrinsicLogicalWidths): Expose this so that we don't use the preferred widths when calculating intrinsic width values since the preferred width will be the regular width value if it is set. Also, simplified the logic around table cells and scrollbar widths. The old code was wrong and unnecessarily complicated. (WebCore::RenderBlock::computePreferredLogicalWidths): Use the new computeIntrinsicLogicalWidths method. (WebCore::RenderBlock::computeInlinePreferredLogicalWidths): (WebCore::RenderBlock::computeBlockPreferredLogicalWidths): Pass in the min/max values as out params so they can be called from computeIntrinsicLogicalWidths. Also, make computeBlockPreferredLogicalWidths const. * rendering/RenderBlock.h: LayoutTests: * css3/flexbox/box-sizing.html: The old result was incorrectly using the preferred width as the min-content width of the flex items. The new result is correctly resolving the min-content width to 0 and allowing the flex items to shrink. * fast/css-intrinsic-dimensions/intrinsic-sized-blocks-expected.txt: Added. * fast/css-intrinsic-dimensions/intrinsic-sized-blocks.html: Added. * platform/chromium-win/fast/table/overflowHidden-expected.txt: The new result correctly adds the scrollbar width to the table cell intrinsic width. The pixel result doesn't need ot be updated because the elements that changed are below the fold, so they don't show up in the png. * platform/chromium/TestExpectations: * platform/efl/TestExpectations: * platform/gtk/TestExpectations: * platform/mac/TestExpectations: * platform/qt/TestExpectations: Add tests that will need rebaselines. * scrollbars/custom-scrollbar-table-cell-expected.png: The new result correctly adds the scrollbar width to the table cell intrinsic width. Canonical link: https://commits.webkit.org/131956@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@147245 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2013-03-29 20:12:16 +00:00
This test has PASSED if there are 2 grey custom scrollbars and each block is 216x216px.
-->
<div class="scroll-cell"><div class="overflowing"></div></div>
<div class="scroll-row"><div class="scroll-cell"><div class="overflowing"></div></div></div>
</body>
</html>