gecko/layout/reftests/css-valid/input/input-maxlength-invalid.html

14 lines
438 B
HTML

<!DOCTYPE html>
<html class="reftest-wait">
<!-- Test: if input isn't valid nor barred from constraint validation,
it should not be affected by :valid pseudo-class. -->
<style>
input { background-color: green; }
input:valid { background-color: red; }
</style>
<body onload="document.getElementById('i').value='foo'; document.documentElement.className='';">
<input maxlength="2" id='i'>
</body>
</html>