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-column-reading-flow-017.tentative.html - WPT Dashboard Interop Dashboard
<!doctype html>
<meta charset="utf-8">
<meta name="timeout" content="long">
<title>CSS Grid Lanes: reading-flow across columns tracks with auto-placement, fill-reverse, and track-reverse</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>
.test-case {
margin-top: 20px;
}
.lanes {
display: grid-lanes;
fit-tolerance: 0;
gap: 0px;
place-content: start;
justify-items: start;
}
.columns {
grid-template-columns: repeat(4, 40px);
grid-lanes-direction: column fill-reverse track-reverse;
reading-flow: grid-lanes-flow;
width: 160px;
height: 260px;
}
.columns > 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: p, q, s, n, t, r, o
Second reading row: h, j, l, i, m, k
Third reading row: g, e, d, c, f, b, a
-->
<div class="test-case"
data-expect="p,q,s,n,t,r,o,h,j,l,i,m,k,g,e,d,c,f,b,a">
<div class="lanes columns">
<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>
<script>
runFocusTestCases();
</script>