[Modern Media Controls] Turn media/modern-media-controls/ios-inline-media-controls...
[WebKit-https.git] / LayoutTests / media / video-restricted-invisible-autoplay-not-allowed-expected.txt
1
2 Test that "invisible autoplay not allowed restriction" pauses media when scrolled out of view.
3
4 ** setting video.src
5
6 EVENT(play)
7 RUN(video.style.display = "none")
8 EVENT(pause)
9 RUN(video.style.removeProperty("display"))
10 EVENT(play)
11 RUN(video.style.visibility = "hidden")
12 EVENT(pause)
13 RUN(video.style.removeProperty("visibility"))
14 EVENT(play)
15 RUN(document.documentElement.style.height = window.innerHeight + 20 + video.offsetHeight)
16 RUN(window.scrollBy(0, 20 + video.offsetHeight))
17 EVENT(pause)
18 RUN(window.scrollTo(0, 0))
19 EVENT(play)
20 END OF TEST
21