blob: 44a4125f8ee84dfa9fe92979afc342442eaf497b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
<!DOCTYPE html>
<html class=reftest-wait>
<style>
.x input:required { color: red; }
</style>
<p class=x><span><input required value=hello></input></span></p>
<script>
addEventListener("MozReftestInvalidate", function() {
document.querySelector("p").classList.toggle("x");
document.querySelector("input").required = false;
document.documentElement.className = "";
}, false);
</script>
|