1.1 --- a/css-style-attr/Overview.src.html Fri Jan 08 22:31:54 2010 +0000 1.2 +++ b/css-style-attr/Overview.src.html Thu Jan 14 20:03:07 2010 +0000 1.3 @@ -55,7 +55,7 @@ 1.4 the author to directly apply style information to specific elements 1.5 in documents. If a document format defines a styling attribute and the 1.6 attribute accepts CSS as its value, then this specification defines this 1.7 -<dfn>CSS styling attribute</dfn>'s syntax and interpretation. 1.8 +<dfn>CSS styling attribute</dfn>’s syntax and interpretation. 1.9 1.10 <div class="example"> 1.11 <p>The following example shows the use of the <code>style</code> attribute 1.12 @@ -111,36 +111,29 @@ 1.13 1.14 <p>The value of the styling attribute must match the syntax of the contents of 1.15 a CSS <a href="http://www.w3.org/TR/CSS21/syndata.html#rule-sets">declaration 1.16 -block</a>. The interpreter must parse the styling attribute's value using the 1.17 +block</a>, whose formal grammar is given below in terms of the 1.18 +<a href="http://www.w3.org/TR/CSS21/syndata.html#syntax">CSS core grammar</a>: 1.19 + 1.20 +<pre> 1.21 +declaration-list 1.22 + : S* declaration [ ';' S* declaration ]* 1.23 + ; 1.24 +</pre> 1.25 + 1.26 +<p class="note">Note that following the CSS2.1 convention, comment tokens 1.27 +are not shown in the rule above. 1.28 + 1.29 +<p>The interpreter must parse the styling attribute's value using the 1.30 same forward-compatible parsing rules that apply to parsing declaration block 1.31 contents in a normal CSS style sheet. See 1.32 <a href="http://www.w3.org/TR/CSS21/syndata.html">chapter 4 of the CSS2.1 1.33 -specification</a>. [[!CSS21]] 1.34 +specification</a> for details. [[!CSS21]] 1.35 1.36 <p class="note">Note that because there is no open brace delimiting the 1.37 declaration list in the CSS styling attribute syntax, a close brace 1.38 (<code>}</code>) in the styling attribute's value does not terminate the 1.39 style data: it is merely an invalid token.</p> 1.40 1.41 -<h2 id="grammar">Grammar</h2> 1.42 - 1.43 -<p>The syntax of the CSS fragment that is allowed as the CSS styling 1.44 -attribute's value is formally specified as follows: 1.45 - 1.46 -<pre> 1.47 -inline-stylesheet 1.48 - : S* declaration-list 1.49 - ; 1.50 - 1.51 -declaration-list 1.52 - : declaration [ ';' S* declaration ]* 1.53 - ; 1.54 -</pre> 1.55 - 1.56 -<p>Please refer to the grammar in <a href="http://www.w3.org/TR/CSS21/grammar.html">appendix D 1.57 -of the CSS2.1 specification</a> [[!CSS21]] for the definition of the symbols 1.58 -not defined here. 1.59 - 1.60 <h2 id="interpret">Cascading and Interpretation</h2> 1.61 1.62 <p>The declarations in a styling attribute apply to the element to which