Re: [CSS21][CSS22] Request to clarify the section 6.4.3.

Le 2015-10-14 11:36, Momdo Nakamura a écrit :
> Hi,
> 
> In the 1st bullet of “6.4.3 Calculating a selector's specificity”:
> 
>> count 1 if the declaration is from is a 'style' attribute rather than
>> a rule with a selector, 0 otherwise (= a)
> 
> I think that this sentence is grammatically incomprehensible; saying
> honestly, it is hard to read and understand.
> In my eyes, we need to clear up the sentence.
> 
> 
> Best Regards,
> NAKAMURA, momdo

Mondo,

I agree with you.

Proposal
--------

count 1 if the declaration is from is a 'style' attribute rather than a 
rule with a selector, 0 otherwise (= a)

would be replaced with

count 1 if the declaration is from a 'style' attribute rather than a 
rule with a selector, otherwise count 0 (= a)

6.4.3 Calculating a selector's specificity
http://www.w3.org/TR/CSS21/cascade.html#specificity

6.4.3 Calculating a selector's specificity
https://drafts.csswg.org/css2/cascade.html#specificity

Gérard

Received on Friday, 16 October 2015 17:53:42 UTC