Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Fix table vertical alignment (middle, bottom, not yet baseline) with …
…differing height cells Includes reftest for this behaviour Patch fixes margin-collapse-clear-002,3,8,9
- Loading branch information
1 parent
2de3b11
commit b1debc4
Showing
9 changed files
with
102 additions
and
12 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
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
3 changes: 0 additions & 3 deletions
3
tests/wpt/metadata-css/css21_dev/html4/margin-collapse-clear-002.htm.ini
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
tests/wpt/metadata-css/css21_dev/html4/margin-collapse-clear-003.htm.ini
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
tests/wpt/metadata-css/css21_dev/html4/margin-collapse-clear-008.htm.ini
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
tests/wpt/metadata-css/css21_dev/html4/margin-collapse-clear-009.htm.ini
This file was deleted.
Oops, something went wrong.
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
34 changes: 34 additions & 0 deletions
34
tests/wpt/mozilla/tests/mozilla/table_valign_uneven_height.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,34 @@ | ||
<!doctype html> | ||
<meta charset="utf-8"> | ||
<title>Vertical Alignment for row with uneven height cells</title> | ||
<link rel="match" href="table_valign_uneven_height_ref.html"> | ||
<style> | ||
td { | ||
border: 5px black solid; | ||
border-spacing: 0; | ||
padding: 0; | ||
} | ||
td { | ||
vertical-align: middle; | ||
background-color: green; | ||
} | ||
.b { | ||
vertical-align: bottom; | ||
} | ||
div { | ||
height: 50px; | ||
width: 50px; | ||
background-color: blue; | ||
} | ||
.c { | ||
height: 100px !important; | ||
background-color: red !important; | ||
} | ||
</style> | ||
<table> | ||
<tr> | ||
<td><div class="c"></div></td> | ||
<td><div></div></td> | ||
<td class="b"><div></div></td> | ||
</tr> | ||
</table> |
34 changes: 34 additions & 0 deletions
34
tests/wpt/mozilla/tests/mozilla/table_valign_uneven_height_ref.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,34 @@ | ||
<!doctype html> | ||
<meta charset="utf-8"> | ||
<title>Reference: Vertical Alignment for row with uneven height cells</title> | ||
<style> | ||
td { | ||
background-color: green; | ||
border: 5px black solid; | ||
border-spacing: 0; | ||
padding: 0; | ||
} | ||
div { | ||
height: 50px; | ||
width: 50px; | ||
background-color: blue; | ||
} | ||
.c { | ||
height: 100px !important; | ||
background-color: #f00 !important; | ||
} | ||
.middle { | ||
margin-top: 25px; | ||
margin-bottom: 25px; | ||
} | ||
.bottom { | ||
margin-top: 50px; | ||
} | ||
</style> | ||
<table> | ||
<tr> | ||
<td class="a"><div class="c"></div></td> | ||
<td class="a"><div class="middle"></div></td> | ||
<td class="b"><div class="bottom"></div></td> | ||
</tr> | ||
</table> |