Skip to content

Commit

Permalink
Rendering: clarify details's internal shadow tree
Browse files Browse the repository at this point in the history
  • Loading branch information
annevk authored Feb 18, 2019
1 parent 4fe2d53 commit 42a27a1
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -113633,16 +113633,19 @@ details[open] > summary {
list-style-type: disclosure-open;
}</code></pre>

<p>The <code>details</code> element is expected to render as a <span>block box</span>. The
element's shadow tree is expected to take the element's first <code>summary</code> element child,
if any, and place it in a first <span>block box</span> container, and then take the element's
remaining descendants, if any, and place them in a second <span>block box</span> container.</p>

<p>The first container is expected to allow the user to request the details be shown or
hidden.</p>

<p>The second container is expected to be removed from the rendering when the <code>details</code>
element does not have an <code data-x="attr-details-open">open</code> attribute.</p>
<p>The <code>details</code> element is expected to render as a <span>block box</span>. The element
is also expected to have an internal <span>shadow tree</span> with two <span
data-x="concept-slot">slots</span>, both rendered as a <span>block box</span>. The first <span
data-x="concept-slot">slot</span> is expected to take the <code>details</code> element's first
<code>summary</code> element child, if any. The second <span data-x="concept-slot">slot</span> is
expected to take the <code>details</code> element's remaining descendants, if any.</p>

<p>The first <span data-x="concept-slot">slot</span> is expected to allow the user to request the
details be shown or hidden.</p>

<p>The second <span data-x="concept-slot">slot</span> is expected to be removed from the rendering
when the <code>details</code> element does not have an <code
data-x="attr-details-open">open</code> attribute.</p>

<!-- https://mail.gnome.org/archives/usability/2006-June/msg00015.html -->

Expand Down

0 comments on commit 42a27a1

Please sign in to comment.