Skip to content

Commit 9b4dbd4

Browse files
jfkthamemoz-wptsync-bot
authored andcommitted
Don't attempt to compute auto margins within an unconstrained available size.
Differential Revision: https://phabricator.services.mozilla.com/D251655 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1959395 gecko-commit: 968271f7feb54de3263a8887dd3680e08b49e0ff gecko-reviewers: layout-reviewers, emilio
1 parent 6846431 commit 9b4dbd4

File tree

2 files changed

+70
-0
lines changed

2 files changed

+70
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<!DOCTYPE html>
2+
<meta charset=utf-8>
3+
4+
<title>CSS writing-mode reference</title>
5+
6+
<style>
7+
table { margin: 10px; }
8+
td { background: green; padding: 10px 20px 30px 40px; }
9+
div { width: 20px; height: 40px; background: blue; }
10+
</style>
11+
12+
<p>All five green squares should look the same, with a blue rectangle towards the upper right.</p>
13+
14+
<table>
15+
<td><div></div></td>
16+
</table>
17+
18+
<table>
19+
<td><div></div></td>
20+
</table>
21+
22+
<table>
23+
<td><div></div></td>
24+
</table>
25+
26+
<table>
27+
<td><div></div></td>
28+
</table>
29+
30+
<table>
31+
<td><div></div></td>
32+
</table>
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<!DOCTYPE html>
2+
<meta charset=utf-8>
3+
4+
<title>CSS writing-mode test: orthogonal table cells</title>
5+
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1959395">
6+
<link rel="match" href="orthogonal-cell-001-ref.html">
7+
8+
<style>
9+
table { margin: 10px; }
10+
td { background: green; padding: 10px 20px 30px 40px; }
11+
div { width: 20px; height: 40px; background: blue; }
12+
.htb { writing-mode: horizontal-tb; }
13+
.vlr { writing-mode: vertical-lr; }
14+
.vrl { writing-mode: vertical-rl; }
15+
</style>
16+
17+
<p>All five green squares should look the same, with a blue rectangle towards the upper right.</p>
18+
19+
<table>
20+
<td><div></div></td>
21+
</table>
22+
23+
<!-- The different writing modes should not disrupt the table cell/row sizing. -->
24+
<table class=htb>
25+
<td class=vlr><div></div></td>
26+
</table>
27+
28+
<table class=htb>
29+
<td class=vrl><div></div></td>
30+
</table>
31+
32+
<table class=vlr>
33+
<td class=htb><div></div></td>
34+
</table>
35+
36+
<table class=vrl>
37+
<td class=htb><div></div></td>
38+
</table>

0 commit comments

Comments
 (0)