diff options
Diffstat (limited to 'testing/web-platform/tests/html/interaction/focus/processing-model/legend.html')
-rw-r--r-- | testing/web-platform/tests/html/interaction/focus/processing-model/legend.html | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/testing/web-platform/tests/html/interaction/focus/processing-model/legend.html b/testing/web-platform/tests/html/interaction/focus/processing-model/legend.html new file mode 100644 index 0000000000..b53839374d --- /dev/null +++ b/testing/web-platform/tests/html/interaction/focus/processing-model/legend.html @@ -0,0 +1,20 @@ +<!doctype html> +<title>legend</title> +<script src=/resources/testharness.js></script> +<script src=/resources/testharnessreport.js></script> +<script> + const t = async_test(); +</script> +<fieldset> + <legend onfocus="t.unreached_func('legend was focused')()"> + legend + <input onfocus="t.unreached_func('input in legend was focused')();"> + </legend> + <input onfocus="t.unreached_func('input after legend was focused')();"> +</fieldset> +<script> + document.querySelector('legend').focus(); + t.step_timeout(() => { + t.done(); + }, 500); +</script> |