mirror of
https://github.com/servo/servo.git
synced 2025-08-27 16:18:21 +01:00
Update web-platform-tests to revision e03a9b1341ae9bdb1e4fa03765257b84d26fe2f1
This commit is contained in:
parent
7d05c76d18
commit
20a833eb75
5167 changed files with 4696 additions and 297370 deletions
|
@ -0,0 +1,38 @@
|
|||
<!DOCTYPE html>
|
||||
<title>Reference for WebVTT rendering, ::cue-region, font properties</title>
|
||||
<style>
|
||||
html { overflow:hidden }
|
||||
body { margin:0 }
|
||||
.video {
|
||||
display: inline-block;
|
||||
width: 320px;
|
||||
height: 180px;
|
||||
position: relative;
|
||||
font-size: 9px;
|
||||
}
|
||||
.region-cue {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
text-align: center;
|
||||
}
|
||||
.region-cue > span {
|
||||
font: italic small-caps bold 9px/18px sans-serif;
|
||||
background: rgba(0,0,0,0.8);
|
||||
color: white;
|
||||
}
|
||||
.cue {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
text-align: center;
|
||||
}
|
||||
.cue > span {
|
||||
font-family: Ahem, sans-serif;
|
||||
background: rgba(0,0,0,0.8);
|
||||
color: white;
|
||||
}
|
||||
</style>
|
||||
<div class="video"><span class="region-cue"><span>This is a test subtitle</span></span><span class="cue"><span>This is a test subtitle</span></span></div>
|
|
@ -0,0 +1,30 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="reftest-wait">
|
||||
<title>WebVTT rendering, ::cue-region, font properties</title>
|
||||
<link rel="match" href="font_properties-ref.html">
|
||||
<style>
|
||||
html { overflow:hidden }
|
||||
body { margin:0 }
|
||||
::cue-region {
|
||||
font-style: italic;
|
||||
font-variant: small-caps;
|
||||
font-weight: bold;
|
||||
font-size: 9px;
|
||||
line-height: 18px;
|
||||
font-family: sans-serif !important;
|
||||
}
|
||||
::cue {
|
||||
font-family: Ahem, sans-serif;
|
||||
color: white;
|
||||
}
|
||||
</style>
|
||||
<script src="/common/reftest-wait.js"></script>
|
||||
<video width="320" height="180" 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/test.vtt">
|
||||
<script>
|
||||
document.getElementsByTagName('track')[0].track.mode = 'showing';
|
||||
</script>
|
||||
</video>
|
||||
</html>
|
|
@ -0,0 +1,13 @@
|
|||
WEBVTT
|
||||
|
||||
REGION
|
||||
id:1
|
||||
lines:1
|
||||
regionanchor:0%,0%
|
||||
viewportanchor:0%,0%
|
||||
|
||||
00:00:00.000 --> 00:00:05.000
|
||||
This is a test subtitle
|
||||
|
||||
00:00:00.000 --> 00:00:05.000 region:1
|
||||
This is a test subtitle
|
|
@ -0,0 +1,38 @@
|
|||
<!DOCTYPE html>
|
||||
<title>Reference for WebVTT rendering, ::cue-region(), font properties</title>
|
||||
<style>
|
||||
html { overflow:hidden }
|
||||
body { margin:0 }
|
||||
.video {
|
||||
display: inline-block;
|
||||
width: 320px;
|
||||
height: 180px;
|
||||
position: relative;
|
||||
font-size: 9px;
|
||||
}
|
||||
.region1-cue {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
text-align: center;
|
||||
}
|
||||
.region1-cue > span {
|
||||
font: italic small-caps bold 9px/18px sans-serif;
|
||||
background: rgba(0,0,0,0.8);
|
||||
color: white;
|
||||
}
|
||||
.region2-cue {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
text-align: center;
|
||||
}
|
||||
.region2-cue > span {
|
||||
font-family: Ahem, sans-serif;
|
||||
background: rgba(0,0,0,0.8);
|
||||
color: white;
|
||||
}
|
||||
</style>
|
||||
<div class="video"><span class="region1-cue"><span>This is a test subtitle</span></span><span class="region2-cue"><span>This is a test subtitle</span></span></div>
|
|
@ -0,0 +1,30 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="reftest-wait">
|
||||
<title>WebVTT rendering, ::cue-region(), font properties</title>
|
||||
<link rel="match" href="font_properties-ref.html">
|
||||
<style>
|
||||
html { overflow:hidden }
|
||||
body { margin:0 }
|
||||
::cue-region(#\31) {
|
||||
font-style: italic;
|
||||
font-variant: small-caps;
|
||||
font-weight: bold;
|
||||
font-size: 9px;
|
||||
line-height: 18px;
|
||||
font-family: sans-serif !important;
|
||||
}
|
||||
::cue-region(#\32) {
|
||||
font-family: Ahem, sans-serif;
|
||||
color: white;
|
||||
}
|
||||
</style>
|
||||
<script src="/common/reftest-wait.js"></script>
|
||||
<video width="320" height="180" 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/test.vtt">
|
||||
<script>
|
||||
document.getElementsByTagName('track')[0].track.mode = 'showing';
|
||||
</script>
|
||||
</video>
|
||||
</html>
|
|
@ -0,0 +1,17 @@
|
|||
WEBVTT
|
||||
|
||||
REGION
|
||||
id:1
|
||||
lines:1
|
||||
regionanchor:0%,0%
|
||||
viewportanchor:0%,0%
|
||||
|
||||
REGION
|
||||
id:2
|
||||
lines:1
|
||||
|
||||
00:00:00.000 --> 00:00:05.000 region:1
|
||||
This is a test subtitle
|
||||
|
||||
00:00:00.000 --> 00:00:05.000 region:2
|
||||
This is a test subtitle
|
Loading…
Add table
Add a link
Reference in a new issue