gecko/layout/reftests/css-ui-invalid/textarea/textarea-dyn-not-readonly-changed.html

12 lines
516 B
HTML

<!DOCTYPE html>
<html class="reftest-wait">
<!-- Test: if textarea is no longer readonly and has it's value changed,
it's affected by :-moz-ui-invalid pseudo-class. -->
<link rel='stylesheet' type='text/css' href='style.css'>
<body onload="document.getElementById('t').removeAttribute('readonly');
document.getElementById('t').value = '';
document.documentElement.className='';">
<textarea class='invalid' id='t' readonly required></textarea>
</body>
</html>