gecko/layout/reftests/css-valid/input/input-required-valid.html

14 lines
324 B
HTML

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