gecko/layout/reftests/css-valid/select/select-dyn-disabled.html

13 lines
443 B
HTML

<!DOCTYPE html>
<html class="reftest-wait">
<!-- Test: if select is disabled, it is barred from constraint validation
and should not be affected by :valid pseudo-class. -->
<style>
select { background-color: green; }
select:valid { background-color: red; }
</style>
<body onload="document.getElementById('s').disabled='true'; document.documentElement.className='';">
<select id='s'></select>
</body>
</html>