W3C home > Mailing lists > Public > www-style@w3.org > September 2014

[selectors] :nth-child(An+B of selector) with a pseudo element

From: Benjamin Poulain <bpoulain@apple.com>
Date: Mon, 15 Sep 2014 20:19:50 -0700
Message-id: <9A62FE76-CD4B-4245-8FE4-AB79AEEAA590@apple.com>
To: www-style list <www-style@w3.org>

Currently, :nth-child() does not restrict pseudo-elements like :not() does. Shouldn’t it have the same restrictions?

For example:
    :nth-child(2n of ::after)
    :nth-child(2n+1 of ::first-letter)
do not make much sense.

Received on Tuesday, 16 September 2014 03:22:10 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:46 UTC