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

I had been planning to propose pseudo-elements for anonymous text boxes, first to the WICG then eventually here. For instance, anonymous block boxes would be generally useful in other cases as an analogue to [HTML’s paragraphs](//html.spec.whatwg.org/dev/dom.html#paragraph), e.g., anonymous-block “paragraphs” such as those in `<h1>Example of paragraphs</h1> This is the <em>first</em> paragraph in this example. <p>This is the second.</p> <ul> <li>Third.</li> <li> <p>Fourth.</p> <p>Fifth.</p> </li> </ul>`. Such pseudo-elements, however, might have broad ramifications for rendering performance, so I had planned on courting authors in the WICG before the CSSWG to bolster my case. This is the first mention of this idea I have yet seen elsewhere on the web, so it’s good to have another use case.

Having said all that, it is precisely the broadness in scope of such an anonymous-box selector that may make a `::details-content` pseudo-element more feasible in the short term. I still do plan to make a formal proposal for anonymous-box selectors in general, unless someone else beats me to it.

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

Received on Wednesday, 13 December 2017 04:37:47 UTC