Skip to content

Commit 949615f

Browse files
committed
[css-style-attr] Tweak names of grammar rules.
1 parent 64d045f commit 949615f

2 files changed

Lines changed: 31 additions & 30 deletions

File tree

css-style-attr/Overview.html

Lines changed: 26 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
rel=dcterms.rights>
1111
<meta content="CSS Style Attributes" name=dcterms.title>
1212
<meta content=text name=dcterms.type>
13-
<meta content=2013-10-11 name=dcterms.date>
13+
<meta content=2013-11-11 name=dcterms.date>
1414
<meta content="Tantek Çelik" name=dcterms.creator>
1515
<meta
1616
content="<span class=&quot;p-given-name given-name&quot;>Elika</span> <abbr class=&quot;p-additional-name additional-name&quot;>J.</abbr> <span class=&quot;p-family-name family-name&quot;>Etemad</span>"
@@ -36,7 +36,7 @@
3636
<h1 class=p-name>CSS Style Attributes</h1>
3737

3838
<h2 class="no-num no-toc">Editor's Draft <span class=dt-updated><span
39-
class=value-title title=20131011>11 October 2013</span></span></h2>
39+
class=value-title title=20131111>11 November 2013</span></span></h2>
4040

4141
<dl>
4242
<dt>This version:
@@ -126,12 +126,13 @@ <h2 class="no-num no-toc">Editor's Draft <span class=dt-updated><span
126126

127127
<h2 class="no-num no-toc" id=abstract>Abstract</h2>
128128

129-
<p><span class=p-summary> Markup languages such as HTML <a href="#HTML401"
130-
rel=biblioentry>[HTML401]<!--{{HTML401}}--></a> and SVG <a href="#SVG11"
131-
rel=biblioentry>[SVG11]<!--{{SVG11}}--></a> provide a style attribute on
132-
most elements, to hold inline style information that applies to those
133-
elements. This draft describes the syntax and interpretation of the CSS
134-
fragment that can be used in such style attributes. </span>
129+
<p><span class=p-summary> Markup languages such as HTML <a
130+
href="#ref-HTML401" rel=biblioentry>[HTML401]<!--{{HTML401}}--></a> and
131+
SVG <a href="#ref-SVG11" rel=biblioentry>[SVG11]<!--{{SVG11}}--></a>
132+
provide a style attribute on most elements, to hold inline style
133+
information that applies to those elements. This draft describes the
134+
syntax and interpretation of the CSS fragment that can be used in such
135+
style attributes. </span>
135136

136137
<h2 class="no-num no-toc" id=status>Status of this document</h2>
137138
<!--begin-status-->
@@ -262,7 +263,7 @@ <h2 id=intro><span class=secno>1. </span>Introduction</h2>
262263

263264
<div class=example>
264265
<p>The following example shows the use of the <code>style</code> attribute
265-
in HTML <a href="#HTML401"
266+
in HTML <a href="#ref-HTML401"
266267
rel=biblioentry>[HTML401]<!--{{HTML401}}--></a>:
267268

268269
<pre>&lt;p style="<em>color: #090; line-height: 1.2</em>"&gt;...&lt;/p&gt;</pre>
@@ -300,7 +301,7 @@ <h2 id=conformance><span class=secno>2. </span>Conformance</h2>
300301
readability, these words do not appear in all uppercase letters in this
301302
specification. All of the text of this specification is normative except
302303
sections explicitly marked as non-normative, examples, and notes. <a
303-
href="#RFC2119" rel=biblioentry>[RFC2119]<!--{{!RFC2119}}--></a>
304+
href="#ref-RFC2119" rel=biblioentry>[RFC2119]<!--{{!RFC2119}}--></a>
304305

305306
<p>Examples in this specification are introduced with the words "for
306307
example" or are set apart from the normative text with
@@ -326,13 +327,13 @@ <h2 id=syntax><span class=secno>3. </span>Syntax and Parsing</h2>
326327
grammar</a>:
327328

328329
<pre>
329-
declaration-list
330-
: S* declaration-list-next
330+
style-attribute
331+
: S* declaration-list
331332
;
332333

333-
declaration-list-next
334-
: declaration [ ';' S* declaration-list-next ]?
335-
| at-rule declaration-list-next
334+
declaration-list
335+
: declaration [ ';' S* declaration-list ]?
336+
| at-rule declaration-list
336337
| /* empty */
337338
;
338339
</pre>
@@ -344,7 +345,7 @@ <h2 id=syntax><span class=secno>3. </span>Syntax and Parsing</h2>
344345
forward-compatible parsing rules that apply to parsing declaration block
345346
contents in a normal CSS style sheet (see <a
346347
href="http://www.w3.org/TR/CSS21/syndata.html">chapter 4 of the CSS2.1
347-
specification</a> <a href="#CSS21"
348+
specification</a> <a href="#ref-CSS21"
348349
rel=biblioentry>[CSS21]<!--{{!CSS21}}--></a>), with the following
349350
addition: when the UA expects the start of a declaration or at-rule (i.e.,
350351
an IDENT token or an ATKEYWORD token) but finds an unexpected token
@@ -372,11 +373,11 @@ <h2 id=interpret><span class=secno>4. </span>Cascading and Interpretation</h2>
372373
attribute belongs. In the cascade, these declarations are considered to
373374
have author origin and a specificity higher than any selector. CSS2.1 <a
374375
href="http://www.w3.org/TR/CSS21/cascade.html#specificity">defines</a> how
375-
style sheets and style attributes are cascaded together. <a href="#CSS21"
376-
rel=biblioentry>[CSS21]<!--{{!CSS21}}--></a> Relative URLs in the style
377-
data must be resolved relative to the style attribute's element (or to the
378-
document if per-element resolution is not defined) when the attribute's
379-
value is parsed<!-- so dynamic changes to
376+
style sheets and style attributes are cascaded together. <a
377+
href="#ref-CSS21" rel=biblioentry>[CSS21]<!--{{!CSS21}}--></a> Relative
378+
URLs in the style data must be resolved relative to the style attribute's
379+
element (or to the document if per-element resolution is not defined) when
380+
the attribute's value is parsed<!-- so dynamic changes to
380381
the base URL don't affect the CSS ~Hixie -->.
381382

382383
<p>Aside from the differences in cascading, the declarations in a style
@@ -418,7 +419,7 @@ <h3 class=no-num id=normative-references>Normative references</h3>
418419
<dd style="display: none"><!-- keeps the doc valid if the DL is empty -->
419420
<!---->
420421

421-
<dt id=CSS21>[CSS21]
422+
<dt id=ref-CSS21>[CSS21]
422423

423424
<dd>Bert Bos; et al. <a
424425
href="http://www.w3.org/TR/2011/REC-CSS2-20110607"><cite>Cascading Style
@@ -428,7 +429,7 @@ <h3 class=no-num id=normative-references>Normative references</h3>
428429
</dd>
429430
<!---->
430431

431-
<dt id=RFC2119>[RFC2119]
432+
<dt id=ref-RFC2119>[RFC2119]
432433

433434
<dd>S. Bradner. <a href="http://www.ietf.org/rfc/rfc2119.txt"><cite>Key
434435
words for use in RFCs to Indicate Requirement Levels.</cite></a> Internet
@@ -447,7 +448,7 @@ <h3 class=no-num id=informative-references>Informative references</h3>
447448
<dd style="display: none"><!-- keeps the doc valid if the DL is empty -->
448449
<!---->
449450

450-
<dt id=HTML401>[HTML401]
451+
<dt id=ref-HTML401>[HTML401]
451452

452453
<dd>Dave Raggett; Arnaud Le Hors; Ian Jacobs. <a
453454
href="http://www.w3.org/TR/1999/REC-html401-19991224"><cite>HTML 4.01
@@ -456,7 +457,7 @@ <h3 class=no-num id=informative-references>Informative references</h3>
456457
</dd>
457458
<!---->
458459

459-
<dt id=SVG11>[SVG11]
460+
<dt id=ref-SVG11>[SVG11]
460461

461462
<dd>Erik Dahlström; et al. <a
462463
href="http://www.w3.org/TR/2011/REC-SVG11-20110816/"><cite>Scalable

css-style-attr/Overview.src.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -210,13 +210,13 @@ <h2 id="syntax">Syntax and Parsing</h2>
210210
<a href="http://www.w3.org/TR/CSS21/syndata.html#syntax">CSS core grammar</a>:
211211

212212
<pre>
213-
declaration-list
214-
: S* declaration-list-next
213+
style-attribute
214+
: S* declaration-list
215215
;
216216

217-
declaration-list-next
218-
: declaration [ ';' S* declaration-list-next ]?
219-
| at-rule declaration-list-next
217+
declaration-list
218+
: declaration [ ';' S* declaration-list ]?
219+
| at-rule declaration-list
220220
| /* empty */
221221
;
222222
</pre>

0 commit comments

Comments
 (0)