mirror of
https://github.com/servo/servo
synced 2026-05-12 01:46:28 +02:00
15 lines
539 B
HTML
15 lines
539 B
HTML
<!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>
|