Skip to content

Commit 8301df7

Browse files
authored
Defined @namespace using CSS syntax (fixes #649) (#4238)
1 parent 9b3ea2f commit 8301df7

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

css-namespaces-3/Overview.bs

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -145,21 +145,13 @@ Terminology</h3>
145145
<h3 id="syntax">
146146
Syntax</h3>
147147

148-
The syntax for the ''@namespace'' rule is as follows
149-
(using the notation from the <a href="https://www.w3.org/TR/CSS21/grammar.html">Grammar appendix of CSS 2.1</a> [[!CSS21]]):
148+
The syntax for the ''@namespace'' rule is:
150149

151150
<pre>
152-
namespace
153-
: NAMESPACE_SYM S* [namespace_prefix S*]? [STRING|URI] S* ';' S*
154-
;
155-
namespace_prefix
156-
: IDENT
157-
;
158-
</pre>
151+
@namespace <<namespace-prefix>>? [ <<string>> | <<url>> ] ;
159152

160-
with the new token:
161-
162-
<pre>@{N}{A}{M}{E}{S}{P}{A}{C}{E} {return NAMESPACE_SYM;}</pre>
153+
<dfn>&lt;namespace-prefix&gt;</dfn> = <<ident>>
154+
</pre>
163155

164156
Any ''@namespace'' rules must follow all @charset and @import rules
165157
and precede all other non-ignored at-rules and style rules in a style sheet.

0 commit comments

Comments
 (0)