gecko/layout/reftests/css-invalid/select/select-invalid.html

13 lines
418 B
HTML
Raw Normal View History

<!DOCTYPE html>
<html class="reftest-wait">
<!-- Test: if select has a custom error, it should be affected by :invalid
pseudo-class. -->
<style>
select { background-color: red; }
select:invalid { background-color: green; }
</style>
<body onload="document.getElementById('s').setCustomValidity('foo'); document.documentElement.className='';">
<select id='s'></select>
</body>
</html>