gecko/layout/reftests/css-invalid/textarea/textarea-required-valid.html

14 lines
346 B
HTML
Raw Normal View History

<!DOCTYPE html>
<html>
<!-- Test: if textarea is valid and not barred from constraint validation,
it should not be affected by :invalid pseudo-class. -->
<style>
textarea { background-color: green; }
textarea:invalid { background-color: red; }
</style>
<body>
<textarea required>foo</textarea>
</body>
</html>