Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-position/multicol/vrl-rtl-ltr-in-multicols.tentative.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<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 rtl">
<span class="red">XX</span><span class="ltr">XX
<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 rtl">
<span class="red">XX</span><span class="ltr">XX
<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 rtl">
<span class="red">XX</span><span class="ltr cb">XX
<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 rtl">
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 rtl">
<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 rtl">
<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>