radio-double-activate-pseudo.html (874B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <link rel="author" title="Joey Arhar" href="mailto:jarhar@chromium.org"> 4 5 <script src="/resources/testharness.js"></script> 6 <script src="/resources/testharnessreport.js"></script> 7 <script src="/resources/testdriver.js"></script> 8 <script src="/resources/testdriver-actions.js"></script> 9 <script src="/resources/testdriver-vendor.js"></script> 10 11 <!-- This behavior is not explicitly specified. --> 12 13 <input type=radio id=radioinput> 14 15 <script> 16 promise_test(async () => { 17 await test_driver.send_keys(radioinput, ' '); 18 await test_driver.send_keys(radioinput, ' '); 19 assert_equals(document.querySelector(':active'), null, 20 `If the radio doesn't have the :active pseudo selector, nothing else should either.`); 21 }, `<input type=radio> shouldn't have the :active pseudo element after pressing the spacebar twice.`); 22 </script>