| Index: third_party/WebKit/LayoutTests/fast/html/summary-invisible-click.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/html/summary-invisible-click.html b/third_party/WebKit/LayoutTests/fast/html/summary-invisible-click.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..3889288bfdf293f704c631335aad983a713cc0fe
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/fast/html/summary-invisible-click.html
|
| @@ -0,0 +1,20 @@
|
| +<!DOCTYPE html>
|
| +<script src="../../resources/testharness.js"></script>
|
| +<script src="../../resources/testharnessreport.js"></script>
|
| +
|
| +<details style="display:none">
|
| +<summary>Click me</summary>
|
| +Blah, blah, ...
|
| +</detail>
|
| +
|
| +<script>
|
| +test(() => {
|
| + const summary = document.querySelector('summary');
|
| + const details = document.querySelector('details');
|
| + assert_false(details.open);
|
| + summary.click();
|
| + assert_true(details.open);
|
| + summary.click();
|
| + assert_false(details.open);
|
| +}, 'click() on hidden SUMMARY should toggle DETAILS.');
|
| +</script>
|
|
|