Source code

Revision control

Copy as Markdown

Other Tools

Test Info: Warnings

<!doctype html>
<meta charset="utf-8">
<meta name="timeout" content="long">
<title>CSS Grid Lanes: reading-flow across column tracks with fragmentation</title>
<link rel="help" href="https://drafts.csswg.org/css-break/">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/testdriver.js"></script>
<script src="/resources/testdriver-vendor.js"></script>
<script src="/resources/testdriver-actions.js"></script>
<script src="/shadow-dom/focus-navigation/resources/shadow-dom.js"></script>
<script src="/shadow-dom/focus-navigation/resources/focus-utils.js"></script>
<style>
.fragmentainers {
column-count: 3;
column-gap: 20px;
column-fill: auto;
width: 520px;
height: 100px;
}
.lanes {
display: grid-lanes;
grid-template-columns: repeat(4, 40px);
fit-tolerance: 0;
gap: 0;
place-content: start;
justify-items: start;
reading-flow: grid-lanes-flow;
width: 160px;
height: 260px;
}
.lanes > div {
width: 100%;
}
</style>
<!--
At the moment we are counting an item as part of a reading row if 2/3 of the
item's stacking-axis length is within the borders of the initial reading row
bounds.
First reading row: a, b, f, c, d, e, g
Second reading row: k, m, i, l, j, h
Third reading row: o, r, t, n, s, q, p
-->
<div class="test-case"
data-expect="a,b,f,c,d,e,g,k,m,i,l,j,h,o,r,t,n,s,q,p"
data-description="Grid-lanes-flow reads across fragmented column tracks">
<div class="fragmentainers">
<div id="lanes" class="lanes">
<div id="a" tabindex="0" style="height: 90px; background-color: lightcoral">A</div>
<div id="b" tabindex="0" style="height: 30px; background-color: lightskyblue">B</div>
<div id="c" tabindex="0" style="height: 80px; background-color: lightgreen">C</div>
<div id="d" tabindex="0" style="height: 20px; background-color: khaki">D</div>
<div id="e" tabindex="0" style="height: 20px; background-color: plum">E</div>
<div id="f" tabindex="0" style="height: 40px; background-color: orange">F</div>
<div id="g" tabindex="0" style="height: 20px; background-color: paleturquoise">G</div>
<div id="h" tabindex="0" style="height: 90px; background-color: lightpink">H</div>
<div id="i" tabindex="0" style="height: 40px; background-color: silver">I</div>
<div id="j" tabindex="0" style="height: 90px; background-color: peachpuff">J</div>
<div id="k" tabindex="0" style="height: 30px; background-color: wheat">K</div>
<div id="l" tabindex="0" style="height: 20px; background-color: lavender">L</div>
<div id="m" tabindex="0" style="height: 20px; background-color: powderblue">M</div>
<div id="n" tabindex="0" style="height: 70px; background-color: palegoldenrod">N</div>
<div id="o" tabindex="0" style="height: 50px; background-color: thistle">O</div>
<div id="p" tabindex="0" style="height: 100px; background-color: aquamarine">P</div>
<div id="q" tabindex="0" style="height: 90px; background-color: lightsteelblue">Q</div>
<div id="r" tabindex="0" style="height: 30px; background-color: yellowgreen">R</div>
<div id="s" tabindex="0" style="height: 30px; background-color: sandybrown">S</div>
<div id="t" tabindex="0" style="height: 20px; background-color: lightcyan">T</div>
</div>
</div>
</div>
<script>
runFocusTestCases();
</script>