Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test has a WPT meta file that expects 1 subtest issues.
- This WPT test may be referenced by the following Test IDs:
- /shadow-dom/focus-navigation/reading-flow/grid-lanes-row-reading-flow-011.tentative.html - WPT Dashboard Interop Dashboard
<!doctype html>
<meta charset="utf-8">
<meta name="timeout" content="long">
<title>CSS Grid Lanes: reading-flow across row tracks with fragmentation</title>
<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: 820px;
height: 60px;
}
.lanes {
display: grid-lanes;
grid-template-rows: repeat(4, 40px);
fit-tolerance: 0;
gap: 0;
place-content: start;
align-items: start;
reading-flow: grid-lanes-flow;
height: 160px;
width: 260px;
}
.lanes > div {
height: 100%;
}
</style>
<!--
At the moment we are counting an item as part of a reading column if 2/3 of the
item's stacking-axis length is within the borders of the initial reading column
bounds.
First reading column: a, b, f, c, d, e, g
Second reading column: k, m, i, l, j, h
Third reading column: 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 row tracks">
<div class="fragmentainers">
<div id="lanes" class="lanes">
<div id="a" tabindex="0" style="width: 90px; background-color: lightcoral">A</div>
<div id="b" tabindex="0" style="width: 30px; background-color: lightskyblue">B</div>
<div id="c" tabindex="0" style="width: 80px; background-color: lightgreen">C</div>
<div id="d" tabindex="0" style="width: 20px; background-color: khaki">D</div>
<div id="e" tabindex="0" style="width: 20px; background-color: plum">E</div>
<div id="f" tabindex="0" style="width: 40px; background-color: orange">F</div>
<div id="g" tabindex="0" style="width: 20px; background-color: paleturquoise">G</div>
<div id="h" tabindex="0" style="width: 90px; background-color: lightpink">H</div>
<div id="i" tabindex="0" style="width: 40px; background-color: silver">I</div>
<div id="j" tabindex="0" style="width: 90px; background-color: peachpuff">J</div>
<div id="k" tabindex="0" style="width: 30px; background-color: wheat">K</div>
<div id="l" tabindex="0" style="width: 20px; background-color: lavender">L</div>
<div id="m" tabindex="0" style="width: 20px; background-color: powderblue">M</div>
<div id="n" tabindex="0" style="width: 70px; background-color: palegoldenrod">N</div>
<div id="o" tabindex="0" style="width: 50px; background-color: thistle">O</div>
<div id="p" tabindex="0" style="width: 100px; background-color: aquamarine">P</div>
<div id="q" tabindex="0" style="width: 90px; background-color: lightsteelblue">Q</div>
<div id="r" tabindex="0" style="width: 30px; background-color: yellowgreen">R</div>
<div id="s" tabindex="0" style="width: 30px; background-color: sandybrown">S</div>
<div id="t" tabindex="0" style="width: 20px; background-color: lightcyan">T</div>
</div>
</div>
</div>
<script>
runFocusTestCases();
</script>