Re: Two proposals: 1. Implement a new pseudo-class selector ::between, 2. Allow pseudo-class selectors to be recursive

06.03.2018, 07:49, "zjz@zjz.name" <zjz@zjz.name>:
> So I propose to introduce a new pesudo-element ::between. It generates a
> pseudo element as if it was between ::before and ::after of an actual
> element, and all the actual children of the element act as if they were
> "moved down" to become the children of ::between. When it applies to the
> <article> in Example 1, it serves the stylistic purpose as the <div>
> does. With ::between, we can largely avoid non-semantical code.

See a related discussion in the csswg-drafts GitHub repository:

    https://github.com/w3c/csswg-drafts/issues/588

The discussion (started on 2016-10-11, latest comment added on 2018-01-19) contains information about several possible approaches to generating virtual containers via CSS.

Received on Wednesday, 7 March 2018 00:05:04 UTC