gecko/layout/reftests/css-invalid/select/select-disabled-fieldset-1.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

23 lines
650 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');
document.documentElement.className='';
}
</script>
<body onload="onLoadHandler();">
<fieldset disabled>
<fieldset>
<select class='notinvalid' id='s'></select>
</fieldset>
</fieldset>
</body>
</html>