Skip to content

Commit 6ab440d

Browse files
committed
future
1 parent b1379f4 commit 6ab440d

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

time/future.html

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8" />
5+
<title>The :future pseudo-class</title>
6+
<link rel="stylesheet" href="styles.css" />
7+
<style>
8+
* {
9+
box-sizing: border-box;
10+
}
11+
12+
video {
13+
max-width: 300px;
14+
}
15+
</style>
16+
17+
<style class="editable">
18+
19+
:past(p, span) {
20+
background-color: green;
21+
}
22+
</style>
23+
</head>
24+
25+
<body>
26+
<section class="preview">
27+
<video controls preload="metadata">
28+
<source src="video.mp4" type="video/mp4" />
29+
<source src="video.webm" type="video/webm" />
30+
<track label="English" kind="subtitles" srclang="en" src="subtitles.vtt" default>
31+
</video>
32+
</section>
33+
34+
<textarea class="playable playable-css" style="height: 200px;">
35+
:future(p, span) {
36+
background-color: green;
37+
}
38+
</textarea>
39+
40+
<textarea class="playable playable-html" style="height: 150px;">
41+
<video controls preload="metadata">
42+
<source src="video.mp4" type="video/mp4" />
43+
<source src="video.webm" type="video/webm" />
44+
<track label="English" kind="subtitles" srclang="en" src="subtitles.vtt" default>
45+
</video>
46+
</textarea>
47+
48+
<div class="playable-buttons">
49+
<input id="reset" type="button" value="Reset" />
50+
</div>
51+
</body>
52+
<script src="../playable.js"></script>
53+
</html>

0 commit comments

Comments
 (0)