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

14 lines
342 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 type='url' value='http://mozilla.org/'>
</body>
</html>