Skip to content

Commit cefb8c7

Browse files
committed
1 parent aa81e6c commit cefb8c7

File tree

2 files changed

+42
-58
lines changed

2 files changed

+42
-58
lines changed

css-style-attr/Overview.html

Lines changed: 27 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@
1515

1616
<h1>CSS Styling Attribute Syntax Level 1</h1>
1717

18-
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 7 January 2010</h2>
18+
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 14 January
19+
2010</h2>
1920

2021
<dl>
2122
<dt>This version:</dt>
22-
<!-- <dd><dd><a href="http://www.w3.org/TR/2010/WD-css-style-attr-20100107/">http://www.w3.org/TR/2010/WD-css-style-attr-20100107/</a></dd> -->
23+
<!-- <dd><dd><a href="http://www.w3.org/TR/2010/WD-css-style-attr-20100114/">http://www.w3.org/TR/2010/WD-css-style-attr-20100114/</a></dd> -->
2324

2425
<dd><a
2526
href="http://dev.w3.org/csswg/css-style-attr/">http://dev.w3.org/csswg/css-style-attr/</a>
@@ -129,14 +130,12 @@ <h2 class="no-num no-toc" id=contents>Table of contents</h2>
129130

130131
<li><a href="#syntax"><span class=secno>3. </span>Syntax and Parsing</a>
131132

132-
<li><a href="#grammar"><span class=secno>4. </span>Grammar</a>
133-
134-
<li><a href="#interpret"><span class=secno>5. </span>Cascading and
133+
<li><a href="#interpret"><span class=secno>4. </span>Cascading and
135134
Interpretation</a>
136135

137-
<li><a href="#ack"><span class=secno>6. </span>Acknowledgments</a>
136+
<li><a href="#ack"><span class=secno>5. </span>Acknowledgments</a>
138137

139-
<li><a href="#references"><span class=secno>7. </span>References </a>
138+
<li><a href="#references"><span class=secno>6. </span>References </a>
140139
<ul class=toc>
141140
<li class=no-num><a href="#normative-references">Normative
142141
references</a>
@@ -154,7 +153,7 @@ <h2 id=intro><span class=secno>1. </span>Introduction</h2>
154153
to specific elements in documents. If a document format defines a styling
155154
attribute and the attribute accepts CSS as its value, then this
156155
specification defines this <dfn id=css-styling-attribute>CSS styling
157-
attribute</dfn>&lsquo;<code class=css>s syntax and interpretation. </code>
156+
attribute</dfn>&rsquo;s syntax and interpretation.
158157

159158
<div class=example>
160159
<p>The following example shows the use of the <code>style</code> attribute
@@ -217,40 +216,32 @@ <h2 id=syntax><span class=secno>3. </span>Syntax and Parsing</h2>
217216
<p>The value of the styling attribute must match the syntax of the contents
218217
of a CSS <a
219218
href="http://www.w3.org/TR/CSS21/syndata.html#rule-sets">declaration
220-
block</a>. The interpreter must parse the styling attribute&rsquo;s value
221-
using the same forward-compatible parsing rules that apply to parsing
222-
declaration block contents in a normal CSS style sheet. See <a
219+
block</a>, whose formal grammar is given below in terms of the <a
220+
href="http://www.w3.org/TR/CSS21/syndata.html#syntax">CSS core
221+
grammar</a>:
222+
223+
<pre>
224+
declaration-list
225+
: S* declaration [ ';' S* declaration ]*
226+
;
227+
</pre>
228+
229+
<p class=note>Note that following the CSS2.1 convention, comment tokens are
230+
not shown in the rule above.
231+
232+
<p>The interpreter must parse the styling attribute's value using the same
233+
forward-compatible parsing rules that apply to parsing declaration block
234+
contents in a normal CSS style sheet. See <a
223235
href="http://www.w3.org/TR/CSS21/syndata.html">chapter 4 of the CSS2.1
224-
specification</a>. <a href="#CSS21"
236+
specification</a> for details. <a href="#CSS21"
225237
rel=biblioentry>[CSS21]<!--{{!CSS21}}--></a>
226238

227239
<p class=note>Note that because there is no open brace delimiting the
228240
declaration list in the CSS styling attribute syntax, a close brace
229241
(<code>}</code>) in the styling attribute's value does not terminate the
230242
style data: it is merely an invalid token.
231243

232-
<h2 id=grammar><span class=secno>4. </span>Grammar</h2>
233-
234-
<p>The syntax of the CSS fragment that is allowed as the CSS styling
235-
attribute's value is formally specified as follows:
236-
237-
<pre>
238-
inline-stylesheet
239-
: S* declaration-list
240-
;
241-
242-
declaration-list
243-
: declaration [ ';' S* declaration ]*
244-
;
245-
</pre>
246-
247-
<p>Please refer to the grammar in <a
248-
href="http://www.w3.org/TR/CSS21/grammar.html">appendix D of the CSS2.1
249-
specification</a> <a href="#CSS21"
250-
rel=biblioentry>[CSS21]<!--{{!CSS21}}--></a> for the definition of the
251-
symbols not defined here.
252-
253-
<h2 id=interpret><span class=secno>5. </span>Cascading and Interpretation</h2>
244+
<h2 id=interpret><span class=secno>4. </span>Cascading and Interpretation</h2>
254245

255246
<p>The declarations in a styling attribute apply to the element to which
256247
the attribute belongs. CSS2.1 <a
@@ -273,12 +264,12 @@ <h2 id=interpret><span class=secno>5. </span>Cascading and Interpretation</h2>
273264
independently and treated as a separate style rule, the ordering of which
274265
should be defined by the document language, else is undefined.
275266

276-
<h2 id=ack><span class=secno>6. </span>Acknowledgments</h2>
267+
<h2 id=ack><span class=secno>5. </span>Acknowledgments</h2>
277268

278269
<p>Thanks to feedback from Daniel Glazman, Ian Hickson, Eric A. Meyer,
279270
Bj&ouml;rn H&ouml;hrmann.
280271

281-
<h2 id=references><span class=secno>7. </span>References</h2>
272+
<h2 id=references><span class=secno>6. </span>References</h2>
282273

283274
<h3 class=no-num id=normative-references>Normative references</h3>
284275
<!--begin-normative-->

css-style-attr/Overview.src.html

Lines changed: 15 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ <h2 id="intro">Introduction</h2>
5555
the author to directly apply style information to specific elements
5656
in documents. If a document format defines a styling attribute and the
5757
attribute accepts CSS as its value, then this specification defines this
58-
<dfn>CSS styling attribute</dfn>'s syntax and interpretation.
58+
<dfn>CSS styling attribute</dfn>&rsquo;s syntax and interpretation.
5959

6060
<div class="example">
6161
<p>The following example shows the use of the <code>style</code> attribute
@@ -111,36 +111,29 @@ <h2 id="syntax">Syntax and Parsing</h2>
111111

112112
<p>The value of the styling attribute must match the syntax of the contents of
113113
a CSS <a href="http://www.w3.org/TR/CSS21/syndata.html#rule-sets">declaration
114-
block</a>. The interpreter must parse the styling attribute's value using the
114+
block</a>, whose formal grammar is given below in terms of the
115+
<a href="http://www.w3.org/TR/CSS21/syndata.html#syntax">CSS core grammar</a>:
116+
117+
<pre>
118+
declaration-list
119+
: S* declaration [ ';' S* declaration ]*
120+
;
121+
</pre>
122+
123+
<p class="note">Note that following the CSS2.1 convention, comment tokens
124+
are not shown in the rule above.
125+
126+
<p>The interpreter must parse the styling attribute's value using the
115127
same forward-compatible parsing rules that apply to parsing declaration block
116128
contents in a normal CSS style sheet. See
117129
<a href="http://www.w3.org/TR/CSS21/syndata.html">chapter 4 of the CSS2.1
118-
specification</a>. [[!CSS21]]
130+
specification</a> for details. [[!CSS21]]
119131

120132
<p class="note">Note that because there is no open brace delimiting the
121133
declaration list in the CSS styling attribute syntax, a close brace
122134
(<code>}</code>) in the styling attribute's value does not terminate the
123135
style data: it is merely an invalid token.</p>
124136

125-
<h2 id="grammar">Grammar</h2>
126-
127-
<p>The syntax of the CSS fragment that is allowed as the CSS styling
128-
attribute's value is formally specified as follows:
129-
130-
<pre>
131-
inline-stylesheet
132-
: S* declaration-list
133-
;
134-
135-
declaration-list
136-
: declaration [ ';' S* declaration ]*
137-
;
138-
</pre>
139-
140-
<p>Please refer to the grammar in <a href="http://www.w3.org/TR/CSS21/grammar.html">appendix D
141-
of the CSS2.1 specification</a> [[!CSS21]] for the definition of the symbols
142-
not defined here.
143-
144137
<h2 id="interpret">Cascading and Interpretation</h2>
145138

146139
<p>The declarations in a styling attribute apply to the element to which

0 commit comments

Comments
 (0)