W3C home > Mailing lists > Public > www-style@w3.org > July 2015

[selectors4] Why is the :only-child pseudo-class not a special case in terms of specificity?

From: James Donnelly <jdonnelly30@gmail.com>
Date: Wed, 15 Jul 2015 05:23:03 +0000
Message-ID: <CABg=B3h+AOeCBLrTm=1bFg3qL6VgJWnp3OV58o_J7viG7ZUuFw@mail.gmail.com>
To: www-style@w3.org
In both the Selectors recommendation and the Selectors4 working draft, the
:only-child pseudo-class documentation states:



> “Same as ‘:first-child:last-child’ or ‘:nth-child(1):nth-last-child(1)’,
but with a lower specificity.”



As much as it would go against the basic specificity implementation,
wouldn’t it be logical for the :only-child selector to have the same
specificity as those combined selectors?



- James
Received on Thursday, 23 July 2015 09:16:37 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:52:18 UTC