summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-position/multicol/vrl-ltr-ltr-in-multicols.html
blob: 1d8390cd7cfe7d1ba554703ba79f2c141f1c275d (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
<!DOCTYPE html>
<link rel="help" href="https://drafts.csswg.org/css2/visudet.html#abs-non-replaced-width" />
<link rel="match" href="vrl-in-multicols-ref.html">
<meta name="assert" content="This test checks the static position of an out of flow absolute positioned element, under various conditions." />
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style>
  body { writing-mode: vertical-rl; }
  .container {
    position: relative;
    background: green;
    font: 20px/1 Ahem;
    inline-size: 80px;
    block-size: 120px;
    color: green;
  }
  .multicol {
    column-count: 2;
    column-fill: auto;
    column-gap: 0;
    block-size: 60px;
    inline-size: 160px;
  }
  .red { color: red; }
  .cb { position: relative; }
  .rtl { direction: rtl; }
  .ltr { direction: ltr; }
  .inline { display: inline; }
  .abs { position: absolute; }
  .inset-start { inset-block-start: 0; inset-inline-start: 0; }
  .inset-end { inset-block-end: 0; inset-inline-end: 0; }
</style>

There should be no red.
<div class="multicol">
  <div class="container ltr">
    <span class="red">XX</span><span class="ltr">X
        <div class="abs inline inset-end">XX</div>
        XXXX XXXX XXXX XXXX XX<span class="red">XX</span>
        <div class="abs inline inset-start">XX</div>
     </span>
  </div>
</div>

<div class="multicol">
  <div class="container ltr">
    <span class="red">XX</span><span class="ltr">X
        <div class="abs block inset-end">XX</div>
        XXXX XXXX XXXX XXXX
        <div class="abs block inset-start">XX</div>
        <br>XX<span class="red">XX</span>
      </span>
  </div>
</div>

<div class="multicol">
  <div class="container ltr">
    X<span class="ltr cb"><span class="red">XX</span>
       <div class="abs inline inset-end">XX</div>
       XXXX XXXX XXXX XXXX
       <div class="abs inline inset-start">XX</div>
       XX<span class="red">XX</span>
     </span>
  </div>
</div>

<div class="multicol">
  <div class="container ltr">
    X<span class="ltr cb"><span class="red">XX</span>
       <div class="abs block inset-end">XX</div>
       XXXX XXXX XXXX XX
       <div class="abs block inset-start">XX</div>
       <br><span class="red">XX</span>
     </span>
  </div>
</div>

<div class="multicol">
  <div class="container ltr">
    <span class="cb"><span class="red">XX</span><span class="ltr">X
      <div class="abs inline inset-end">XX</div>
      XXXX XXXX XXXX XX
      <div class="abs inline inset-start">XX</div>
      X<span class="red">XX</span>
    </span></span>
  </div>
</div>

<div class="multicol">
  <div class="container ltr">
    <span class="cb"><span class="red">XX</span><span class="ltr">X
      <div class="abs block inset-end">XX</div>
      XXXX XXXX XXXX XX
      <div class="abs block inset-start">XX</div>
      <br>X<span class="red">XX</span>
    </span></span>
  </div>
</div>