Re: [csswg-drafts] [css-cascade] Clarify the specificity of a declaration. (#11305)

The [selectors] spec section linked from that paragraph contains the detailed algorithm of specificity calculation, including the following paragraph:

> If the selector is a [selector list](https://drafts.csswg.org/selectors/#selector-list), this number is calculated for each selector in the list. For a given matching process against the list, the specificity in effect is that of the most specific selector in the list that matches.

It doesn't strictly declare the equivalence between "the specificity in effect" and "the specificity of the rule" (though strongly implies it), but seems quite unobvious which specificity value will be _in effect_ for any given selector, and therefore for the rule associated with it. IMO making the text too verbose while providing the link to the detailed algorithm would be not very useful, however a minor editorial change to remove the rest of ambiguity from it could be helpful.

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 2 December 2024 13:34:02 UTC