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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

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

Momdo Nakamura
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





Reply | Threaded
Open this post in threaded view
|

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

Gérard Talbot-2
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