This repository has been archived by the owner on Jun 24, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[LFC][TFC] Take vertical spacing into account when setting the height…
… of a cell with rowspan https://bugs.webkit.org/show_bug.cgi?id=211976 Reviewed by Antti Koivisto. Source/WebCore: When a cell spans over multiple rows, the height of the cell includes the vertical spacing between those spanned rows as well. Test: fast/layoutformattingcontext/table-simple-rowspan-with-spacing.html * layout/tableformatting/TableFormattingContext.cpp: (WebCore::Layout::TableFormattingContext::setUsedGeometryForCells): LayoutTests: * fast/layoutformattingcontext/table-simple-rowspan-with-spacing-expected.html: Added. * fast/layoutformattingcontext/table-simple-rowspan-with-spacing.html: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@261782 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
zalan@apple.com
committed
May 16, 2020
1 parent
9fa57e4
commit dbae081
Showing
5 changed files
with
64 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
LayoutTests/fast/layoutformattingcontext/table-simple-rowspan-with-spacing-expected.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<!DOCTYPE html> <!-- webkit-test-runner [ internal:LayoutFormattingContextEnabled=true internal:LayoutFormattingContextIntegrationEnabled=false ] --> | ||
<style> | ||
div { | ||
border: 1px solid red; | ||
position: absolute; | ||
} | ||
|
||
.container { | ||
border: 10px solid green; | ||
width: 524px; | ||
height: 384px; | ||
} | ||
</style> | ||
<div class=container> | ||
<style> | ||
</style> | ||
<div style="width: 82px; height: 124px; left: 129px; top: 129px;"></div> | ||
<div style="width: 82px; height: 12px; left: 311px; top: 129px;"></div> | ||
<div style="width: 82px; height: 12px; left: 311px; top: 241px;"></div> | ||
</div> |
19 changes: 19 additions & 0 deletions
19
LayoutTests/fast/layoutformattingcontext/table-simple-rowspan-with-spacing.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<!DOCTYPE html> <!-- webkit-test-runner [ internal:LayoutFormattingContextEnabled=true internal:LayoutFormattingContextIntegrationEnabled=false ] --> | ||
<style> | ||
table { | ||
font-size: 10px; | ||
font-family: ahem; | ||
border-spacing: 100px; | ||
padding: 30px; | ||
border: 10px solid green; | ||
color: white; | ||
} | ||
|
||
td { | ||
outline: 1px solid red; | ||
} | ||
</style> | ||
<table> | ||
<tr><td rowspan=2>iiiiiiii</td><td style="">iiiiiiii</td></tr> | ||
<tr><td style="">iiiiiiii</td></tr> | ||
</table> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters