gecko-dev/layout/generic/crashtests/details-display-none-summary-1.html
Ting-Yu Lin 6276d59933 Bug 1245424 Part 1 - Fix assert for a display:none summary on debug build. r=bz
If the main summary element has 'display: none' style, it won't
generates a summary frame as the first child of the details.

However, if a details element have two summaries and the first summary
has 'display: none', the second summary still generates a SummaryFrame
event if it isn't the main summary. So instead of checking on the
SummaryFrame as before, I check the content tree for the main summary by
using the idea in bug 1245424 comment 8. Another reason might be the
potential removal of SummaryFrame in bug 1258657.

MozReview-Commit-ID: H0evZ17zj5k

--HG--
extra : rebase_source : 1aad3ad1d31dc277771013f92eace5cefa7d6112
2016-03-24 15:05:29 +08:00

12 lines
270 B
HTML

<!DOCTYPE html>
<!-- Any copyright is dedicated to the Public Domain.
- http://creativecommons.org/publicdomain/zero/1.0/ -->
<html>
<body>
<details open>
<summary style="display: none;">summary (display: none)</summary>
</details>
</body>
</html>