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

[selectors4] Editorial: emphasize that specificity is not intrinsic anymore

From: Simon Sapin <simon.sapin@exyr.org>
Date: Thu, 16 Jan 2014 15:51:14 +0000
Message-ID: <52D7FFF2.1020404@exyr.org>
To: www-style <www-style@w3.org>
Hi,

The current draft contains:

> The specificity of a :matches() pseudo-class is the specificity of
> the most specific complex selector that matched.

For a :matches() pseudo-class with multiple complex selector arguments, 
different elements can match a different subsets of these complex 
selectors, resulting in a different specificity.

This means that the specificity of a selector depends on the element 
being matched, and is not a property of only that selector.


Id like this to be more obvious in the spec. Maybe start the section 
with "A selector's specificity is calculated for a given element as 
follows" instead of "A selector's specificity is calculated as follows", 
or add a note.

-- 
Simon Sapin
Received on Thursday, 16 January 2014 15:51:41 UTC

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