gecko/layout/reftests/css-invalid/input/input-email-invalid.html

14 lines
331 B
HTML

<!DOCTYPE html>
<html>
<!-- Test: if input isn't valid nor barred from constraint validation,
it should be affected by :invalid pseudo-class. -->
<style>
input { background-color: red; }
input:invalid { background-color: green; }
</style>
<body>
<input type='email' value='foo'>
</body>
</html>