Mon, 11 Nov 2013 17:37:09 +0800
[css-style-attr] Tweak names of grammar rules.
css-style-attr/Overview.html | file | annotate | diff | comparison | revisions | |
css-style-attr/Overview.src.html | file | annotate | diff | comparison | revisions |
1.1 --- a/css-style-attr/Overview.html Wed Nov 06 19:55:48 2013 +0000 1.2 +++ b/css-style-attr/Overview.html Mon Nov 11 17:37:09 2013 +0800 1.3 @@ -10,7 +10,7 @@ 1.4 rel=dcterms.rights> 1.5 <meta content="CSS Style Attributes" name=dcterms.title> 1.6 <meta content=text name=dcterms.type> 1.7 - <meta content=2013-10-11 name=dcterms.date> 1.8 + <meta content=2013-11-11 name=dcterms.date> 1.9 <meta content="Tantek Çelik" name=dcterms.creator> 1.10 <meta 1.11 content="<span class="p-given-name given-name">Elika</span> <abbr class="p-additional-name additional-name">J.</abbr> <span class="p-family-name family-name">Etemad</span>" 1.12 @@ -36,7 +36,7 @@ 1.13 <h1 class=p-name>CSS Style Attributes</h1> 1.14 1.15 <h2 class="no-num no-toc">Editor's Draft <span class=dt-updated><span 1.16 - class=value-title title=20131011>11 October 2013</span></span></h2> 1.17 + class=value-title title=20131111>11 November 2013</span></span></h2> 1.18 1.19 <dl> 1.20 <dt>This version: 1.21 @@ -126,12 +126,13 @@ 1.22 1.23 <h2 class="no-num no-toc" id=abstract>Abstract</h2> 1.24 1.25 - <p><span class=p-summary> Markup languages such as HTML <a href="#HTML401" 1.26 - rel=biblioentry>[HTML401]<!--{{HTML401}}--></a> and SVG <a href="#SVG11" 1.27 - rel=biblioentry>[SVG11]<!--{{SVG11}}--></a> provide a style attribute on 1.28 - most elements, to hold inline style information that applies to those 1.29 - elements. This draft describes the syntax and interpretation of the CSS 1.30 - fragment that can be used in such style attributes. </span> 1.31 + <p><span class=p-summary> Markup languages such as HTML <a 1.32 + href="#ref-HTML401" rel=biblioentry>[HTML401]<!--{{HTML401}}--></a> and 1.33 + SVG <a href="#ref-SVG11" rel=biblioentry>[SVG11]<!--{{SVG11}}--></a> 1.34 + provide a style attribute on most elements, to hold inline style 1.35 + information that applies to those elements. This draft describes the 1.36 + syntax and interpretation of the CSS fragment that can be used in such 1.37 + style attributes. </span> 1.38 1.39 <h2 class="no-num no-toc" id=status>Status of this document</h2> 1.40 <!--begin-status--> 1.41 @@ -262,7 +263,7 @@ 1.42 1.43 <div class=example> 1.44 <p>The following example shows the use of the <code>style</code> attribute 1.45 - in HTML <a href="#HTML401" 1.46 + in HTML <a href="#ref-HTML401" 1.47 rel=biblioentry>[HTML401]<!--{{HTML401}}--></a>: 1.48 1.49 <pre><p style="<em>color: #090; line-height: 1.2</em>">...</p></pre> 1.50 @@ -300,7 +301,7 @@ 1.51 readability, these words do not appear in all uppercase letters in this 1.52 specification. All of the text of this specification is normative except 1.53 sections explicitly marked as non-normative, examples, and notes. <a 1.54 - href="#RFC2119" rel=biblioentry>[RFC2119]<!--{{!RFC2119}}--></a> 1.55 + href="#ref-RFC2119" rel=biblioentry>[RFC2119]<!--{{!RFC2119}}--></a> 1.56 1.57 <p>Examples in this specification are introduced with the words "for 1.58 example" or are set apart from the normative text with 1.59 @@ -326,13 +327,13 @@ 1.60 grammar</a>: 1.61 1.62 <pre> 1.63 -declaration-list 1.64 - : S* declaration-list-next 1.65 +style-attribute 1.66 + : S* declaration-list 1.67 ; 1.68 1.69 -declaration-list-next 1.70 - : declaration [ ';' S* declaration-list-next ]? 1.71 - | at-rule declaration-list-next 1.72 +declaration-list 1.73 + : declaration [ ';' S* declaration-list ]? 1.74 + | at-rule declaration-list 1.75 | /* empty */ 1.76 ; 1.77 </pre> 1.78 @@ -344,7 +345,7 @@ 1.79 forward-compatible parsing rules that apply to parsing declaration block 1.80 contents in a normal CSS style sheet (see <a 1.81 href="http://www.w3.org/TR/CSS21/syndata.html">chapter 4 of the CSS2.1 1.82 - specification</a> <a href="#CSS21" 1.83 + specification</a> <a href="#ref-CSS21" 1.84 rel=biblioentry>[CSS21]<!--{{!CSS21}}--></a>), with the following 1.85 addition: when the UA expects the start of a declaration or at-rule (i.e., 1.86 an IDENT token or an ATKEYWORD token) but finds an unexpected token 1.87 @@ -372,11 +373,11 @@ 1.88 attribute belongs. In the cascade, these declarations are considered to 1.89 have author origin and a specificity higher than any selector. CSS2.1 <a 1.90 href="http://www.w3.org/TR/CSS21/cascade.html#specificity">defines</a> how 1.91 - style sheets and style attributes are cascaded together. <a href="#CSS21" 1.92 - rel=biblioentry>[CSS21]<!--{{!CSS21}}--></a> Relative URLs in the style 1.93 - data must be resolved relative to the style attribute's element (or to the 1.94 - document if per-element resolution is not defined) when the attribute's 1.95 - value is parsed<!-- so dynamic changes to 1.96 + style sheets and style attributes are cascaded together. <a 1.97 + href="#ref-CSS21" rel=biblioentry>[CSS21]<!--{{!CSS21}}--></a> Relative 1.98 + URLs in the style data must be resolved relative to the style attribute's 1.99 + element (or to the document if per-element resolution is not defined) when 1.100 + the attribute's value is parsed<!-- so dynamic changes to 1.101 the base URL don't affect the CSS ~Hixie -->. 1.102 1.103 <p>Aside from the differences in cascading, the declarations in a style 1.104 @@ -418,7 +419,7 @@ 1.105 <dd style="display: none"><!-- keeps the doc valid if the DL is empty --> 1.106 <!----> 1.107 1.108 - <dt id=CSS21>[CSS21] 1.109 + <dt id=ref-CSS21>[CSS21] 1.110 1.111 <dd>Bert Bos; et al. <a 1.112 href="http://www.w3.org/TR/2011/REC-CSS2-20110607"><cite>Cascading Style 1.113 @@ -428,7 +429,7 @@ 1.114 </dd> 1.115 <!----> 1.116 1.117 - <dt id=RFC2119>[RFC2119] 1.118 + <dt id=ref-RFC2119>[RFC2119] 1.119 1.120 <dd>S. Bradner. <a href="http://www.ietf.org/rfc/rfc2119.txt"><cite>Key 1.121 words for use in RFCs to Indicate Requirement Levels.</cite></a> Internet 1.122 @@ -447,7 +448,7 @@ 1.123 <dd style="display: none"><!-- keeps the doc valid if the DL is empty --> 1.124 <!----> 1.125 1.126 - <dt id=HTML401>[HTML401] 1.127 + <dt id=ref-HTML401>[HTML401] 1.128 1.129 <dd>Dave Raggett; Arnaud Le Hors; Ian Jacobs. <a 1.130 href="http://www.w3.org/TR/1999/REC-html401-19991224"><cite>HTML 4.01 1.131 @@ -456,7 +457,7 @@ 1.132 </dd> 1.133 <!----> 1.134 1.135 - <dt id=SVG11>[SVG11] 1.136 + <dt id=ref-SVG11>[SVG11] 1.137 1.138 <dd>Erik Dahlström; et al. <a 1.139 href="http://www.w3.org/TR/2011/REC-SVG11-20110816/"><cite>Scalable
2.1 --- a/css-style-attr/Overview.src.html Wed Nov 06 19:55:48 2013 +0000 2.2 +++ b/css-style-attr/Overview.src.html Mon Nov 11 17:37:09 2013 +0800 2.3 @@ -210,13 +210,13 @@ 2.4 <a href="http://www.w3.org/TR/CSS21/syndata.html#syntax">CSS core grammar</a>: 2.5 2.6 <pre> 2.7 -declaration-list 2.8 - : S* declaration-list-next 2.9 +style-attribute 2.10 + : S* declaration-list 2.11 ; 2.12 2.13 -declaration-list-next 2.14 - : declaration [ ';' S* declaration-list-next ]? 2.15 - | at-rule declaration-list-next 2.16 +declaration-list 2.17 + : declaration [ ';' S* declaration-list ]? 2.18 + | at-rule declaration-list 2.19 | /* empty */ 2.20 ; 2.21 </pre>