Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(571)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/html/summary-invisible-click.html

Issue 2644693003: SUMMARY element: click() for invisible SUMMARY should toggle DETAILS element. (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/HTMLSummaryElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script>
4
5 <details style="display:none">
6 <summary>Click me</summary>
7 Blah, blah, ...
8 </detail>
9
10 <script>
11 test(() => {
12 const summary = document.querySelector('summary');
13 const details = document.querySelector('details');
14 assert_false(details.open);
15 summary.click();
16 assert_true(details.open);
17 summary.click();
18 assert_false(details.open);
19 }, 'click() on hidden SUMMARY should toggle DETAILS.');
20 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/HTMLSummaryElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698