summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-flexbox/flexbox-writing-mode-010-ref.html
blob: d30d71e4d2c9d4269837089120cee1b8f3472d3d (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
<!DOCTYPE html>
<!--
     Any copyright is dedicated to the Public Domain.
     http://creativecommons.org/publicdomain/zero/1.0/
-->
<html>
<head>
  <title>CSS Reftest Reference</title>
  <meta charset="utf-8">
  <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com">
  <link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
  <style>
  .container {
    display: block;
    border: 2px solid purple;
    padding: 2px;
    margin-bottom: 2em;
    height: 150px;
    width: 500px;
  }

  span {
    display: block;
    background: lightgrey;
    border: 2px solid black;
    margin: 11px 13px 17px 7px;
    inline-size: 6px;
  }

  .small { font: 12px Ahem; }
  .big   { font: 20px Ahem; }

  .hl  { writing-mode: horizontal-tb;  direction: ltr; }
  .hr  { writing-mode: horizontal-tb;  direction: rtl; }
  .vl  { writing-mode: vertical-lr;    direction: ltr; }
  .vr  { writing-mode: vertical-rl;    direction: ltr; }
  .vl_rtl { writing-mode: vertical-lr; direction: rtl; }
  .vr_rtl { writing-mode: vertical-rl; direction: rtl; }

  .container > .hl, .container > .hr {
    /* In the testcase, these items are stretched vertically
       via the default "align-self:stretch" behavior, and because
       they have a height of "auto".
       (The rest of the items have a non-auto height from "inline-size"
       and their vertical writing-mode, so those ones do not stretch.) */
    height: 118px;
  }

  .container.hl > * { float: left; }
  .container.hr > * { float: right; }

  </style>
</head>
<body>

<div class="container hl">
  <span class="hl small">p b c</span>
  <span class="hl big">p e</span>
  <span class="hr small">p b c</span>
  <span class="hr big">p e</span>
  <span class="vl small">p b c</span>
  <span class="vl big">p e</span>
</div>
<div class="container hl">
  <span class="vr small">p b c</span>
  <span class="vr big">p e</span>
  <span class="vl_rtl small">p b c</span>
  <span class="vl_rtl big">p e</span>
  <span class="vr_rtl small">p b c</span>
  <span class="vr_rtl big">p e</span>
</div>
<div class="container hr">
  <span class="hl small">p b c</span>
  <span class="hl big">p e</span>
  <span class="hr small">p b c</span>
  <span class="hr big">p e</span>
  <span class="vl small">p b c</span>
  <span class="vl big">p e</span>
</div>
<div class="container hr">
  <span class="vr small">p b c</span>
  <span class="vr big">p e</span>
  <span class="vl_rtl small">p b c</span>
  <span class="vl_rtl big">p e</span>
  <span class="vr_rtl small">p b c</span>
  <span class="vr_rtl big">p e</span>
</div>

</body>
</html>