input-radio-required-invalid-changed.html 704 B

1234567891011121314151617
  1. <!DOCTYPE html>
  2. <html class="reftest-wait">
  3. <!-- Test: if input isn't valid nor barred from constraint validation,
  4. and its checkedness has changed,
  5. it should be affected by :-moz-ui-invalid pseudo-class. -->
  6. <link rel='stylesheet' type='text/css' href='style.css'>
  7. <body onload="document.getElementById('i').checked = false;
  8. if (!document.getElementById('i').matches(':-moz-ui-invalid')) {
  9. document.body.textContent='FAIL';
  10. } else {
  11. document.body.textContent='SUCCESS';
  12. }
  13. document.documentElement.className='';">
  14. <input id='i' type='radio' required>
  15. </body>
  16. </html>