Skip to content

Commit 16fab63

Browse files
emiliomoz-wptsync-bot
authored andcommitted
Make empty cells more thoroughly not participate on baseline alignment.
This matches other browsers, and was kinda what was intended with the content empty check and such, I believe. Differential Revision: https://phabricator.services.mozilla.com/D232375 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1936549 gecko-commit: f298f75ad50e64e0ca01b7331aa53b4ceebfeae9 gecko-reviewers: dshin
1 parent 64c0c56 commit 16fab63

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<!doctype html>
2+
<meta charset=utf-8>
3+
<title>Baseline aligned cells with explicit height</title>
4+
<link rel="author" href="mailto:[email protected]" title="Emilio Cobos Álvarez">
5+
<link rel="author" href="https://mozilla.org" title="Mozilla">
6+
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1936549">
7+
<link rel="help" href="https://drafts.csswg.org/css-tables/">
8+
<link rel="match" href="baseline-empty-cell-ref.html">
9+
<style>
10+
table { border-collapse:collapse }
11+
tr { vertical-align:baseline }
12+
td { height: 30px; border: 1px solid black }
13+
</style>
14+
<table>
15+
<tr><td>ABCDE</td><td></td></tr>
16+
</table>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<!doctype html>
2+
<style>
3+
table { border-collapse:collapse }
4+
tr { vertical-align:baseline }
5+
td { border: 1px solid black; height: 30px }
6+
</style>
7+
<table>
8+
<tr><td>ABCDE</td><td style="max-width: 0">&nbsp;</td></tr>
9+
</table>

0 commit comments

Comments
 (0)