summaryrefslogtreecommitdiffstats
path: root/layout/reftests/bugs/1401992.html
blob: f48f563a01a83139648567ddd5d99a398d161800 (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
<!doctype html>
<html>
<head>
<style>
video {
  width: 100px;
  height: 100px;
  border: 10px solid purple;
}
fieldset {
  border: 10px solid blue;
}
fieldset:valid {
  border-color: green;
}
fieldset:invalid {
  border-color: red;
}
</style>
<script>
window.onload = function() {
  let v = document.getElementById("x");
  v.currentTime = -128;
  v.controls = !v.controls;
}
</script>
</head>
<body>
<!-- Native anonymous content shouldn't affect fieldset validity -->
<fieldset><video id="x" style="visibility:hidden"></video></fieldset>
</body>
</html>