Skip to content

Commit 5283e26

Browse files
committed
add syntax definition
1 parent de3687e commit 5283e26

2 files changed

Lines changed: 33 additions & 0 deletions

File tree

css3-namespace/Overview.html

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,23 @@ <h2 id=css-qnames><span class=secno>4. </span>CSS Qualified Names</h2>
412412
</dl>
413413
</div>
414414

415+
<p>The syntax for the portion of a CSS qualified name before the local
416+
name is given below, both for qualified names that allow wildcard
417+
prefixes (<code>wqname</code>) and for qualified names that disallow
418+
wildcard prefixes (<code>qname</code>). (The syntax uses notation from
419+
the <a href="http://www.w3.org/TR/CSS21/grammar.html">Grammar appendix of
420+
CSS 2.1</a> <a href="#CSS21"
421+
rel=biblioentry>[CSS21]<!--{{!CSS21}}--></a>):</p>
422+
423+
<pre><!--
424+
-->qname_prefix
425+
<!-- --> : [namespace_prefix]? '|'
426+
<!-- --> ;
427+
<!-- -->wqname_prefix
428+
<!-- --> : qname | [ '*' '|' ]
429+
<!-- --> ;
430+
--></pre>
431+
415432
<p>CSS qualified names can be used in (for example) selectors and property
416433
values as described in other modules. Those modules must define handling
417434
of namespace prefixes that have not been properly declared. Such handling

css3-namespace/Overview.src.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,22 @@ <h2 id="css-qnames">CSS Qualified Names</h2>
289289
</dl>
290290
</div>
291291

292+
<p>The syntax for the portion of a CSS qualified name before the local name
293+
is given below, both for qualified names that allow wildcard prefixes
294+
(<code>wqname</code>) and for qualified names that disallow wildcard prefixes
295+
(<code>qname</code>). (The syntax uses notation from the
296+
<a href="http://www.w3.org/TR/CSS21/grammar.html">Grammar appendix of
297+
CSS 2.1</a> [[!CSS21]]):</p>
298+
299+
<pre><!--
300+
-->qname_prefix
301+
<!-- --> : [namespace_prefix]? '|'
302+
<!-- --> ;
303+
<!-- -->wqname_prefix
304+
<!-- --> : qname | [ '*' '|' ]
305+
<!-- --> ;
306+
--></pre>
307+
292308
<p>CSS qualified names can be used in (for example) selectors and property
293309
values as described in other modules. Those modules must define handling
294310
of namespace prefixes that have not been properly declared. Such handling

0 commit comments

Comments
 (0)