From af0f27ed7d692d0707d206573d9b82666cc10296 Mon Sep 17 00:00:00 2001 From: Anne van Kesteren Date: Mon, 1 Jul 2019 14:17:41 +0200 Subject: [PATCH] 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. --- source | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/source b/source index 264146a3812..6f6a73c0c61 100644 --- a/source +++ b/source @@ -115019,16 +115019,16 @@ details[open] > summary {

The details element is expected to render as a block box. The element is also expected to have an internal shadow tree with two slots, both rendered as a block box. The first slot is expected to take the details element's first - summary element child, if any. The second slot is - expected to take the details element's remaining descendants, if any.

+ data-x="concept-slot">slots. The first slot is expected + to take the details element's first summary element child, if any. The + second slot is expected to take the details + element's remaining descendants, if any.

-

The first slot is expected to allow the user to request the - details be shown or hidden.

+

The details element's first summary element child, if any, is + expected to allow the user to request the details be shown or hidden.

-

The second slot is expected to be removed from the rendering - when the details element does not have an The details element's second slot is expected + to be removed from the rendering when the details element does not have an open attribute.