- From: jonjohnjohnson via GitHub <sysbot+gh@w3.org>
- Date: Sat, 04 Aug 2018 07:00:06 +0000
- To: public-css-archive@w3.org
Big fan of @tabatkins idea...
> details::details-content { display: none; }
> details[open]::details-content { display: contents; }
But @Loirooriol, any idea how you could make this work with your `::contents` proposal? Even if the summary is a child of the details element? I know there are cases where the tree is shuffled around for layout, like `display: run-in`?
As an aside, could we also get a `::details-marker` pseudo element in the spec at the same time? I know webkit already has their own version, but it would be great to more seamlessly style the `summary` (or lack thereof) taking control over the generated contents arrow/marker. Could it be possible to steal the list items marker box `::marker` [pseudo element](https://drafts.csswg.org/css-pseudo-4/#marker-pseudo) for reuse? Since it seems that...
> Fully standards-compliant implementations automatically apply the CSS display: list-item to the `summary` element
But make the `::marker` available even when `details` has no `summary`?
MDN Ref - [::-webkit-details-marker](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details#Customizing_the_disclosure_widget)
--
GitHub Notification of comment by jonjohnjohnson
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2084#issuecomment-410429228 using your GitHub account
Received on Saturday, 4 August 2018 07:00:13 UTC