mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-23 10:15:41 +00:00
7379c19c84
Per html spec, the disclosure triangle can be generated via "display: list-item", I removed the code to generate the triangle in SummaryFrame::SetInitialChildList(). That is, when a web page set "display: block" to the summary, the triangle will disappear, too. Now SummaryFrame does nothing and is going to be removed in Part 2. Also summary element should not increment the counter as hinted as "counter-increment: list-item 0" in the spec. Hence the change in nsBlockFrame::RenumberListsFor(). The rendering hint in html spec: https://html.spec.whatwg.org/multipage/rendering.html#the-details-and-summary-elements MozReview-Commit-ID: DELGYFe3zGX --HG-- rename : layout/reftests/details-summary/open-summary-block-style.html => layout/reftests/details-summary/open-summary-block-style-ref.html extra : rebase_source : 4bd5493fb6a1108eea31aef1d89f563f781b753f
14 lines
342 B
HTML
14 lines
342 B
HTML
<!DOCTYPE html>
|
|
<!-- Any copyright is dedicated to the Public Domain.
|
|
- http://creativecommons.org/publicdomain/zero/1.0/ -->
|
|
|
|
<html>
|
|
<body>
|
|
<details open>
|
|
<!-- Test the disclosure triangle is gone. -->
|
|
<summary style="display: block;">Summary</summary>
|
|
<p>This is the details.</p>
|
|
</details>
|
|
</body>
|
|
</html>
|