Re: [csswg-drafts] [css-selectors-4] ::text / ::text-node pseudoelement

I’ve also been thinking about pseudo-elements for anonymous text boxes, first to the WICG to be eventually moved here. I talked about it at bit at https://github.com/w3c/csswg-drafts/issues/2084#issuecomment-351280093 – and I’ve have been writing a strawman when I can. There’s barely been any prior mention of this idea before when I searched on the web and in the old mailing lists.

> For instance, a pseudo-element for [anonymous block boxes](//www.w3.org/TR/CSS22/visuren.html#anonymous-block-level) would be generally useful in other cases as an approximate analogue to [HTML’s paragraphs](//html.spec.whatwg.org/dev/dom.html#paragraph), e.g., anonymous-block “paragraphs” such as those in `<h1>First block</h1> This is the <em>second</em> block in this example. <p>This is the third.</p> <ul> <li>Fourth.</li> <li> <p>Fifth.</p> <p>Sixth.</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.

@AmeliaBR wrote about some other use cases in https://github.com/w3c/csswg-drafts/issues/2084#issuecomment-351185353. These include selecting `<details>` text content not within a `<summary>` element and fallback text for things like `<meter>` and `<progress>`.

I don’t know if I should keep working on my WICG strawman if there’s going to be discussion here. I’m certainly still surprised that there’s been barely any discussion about this idea over the past thirty years. 

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

Received on Friday, 19 January 2018 15:20:13 UTC