summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-grid/subgrid/orthogonal-writing-mode-006.html
blob: 95d124322891aeb89d323fc5425725b32143ccf1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<!DOCTYPE HTML>
<!--
     Any copyright is dedicated to the Public Domain.
     http://creativecommons.org/publicdomain/zero/1.0/
-->
<html>
<head>
<meta charset="utf-8">
<title>CSS Grid Test: Subgridded item sizing with mixed writing modes</title>
<link rel="author" title="Ethan Jimenez" href="mailto:ethavar@microsoft.com">
<link rel="help" href="https://drafts.csswg.org/css-grid-2">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
<link rel="match" href="orthogonal-writing-mode-006-ref.html">
<style>
body {
  background: white;
  color: black;
  display: grid;
  font: 20px/1 Ahem;
  place-items: start;
  padding: 0;
  margin: 0;
}
.grid {
  background: cyan;
  display: grid;
  padding: 5px;
}
.grid > .grid {
  background: pink;
  grid-template: subgrid / subgrid;
}
.h { writing-mode: horizontal-tb; }
.v { writing-mode: vertical-rl; }
</style>
</head>
<body>
  <div class="grid h">
    <div class="grid h">
      <div class="h">1234</div>
    </div>
  </div>
  <div class="grid h">
    <div class="grid h">
      <div class="v">1234</div>
    </div>
  </div>
  <div class="grid h">
    <div class="grid v">
      <div class="h">1234</div>
    </div>
  </div>
  <div class="grid h">
    <div class="grid v">
      <div class="v">1234</div>
    </div>
  </div>
  <div class="grid v">
    <div class="grid h">
      <div class="h">1234</div>
    </div>
  </div>
  <div class="grid v">
    <div class="grid h">
      <div class="v">1234</div>
    </div>
  </div>
  <div class="grid v">
    <div class="grid v">
      <div class="h">1234</div>
    </div>
  </div>
  <div class="grid v">
    <div class="grid v">
      <div class="v">1234</div>
    </div>
  </div>
</body>
</html>