Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/selectors/user-invalid-form-submission-invalidation.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html class=reftest-wait>
<link rel=author href="mailto:jarhar@chromium.org">
<link rel=match href="user-invalid-form-submission-invalidation-ref.html">
<style>
input:user-invalid {
border: 3px solid red;
}
input:user-valid {
border: 3px solid green;
}
</style>
<form>
<input required>
<input required>
<input>
<button>submit</button>
</form>
<script>
requestAnimationFrame(() => {
document.querySelector('button').click();
document.documentElement.classList.remove('reftest-wait');
});
</script>