button-invalid.html 386 B

12345678910
  1. <!DOCTYPE html>
  2. <html class="reftest-wait">
  3. <!-- Test: if button has a custom error, it should be affected by :invalid
  4. pseudo-class. -->
  5. <link rel='stylesheet' type='text/css' href='style.css'>
  6. <body onload="document.getElementById('b').setCustomValidity('foo'); document.documentElement.className='';">
  7. <button class='invalid' id='b'></button>
  8. </body>
  9. </html>