gecko/layout/reftests/css-valid/fieldset/fieldset-invalid.html
Mina Almasry a87af7052e Bug 717181 - Make <fieldset> invalid if they contain an invalid form control; r=mounir
This adds a CSS psuedo class to fieldset that acts much in the same way as the one
on form.
2013-08-16 20:32:47 -04:00

14 lines
407 B
HTML

<!DOCTYPE html>
<html class="reftest-wait">
<!-- Test: fieldset undergoes constraint validation.
It should be affected by :invalid pseudo-class. -->
<style>
fieldset:invalid { display: none; }
</style>
<body onload="document.getElementById('f').setCustomValidity('foo'); document.documentElement.className='';">
<fieldset>
<input id='f'>
</fieldset>
</body>
</html>