Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Gecko Bug 1305732] part6 : modify wpts. #17713

Merged
merged 1 commit into from
Jul 24, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,22 @@
width: 320px;
height: 180px;
position: relative;
font-size: 9px;
}
.cue {
position: absolute;
bottom: 0;
right: 0px;
width: 64px;
text-align: center;
font: 20px/1 Ahem;
}
.cue > span {
font-family: Ahem, sans-serif;
.cueText {
background: rgba(0,0,0,0.8);
color: green;
}
</style>
<div class=video><span class=cue><span>Awesome!!!</span></span></div>
<div class=video>
<div class="cue">
<span class="cueText">foo</span>
</div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
html { overflow:hidden }
body { margin:0 }
::cue {
font-family: Ahem, sans-serif;
color: green
font: 20px/1 Ahem;
color: green;
}
</style>
<script src="/common/reftest-wait.js"></script>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<!DOCTYPE html>
<title>Reference for WebVTT rendering, align:center, position greater than 50%, size greater than maximum size</title>
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style>
html { overflow:hidden }
body { margin:0 }
.video {
display: inline-block;
width: 320px;
height: 180px;
position: relative;
}
.cue {
position: absolute;
bottom: 0px;
right: 0px;
width: 64px;
text-align: center;
font: 20px/1 Ahem;
}
.cueText {
background: rgba(0,0,0,0.8);
color: green;
}
</style>
<div class=video>
<div class="cue">
<div><span class="cueText">Awe</span></div>
<div><span class="cueText">som</span></div>
<div><span class="cueText">e!!</span></div>
<div><span class="cueText">!</span></div>
</div>
</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<!DOCTYPE html>
<html class="reftest-wait">
<title>WebVTT rendering, align:center, position greater than 50%, size greater than maximum size</title>
<link rel="match" href="align_center_position_gt_50_size_gt_maximum_size-ref.html">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style>
html { overflow:hidden }
body { margin:0 }
::cue {
font: 20px/1 Ahem;
color: green;
}
</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/align_center_position_gt_50_size_gt_maximum_size.vtt">
</video>
<script>
document.getElementsByTagName('track')[0].track.mode = 'showing';
</script>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,23 @@
width: 320px;
height: 180px;
position: relative;
font-size: 9px;
}
.cue {
position: absolute;
bottom: 0;
left: 0px;
right: 0;
width: 64px;
text-align: center
text-align: center;
font: 20px/1 Ahem;
}
.cue > span {
font-family: Ahem, sans-serif;
.cueText {
background: rgba(0,0,0,0.8);
color: green;
}
</style>
<div class=video><span class=cue><span>Awesome!!!</span></span></div>
<div class=video>
<div class="cue">
<span class="cueText">foo</span>
</div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
html { overflow:hidden }
body { margin:0 }
::cue {
font-family: Ahem, sans-serif;
color: green
font: 20px/1 Ahem;
color: green;
}
</style>
<script src="/common/reftest-wait.js"></script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,25 @@
width: 320px;
height: 180px;
position: relative;
font-size: 9px;
}
.cue {
position: absolute;
bottom: 0;
bottom: 0px;
left: 0px;
right: 0;
width: 64px;
text-align: center;
font: 20px/1 Ahem;
}
.cue > span {
font-family: Ahem, sans-serif;
.cueText {
background: rgba(0,0,0,0.8);
color: green;
}
</style>
<div class=video><span class=cue><span>Awesome!!!</span></span></div>
<div class=video>
<div class="cue">
<div><span class="cueText">Awe</span></div>
<div><span class="cueText">som</span></div>
<div><span class="cueText">e!!</span></div>
<div><span class="cueText">!</span></div>
</div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
html { overflow:hidden }
body { margin:0 }
::cue {
font-family: Ahem, sans-serif;
color: green
font: 20px/1 Ahem;
color: green;
}
</style>
<script src="/common/reftest-wait.js"></script>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
WEBVTT

00:00:00.000 --> 00:00:05.000 align:center position:90%
Awesome!!!
foo
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
WEBVTT

00:00:00.000 --> 00:00:05.000 align:center position:90% size:75%
Awesome!!!
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
WEBVTT

00:00:00.000 --> 00:00:05.000 align:center position:10%
Awesome!!!
foo