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

13 lines
321 B
HTML
Raw Normal View History

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