WD-css3-cascade-20010713 comments

Cascading and inheritance <http://www.w3.org/TR/2001/W
D-css3-cascade-20010713>



3. Input and output of this module <http://www.w3.org/TR/200
1/WD-css3-cascade-20010713#input>

"The input to the cascading and inheritance process is:
  The set of declarations that apply to the 
element/property combination in question. It is assumed 
that declarations that do not apply (e.g. due to the media type) 
is not included in the set.
  The inherited value of the property. If the property has a 
concept of specified, computed and actual values, the 
computed value is normally the one which is inherited. See 
the module on Values and Units for more information."

More than declarations are needed; rules are necessary.  
A declaration is, abstractly and syntactically, the association of 
a property name, a property value, and a weight.  A rule is 
the abstract association of a selector and a declaration.  (Rule 
sets form the syntactic expression of rules.)  Because specificity 
is part of the cascading algorithm and because the 
selector determines the specificity, rules, not declarations, 
are sufficient.

The phrase "If the property has a concept of specified, 
computed and actual values" is pointless.  In CSS all properties 
have the concept of specified, computed, and actual values.



4. Cascading <http://www.w3.org/TR/2001/WD-css3-cascad
e-20010713#cascading>

Change all occurences of "declaration" to "rule".



5. Inheritance <http://www.w3.org/TR/2001/WD-css3-cascad
e-20010713#inheritance>

Change occurence of "declaration" to "rule".

"If the value of the winning declaration is different from "inherit", 
it becomes the resulting value."

Change to "If the value of the winning declaration is not 
"inherit" and is not "initial", it becomes the resulting value."



6. Computing weight <http://www.w3.org/TR/2001/WD-css
3-cascade-20010713#computing>

"Declarations in imported style sheets have lower weight 
than declarations in the style sheet from where they are imported."

This is false.  Declarations in imported style sheets have the 
same origin as declarations in the importing style sheet.  
The relation of the weights then depends only on the 
marked importance of the declarations.  What does differ is 
the order of appearance, which also affects the precedence of 
rules in the cascade.

This section deserves a clear summary, like what follows.

User agent   normal   : weight 0.
User agent "important": weight 1.
      User   normal   : weight 2.
    Author   normal   : weight 3.
    Author "important": weight 4.
      User "important": weight 5.

Received on Friday, 30 November 2001 22:21:22 UTC