summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/webvtt/rendering/cues-with-video/processing-model/selectors/default_styles/inherit_as_default_value_inherits_values_from_media_element-ref.html
blob: f8d433ae2a55a455ecf7c16e5d8501f1db87222d (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
35
36
37
38
39
40
<!DOCTYPE html>
<title>Reference for WebVTT rendering, only css properties with default value inherit should inherit from media element</title>
<style>
.video {
    position: absolute;
    display: inline-block;
    width: 1280px;
    height: 720px;
    position: relative;
    color: #f0f;
    white-space: pre-line;
    font: italic small-caps bold 36px/72px sans-serif;
    text-shadow: 0px 0px 5px #0f0;
    background: #0f0 url('../../media/background.gif') repeat-x top left;
    outline: solid #00f 2px;
}
.videoWhite {
    position: absolute;
    top: 0;
    left: 160px;
    width: 960px;
    height: 720px;;
    background: #fff;
    z-index: 1;
}
.cue {
    position: absolute;
    bottom: 0;
    left: 30%;
    right: 0;
    width: 40%;
    text-align: center;
    z-index: 2
}
.cue > span {
    background-color: rgba(0,0,0,0.8);
    color: #fff;
}
</style>
<div class="video"><div class="videoWhite"></div><span class="cue"><span>A A  A   A	A		A		A	A   A  A A</span></span></div>