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

13 lines
443 B
HTML

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