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

13 lines
466 B
HTML
Raw Normal View History

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