Skip to content

Commit 1076db6

Browse files
authored
Rendering: further details/summary cleanup
As is evident from https://bugs.chromium.org/p/chromium/issues/detail?id=973074 the current description still had too much from the old description and led to some inconsistencies in implementations. This makes it clear the slots have no special styling (by default) and it's the first summary element that is special, not the first slot. Tests: web-platform-tests/wpt#26053.
1 parent c12e4e2 commit 1076db6

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

source

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -114889,16 +114889,16 @@ details[open] > summary {
114889114889

114890114890
<p>The <code>details</code> element is expected to render as a <span>block box</span>. The element
114891114891
is also expected to have an internal <span>shadow tree</span> with two <span
114892-
data-x="concept-slot">slots</span>, both rendered as a <span>block box</span>. The first <span
114893-
data-x="concept-slot">slot</span> is expected to take the <code>details</code> element's first
114894-
<code>summary</code> element child, if any. The second <span data-x="concept-slot">slot</span> is
114895-
expected to take the <code>details</code> element's remaining descendants, if any.</p>
114892+
data-x="concept-slot">slots</span>. The first <span data-x="concept-slot">slot</span> is expected
114893+
to take the <code>details</code> element's first <code>summary</code> element child, if any. The
114894+
second <span data-x="concept-slot">slot</span> is expected to take the <code>details</code>
114895+
element's remaining descendants, if any.</p>
114896114896

114897-
<p>The first <span data-x="concept-slot">slot</span> is expected to allow the user to request the
114898-
details be shown or hidden.</p>
114897+
<p>The <code>details</code> element's first <code>summary</code> element child, if any, is
114898+
expected to allow the user to request the details be shown or hidden.</p>
114899114899

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

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

0 commit comments

Comments
 (0)