Re: [csswg-drafts] Ability to style <details>/<summary> to be open (e.g. for print styles)

I'm thinking about whether it is possible to describe the behavior of `<details>`/`<summary>` in CSS rather than having them being HTML rendering magic.

The most straightforward approach might be defining a new pseudo-element (something like `::details-content`) for wrapping content in `<details>` other than the effective `<summary>`. But generally, browser vendors would be against adding this kind of pseudo-element wrapper, because they can bring lots of unnecessary complexity.

Maybe we can have that pseudo-element, but only allow `display` property with `none` or `contents`. This should make it easy to implement, I suppose.

-- 
GitHub Notification of comment by upsuper
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2084#issuecomment-350006666 using your GitHub account

Received on Thursday, 7 December 2017 15:45:56 UTC