Skip to content

Commit 42a27a1

Browse files
authored
Rendering: clarify details's internal shadow tree
See https://bugzilla.mozilla.org/show_bug.cgi?id=1460158 for context.
1 parent 4fe2d53 commit 42a27a1

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

source

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -113633,16 +113633,19 @@ details[open] > summary {
113633113633
list-style-type: disclosure-open;
113634113634
}</code></pre>
113635113635

113636-
<p>The <code>details</code> element is expected to render as a <span>block box</span>. The
113637-
element's shadow tree is expected to take the element's first <code>summary</code> element child,
113638-
if any, and place it in a first <span>block box</span> container, and then take the element's
113639-
remaining descendants, if any, and place them in a second <span>block box</span> container.</p>
113640-
113641-
<p>The first container is expected to allow the user to request the details be shown or
113642-
hidden.</p>
113643-
113644-
<p>The second container is expected to be removed from the rendering when the <code>details</code>
113645-
element does not have an <code data-x="attr-details-open">open</code> attribute.</p>
113636+
<p>The <code>details</code> element is expected to render as a <span>block box</span>. The element
113637+
is also expected to have an internal <span>shadow tree</span> with two <span
113638+
data-x="concept-slot">slots</span>, both rendered as a <span>block box</span>. The first <span
113639+
data-x="concept-slot">slot</span> is expected to take the <code>details</code> element's first
113640+
<code>summary</code> element child, if any. The second <span data-x="concept-slot">slot</span> is
113641+
expected to take the <code>details</code> element's remaining descendants, if any.</p>
113642+
113643+
<p>The first <span data-x="concept-slot">slot</span> is expected to allow the user to request the
113644+
details be shown or hidden.</p>
113645+
113646+
<p>The second <span data-x="concept-slot">slot</span> is expected to be removed from the rendering
113647+
when the <code>details</code> element does not have an <code
113648+
data-x="attr-details-open">open</code> attribute.</p>
113646113649

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

0 commit comments

Comments
 (0)