gecko/layout/reftests/css-valid/button/button-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

24 lines
699 B
HTML

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