3 <title>Test visibiblity of controls when focusing of
<video
></title>
4 <script src=video-test.js
></script>
5 <script src=media-controls.js
></script>
7 Test that video controls re-appear when the media (
<video
>) element is focused.
9 <video controls autoplay
src=
"content/test.ogv"></video>
12 var video
= document
.querySelector("video");
14 video
.addEventListener("playing", function()
16 runAfterHideMediaControlsTimerFired(function()
18 controls
= mediaControlsButton(video
, "panel");
20 testExpected("getComputedStyle(controls).opacity", 0);
23 testExpected("getComputedStyle(controls).opacity", 1);
25 // We fade out when focus is lost, so the opacity is still 1
27 testExpected("getComputedStyle(controls).opacity", 1);