mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 13:21:05 +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
13 lines
244 B
HTML
13 lines
244 B
HTML
<!DOCTYPE html>
|
|
<!-- Any copyright is dedicated to the Public Domain.
|
|
- http://creativecommons.org/publicdomain/zero/1.0/ -->
|
|
|
|
<html>
|
|
<body>
|
|
<div>
|
|
<div>Summary</div>
|
|
<p>This is the details.</p>
|
|
</div>
|
|
</body>
|
|
</html>
|