summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/webvtt/rendering/cues-with-video/processing-model/selectors/cue/inherit_values_from_media_element.html
blob: b93ac56ae34c99739ef8004cbbdb437160bde106 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<!DOCTYPE html>
<html>
<title>WebVTT rendering, ::cue, css properties with value inherit should inherit from media element</title>
<link rel="match" href="inherit_values_from_media_element-ref.html">
<style>
video {
    color: #f0f;
    white-space: pre-wrap;
    font: italic small-caps bold 36px/72px sans-serif;
    text-decoration: overline underline line-through;
    text-shadow: 0px 0px 5px #0f0;
    background: #0f0 url('../../media/background.gif') repeat-x top left;
    outline: solid #00f 2px;
}
::cue {
    white-space: inherit;
    font: inherit;
    color: inherit;
    text-decoration: inherit;
    text-shadow: inherit;
    background: inherit;
    outline: inherit;
}
</style>
<script src="/common/reftest-wait.js"></script>
<video width="1280" height="720" autoplay onplaying="this.onplaying = null; this.pause(); takeScreenshot();">
    <source src="/media/white.webm" type="video/webm">
    <source src="/media/white.mp4" type="video/mp4">
    <track src="../../support/white-spaces_long.vtt">
    <script>
    document.getElementsByTagName('track')[0].track.mode = 'showing';
    </script>
</video>
</html>