summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-writing-modes/direction-upright-002.html
blob: daa76c8ea61ceb41599a3bbb834278b59c347f72 (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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
<!DOCTYPE html>
<title>'text-orientation: upright' forces used 'direction' to LTR in vertical typographic modes</title>
<link rel=help href="https://www.w3.org/TR/css-writing-modes-3/#text-orientation">
<link rel=help href="https://www.w3.org/TR/css-flexbox-1/#flex-direction-property">
<link rel=help href="https://www.w3.org/TR/css-grid-1/#grid-auto-flow-property">
<link rel=help href="https://www.w3.org/TR/css-ruby-1/#bidi">
<link rel=match href="reference/direction-upright-002.html">

<style>
  body > div {
    border: solid silver;
    float: left;
    margin: 1em;
    border-inline-start-color: orange;
    border-block-start-color: aqua;
    border-inline-end-color: lime;
    border-block-end-color: yellow;
  }
  colgroup:first-child { background: fuchsia; }
  col:last-child { background: purple; }
  .flex { display: flex; }
  .grid { grid-template-columns: auto auto }
  hr { clear: both }
</style>

<p>Test passes if both rows of boxes are identical (coloring, order, orientation, and arrangement of contents).

<!-- test -->

<div dir=rtl style="writing-mode: vertical-rl; text-orientation: upright">
  <table>
    <colgroup></colgroup>
    <colgroup><col><col></colgroup>
    <tr><td>A<td>B<td>C
  </table>
  <div class=flex>A <span>B</span></div>
  <div class=grid>A <span>B</span></div>
  <div>A <ruby>B<rt>b</rt> C<rt>c</rt></ruby><ruby>D<rt>d</rt> E<rt>e</rt></ruby></div>
</div>
<div dir=rtl style="writing-mode: vertical-lr; text-orientation: upright">
  <table>
    <colgroup></colgroup>
    <colgroup><col><col></colgroup>
    <tr><td>A<td>B<td>C
  </table>
  <div class=flex>A <span>B</span></div>
  <div class=grid>A <span>B</span></div>
  <div>A <ruby>B<rt>b</rt> C<rt>c</rt></ruby><ruby>D<rt>d</rt> E<rt>e</rt></ruby></div>
</div>

<!-- control -->

<div dir=rtl style="text-orientation: upright">
  <table>
    <colgroup></colgroup>
    <colgroup><col><col></colgroup>
    <tr><td>A<td>B<td>C
  </table>
  <div class=flex>A <span>B</span></div>
  <div class=grid>A <span>B</span></div>
  <div>A <ruby>B<rt>b</rt> C<rt>c</rt></ruby><ruby>D<rt>d</rt> E<rt>e</rt></ruby></div>
</div>
<div dir=rtl style="writing-mode: sideways-rl; text-orientation: upright">
  <table>
    <colgroup></colgroup>
    <colgroup><col><col></colgroup>
    <tr><td>A<td>B<td>C
  </table>
  <div class=flex>A <span>B</span></div>
  <div class=grid>A <span>B</span></div>
  <div>A <ruby>B<rt>b</rt> C<rt>c</rt></ruby><ruby>D<rt>d</rt> E<rt>e</rt></ruby></div>
</div>
<div dir=rtl style="writing-mode: sideways-lr; text-orientation: upright">
  <table>
    <colgroup></colgroup>
    <colgroup><col><col></colgroup>
    <tr><td>A<td>B<td>C
  </table>
  <div class=flex>A <span>B</span></div>
  <div class=grid>A <span>B</span></div>
  <div>A <ruby>B<rt>b</rt> C<rt>c</rt></ruby><ruby>D<rt>d</rt> E<rt>e</rt></ruby></div>
</div>

<hr>

<!-- reference -->

<div style="writing-mode: vertical-rl; text-orientation: upright">
  <table>
    <colgroup></colgroup>
    <colgroup><col><col></colgroup>
    <tr><td>A<td>B<td>C
  </table>
  <div class=flex>A <span>B</span></div>
  <div class=grid>A <span>B</span></div>
  <div>A <ruby>B<rt>b</rt> C<rt>c</rt></ruby><ruby>D<rt>d</rt> E<rt>e</rt></ruby></div>
</div>
<div style="writing-mode: vertical-lr; text-orientation: upright">
  <table>
    <colgroup></colgroup>
    <colgroup><col><col></colgroup>
    <tr><td>A<td>B<td>C
  </table>
  <div class=flex>A <span>B</span></div>
  <div class=grid>A <span>B</span></div>
  <div>A <ruby>B<rt>b</rt> C<rt>c</rt></ruby><ruby>D<rt>d</rt> E<rt>e</rt></ruby></div>
</div>

<div dir=rtl>
  <table>
    <colgroup></colgroup>
    <colgroup><col><col></colgroup>
    <tr><td>A<td>B<td>C
  </table>
  <div class=flex>A <span>B</span></div>
  <div class=grid>A <span>B</span></div>
  <div>A <ruby>B<rt>b</rt> C<rt>c</rt></ruby><ruby>D<rt>d</rt> E<rt>e</rt></ruby></div>
</div>
<div dir=rtl style="writing-mode: sideways-rl">
  <table>
    <colgroup></colgroup>
    <colgroup><col><col></colgroup>
    <tr><td>A<td>B<td>C
  </table>
  <div class=flex>A <span>B</span></div>
  <div class=grid>A <span>B</span></div>
  <div>A <ruby>B<rt>b</rt> C<rt>c</rt></ruby><ruby>D<rt>d</rt> E<rt>e</rt></ruby></div>
</div>
<div dir=rtl style="writing-mode: sideways-lr">
  <table>
    <colgroup></colgroup>
    <colgroup><col><col></colgroup>
    <tr><td>A<td>B<td>C
  </table>
  <div class=flex>A <span>B</span></div>
  <div class=grid>A <span>B</span></div>
  <div>A <ruby>B<rt>b</rt> C<rt>c</rt></ruby><ruby>D<rt>d</rt> E<rt>e</rt></ruby></div>
</div>