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

14 lines
338 B
HTML
Raw Normal View History

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