<style>
p {
margin: 0;
}
video {
height: 100px;
}
</style>
<p>This is a link <a id="start" href="a">start of Test</a>.</p>
<video id="v1" controls tabindex="0" src="../../media/content/test.mp4"></video>
<p>This is a link <a id="i2" href="a">i2</a>.</p>
<video id="v3" controls src="../../media/content/test.mp4"></video>
<p>This is a link <a id="i4" href="a">i4</a>.</p>
<video id="v5" tabindex="0" src="../../media/content/test.mp4"></video>
<p>This is a link <a id="i6" href="a">i6</a>.</p>
<audio id="a7" controls src="../../media/content/test.wav"></audio>
<p>This is a link <a id="i8" href="a">i8</a>.</p>
<!-- 'a9' is not focussable: no controls attribute as well no tab index.
Key down from 'i8' should go to 'end'. -->
<audio id="a9" src="../../media/content/test.mp4"></audio>
<p>This is a link <a id="end" href="a">End of Test</a>.</p>
<p>This tests that a media elements ie: <code><Audio></code> or <code><video></code>, without tabindex are able to be reached through keyboard access</p>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script src="resources/snav-testharness.js"></script>
<script>
var resultMap = [
["Up", "start"],
["Down", "v1"],
["Down", "i2"],
["Down", "v3"],
["Down", "i4"],
["Down", "v5"],
["Down", "i6"],
["Down", "a7"],
["Down", "i8"],
["Down", "end"],
["Up", "i8"],
["Down", "end"],
];
// Start at a known place.
document.getElementById("start").focus();
snav.assertFocusMoves(resultMap);
</script>