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

13 lines
482 B
HTML

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