1.1 --- a/css-style-attr/Overview.src.html Tue Sep 07 21:12:02 2010 +0000 1.2 +++ b/css-style-attr/Overview.src.html Mon Sep 13 21:35:33 2010 +0000 1.3 @@ -2,7 +2,7 @@ 1.4 <html lang="en"> 1.5 <head> 1.6 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 1.7 - <title>CSS Styling Attributes Level 1</title> 1.8 + <title>CSS Style Attributes</title> 1.9 <link rel="stylesheet" type="text/css" href="default.css"> 1.10 1.11 <link rel="stylesheet" type="text/css" href="http://www.w3.org/StyleSheets/TR/W3C-ED"> 1.12 @@ -11,7 +11,7 @@ 1.13 <div class="head"> 1.14 <!--logo--> 1.15 1.16 -<h1>CSS Styling Attributes Level 1</h1> 1.17 +<h1>CSS Style Attributes</h1> 1.18 1.19 <h2 class="no-num no-toc">[LONGSTATUS] [DATE]</h2> 1.20 <dl> 1.21 @@ -47,11 +47,11 @@ 1.22 1.23 <h2 class="no-num no-toc" id="abstract">Abstract</h2> 1.24 1.25 -<p>Markup languages such as HTML [[HTML401]] and SVG [[SVG11]] provide a styling 1.26 +<p>Markup languages such as HTML [[HTML401]] and SVG [[SVG11]] provide a style 1.27 attribute on most elements, to hold inline style information that applies 1.28 to those elements. One of the possible style sheet languages is CSS. This 1.29 draft describes the syntax and interpretation of the CSS fragment that can 1.30 -be used in such styling attributes. 1.31 +be used in such style attributes. 1.32 1.33 <h2 class="no-num no-toc" id="status">Status of this document</h2> 1.34 <!--status--> 1.35 @@ -99,25 +99,25 @@ 1.36 1.37 <li> 1.38 <p>A minimum of three months of the CR period must elapse. That 1.39 - is, this specification will not exit CR before XXX INSERT DATE HERE. When the 1.40 + is, this specification will not exit CR before (DATE OF PUBLICATION PLUS THREE MONTHS). When the 1.41 specification exits CR, an implementation report will be published. At 1.42 this point, no such report exists.</p> 1.43 </ol> 1.44 1.45 - <p>A CSS Styling Attribute <a href="http://www.w3.org/Style/CSS/Test/">Test 1.46 + <p>A CSS Style Attributes <a href="http://www.w3.org/Style/CSS/Test/">Test 1.47 Suite</a> will be developed during the Candidate Recommendation phase of 1.48 - this CSS Styling Attribute specification. 1.49 + this CSS Style Attributes specification. 1.50 1.51 <h2 class="no-num no-toc" id="contents">Table of contents</h2> 1.52 <!--toc--> 1.53 1.54 <h2 id="intro">Introduction</h2> 1.55 1.56 -<p>Some document formats have a <dfn>styling attribute</dfn> to permit 1.57 +<p>Some document formats have a <dfn>style attribute</dfn> to permit 1.58 the author to directly apply style information to specific elements 1.59 -in documents. If a document format defines a styling attribute and the 1.60 +in documents. If a document format defines a style attribute (whether named 'style' or something else) and the 1.61 attribute accepts CSS as its value, then this specification defines that 1.62 -<dfn>CSS styling attribute</dfn>’s syntax and interpretation. 1.63 +<dfn>style attribute</dfn>’s syntax and interpretation. 1.64 1.65 <div class="example"> 1.66 <p>The following example shows the use of the <code>style</code> attribute 1.67 @@ -127,17 +127,16 @@ 1.68 1.69 <h2 id="conformance">Conformance</h2> 1.70 1.71 -<p>A document or implementation cannot conform to CSS Styling Attributes 1.72 -Level 1 alone, but can claim conformance to CSS Styling Attributes Level 1 1.73 +<p>A document or implementation cannot conform to CSS Style Attributes alone, but can claim conformance to CSS Style Attributes 1.74 if it satisfies the conformance requirements in this specification when 1.75 -implementing CSS together with styling attribute handling as defined in a 1.76 -document language that has CSS styling attributes.</p> 1.77 +implementing CSS together with style attribute handling as defined in a 1.78 +document language that has one or more CSS style attributes.</p> 1.79 1.80 -<p>Conformance to CSS Styling Attributes Level 1 is defined for two 1.81 +<p>Conformance to CSS Style Attributes is defined for two 1.82 classes: 1.83 <dl> 1.84 <dt><dfn>document</dfn></dt> 1.85 - <dd>A document represented in a document language that defines a styling 1.86 + <dd>A document represented in a document language that defines a style 1.87 attribute for one or more of its elements. 1.88 <dt><dfn>interpreter</dfn></dt> 1.89 <dd>Someone or something that interprets the semantics of a document and 1.90 @@ -171,7 +170,7 @@ 1.91 1.92 <h2 id="syntax">Syntax and Parsing</h2> 1.93 1.94 -<p>The value of the styling attribute must match the syntax of the contents of 1.95 +<p>The value of the style attribute must match the syntax of the contents of 1.96 a CSS <a href="http://www.w3.org/TR/CSS21/syndata.html#rule-sets">declaration 1.97 block</a> (excluding the delimiting braces), whose formal grammar is given 1.98 below in the terms and conventions of the 1.99 @@ -186,36 +185,35 @@ 1.100 <p class="note">Note that following the CSS2.1 convention, comment tokens 1.101 are not shown in the rule above. 1.102 1.103 -<p>The interpreter must parse the styling attribute's value using the 1.104 +<p>The interpreter must parse the style attribute's value using the 1.105 same forward-compatible parsing rules that apply to parsing declaration block 1.106 contents in a normal CSS style sheet. See 1.107 <a href="http://www.w3.org/TR/CSS21/syndata.html">chapter 4 of the CSS2.1 1.108 specification</a> for details. [[!CSS21]] 1.109 1.110 <p class="note">Note that because there is no open brace delimiting the 1.111 -declaration list in the CSS styling attribute syntax, a close brace 1.112 -(<code>}</code>) in the styling attribute's value does not terminate the 1.113 +declaration list in the CSS style attribute syntax, a close brace 1.114 +(<code>}</code>) in the style attribute's value does not terminate the 1.115 style data: it is merely an invalid token.</p> 1.116 1.117 <h2 id="interpret">Cascading and Interpretation</h2> 1.118 1.119 -<p>The declarations in a styling attribute apply to the element to which 1.120 +<p>The declarations in a style attribute apply to the element to which 1.121 the attribute belongs. In the cascade, these declarations are considered 1.122 to have author origin and a specificity higher than any selector. 1.123 CSS2.1 <a href="http://www.w3.org/TR/CSS21/cascade.html#specificity">defines</a> 1.124 -how style sheets and styling attributes are cascaded together. [[!CSS21]] 1.125 -Relative URLs in the style data must be resolved relative to the styling 1.126 -attribute's element (or to the document if per-element resolution is not 1.127 +how style sheets and style attributes are cascaded together. [[!CSS21]] 1.128 +Relative URLs in the style data must be resolved relative to the style attribute's element (or to the document if per-element resolution is not 1.129 defined) when the attribute's value is parsed<!-- so dynamic changes to 1.130 the base URL don't affect the CSS ~Hixie -->. 1.131 1.132 -<p>Aside from the differences in cascading, the declarations in a styling 1.133 +<p>Aside from the differences in cascading, the declarations in a style 1.134 attribute must be interpreted exactly as if they were given in a CSS 1.135 style rule that applies to the element. 1.136 1.137 <p>The CSS Working Group strongly recommends that document languages do 1.138 -not allow multiple CSS styling attributes on a single element. If a document 1.139 -language allows multiple CSS styling attributes, each must be parsed 1.140 +not allow multiple CSS style attributes on a single element. If a document 1.141 +language allows multiple CSS style attributes, each must be parsed 1.142 independently and treated as a separate style rule, the ordering of which 1.143 should be defined by the document language, else is undefined. 1.144