gecko/layout/reftests/css-invalid/select/select-disabled-fieldset-2.html
Mounir Lamouri 9532ebf9c3 Bug 557087 (2/6) - Make the content aware of the new disabled state rule. r+a=sicking
--HG--
extra : rebase_source : 66ef476d46872edcc8ea8cd6488cd14d24ce8446
2010-09-18 23:33:16 +02:00

26 lines
788 B
HTML

<!DOCTYPE html>
<html class="reftest-wait">
<!-- Test: if select has a disabled fieldset ancestor, it is barred from
constraint validation and should not be affected by :invalid
pseudo-class. -->
<link rel='stylesheet' type='text/css' href='style.css'>
<script>
function onloadHandler()
{
var e = document.getElementById('s');
e.setCustomValidity('foo');
var fieldsets = document.getElementsByTagName("fieldset");
fieldsets[1].disabled = true;
fieldsets[0].disabled = false;
document.documentElement.className='';
}
</script>
<body onload="onloadHandler();">
<fieldset disabled>
<fieldset>
<select class='notinvalid' id='s'></select>
</fieldset>
</fieldset>
</body>
</html>