Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
spec:at-rules-patterns [2011/12/06 23:36] – [Spec Text] dbaronspec:at-rules-patterns [2012/09/13 13:07] – [At-Rules Patterns] Make the numbered list work tabatkins
Line 5: Line 5:
 At-rules can generally be grouped into four categories:  At-rules can generally be grouped into four categories: 
  
- 1. processing instructions (like @import or @charset) +  - processing instructions (like @import or @charset) 
- 2. rules that change the context of rules inside them (like @media or @region) +  rules that change the context of rules inside them (like @media or @region) 
- 3. rules that apply properties to things in the document other than elements (like @page or @viewport) +  rules that apply properties to things in the document other than elements (like @page or @viewport) 
- 4. rules that define values which are too complex to define inline (like @font-face or @keyframes)+  rules that define values which are too complex to define inline (like @font-face or @keyframes)
  
 ===== Spec Text ===== ===== Spec Text =====
Line 14: Line 14:
 Category 1 and 2 rules merely need a description of their syntax and meaning. Category 1 and 2 rules merely need a description of their syntax and meaning.
  
-Category 3 and 4 rules contain **descriptors**, which are identical to properties but have definitions local to the specific at-rule.  Every descriptor needs a definition (use a ''<table class='descdef'>'') similar to a property.  Descriptors aren't properties; they don't generally take the global values that properties do, and don't usually have a concept of "inheritance" Descriptors also generally have the same behavior as properties in other aspects: multiple occurrences of the same descriptor are ignored except for the last, unknown descriptors are dropped without invaliding the entire rule, etc.  ((I think most of this paragraph is not true for category (3); see, for example, the way the editor's draft of css3-page applies large swaths of properties to @page rules.  It would take a bit of time to sort through exactly which bits are true, though. --LDB))+Category 3 and 4 rules contain **descriptors**, which are identical to properties but have definitions local to the specific at-rule.  Every descriptor needs a definition (use a ''<table class='descdef'>'') similar to a property.  Descriptors aren't properties; they don't generally take the global values that properties do, and don't usually have a concept of "inheritance" Descriptors also generally have the same behavior as properties in other aspects: multiple occurrences of the same descriptor are ignored except for the last, unknown descriptors are dropped without invaliding the entire rule, etc.  (I think most of this paragraph is not true for category (3); see, for example, the way the editor's draft of css3-page applies large swaths of properties to @page rules.  It would take a bit of time to sort through exactly which bits are true, though. --LDB)
  
 ==== Cascading ==== ==== Cascading ====
 
spec/at-rules-patterns.txt · Last modified: 2014/12/09 15:48 by 127.0.0.1
Recent changes RSS feed Valid XHTML 1.0 Valid CSS Driven by DokuWiki