blob: 36ca7afe14116389ba960c0e30ec3a71d57ed55e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
<!doctype html>
<title>Support for the :user-valid pseudo-class</title>
<link rel="help" href="https://drafts.csswg.org/selectors/#user-pseudos">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<input>
<script>
test(() => {
const input = document.querySelector('input');
assert_true(input.validity.valid);
// The selector can't match because no interaction has happened.
assert_false(input.matches(':user-valid'));
}, ':user-valid selector should be supported');
</script>
|