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

13 lines
453 B
HTML

<!DOCTYPE html>
<html class="reftest-wait">
<!-- Test: if input is not disabled, 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('disabled'); document.documentElement.className='';">
<input id='i' disabled>
</body>
</html>