gecko/layout/reftests/css-valid/input/input-dyn-not-readonly.html

13 lines
459 B
HTML

<!DOCTYPE html>
<html class="reftest-wait">
<!-- Test: if input is no longer readonly, it is candidate for constraint
validation and should be affected by :valid pseudo-class. -->
<style>
input { background-color: red; }
input:valid { background-color: green; }
</style>
<body onload="document.getElementById('i').removeAttribute('readonly'); document.documentElement.className='';">
<input id='i' readonly>
</body>
</html>