@@ -27,6 +27,8 @@ Default Highlight: css
2727<pre class=link-defaults>
2828spec:css-color-4; type:property; text:color
2929spec:html; type:element; text:link
30+ spec:css-namespaces-3; type:dfn; text:namespace prefix
31+ spec:css-namespaces-3; type:dfn; text:CSS qualified name
3032</pre>
3133
3234<h2 id="introduction">Introduction</h2>
@@ -134,14 +136,36 @@ for some properties in [[CSS3-TRANSITIONS]] and
134136<h2 id="contents-of">
135137Contents of conditional group rules</h2>
136138
137- All [=conditional rules=] are defined to take a <<stylesheet>> in their block,
139+ All [=conditional group rules=] are defined to take a <<stylesheet>> in their block,
138140which means they can accept any rule that is normally allowed at the top-level of a stylesheet,
139141and not otherwise restricted.
140142(For example, an ''@import'' rule must appear at the actual beginning of a stylesheet,
141143and so is not valid inside of another rule.)
142144
143145Invalid or unknown rules inside the <<stylesheet>> must be considered invalid and ignored,
144- but do not invalidate the [=conditional rule=] .
146+ but do not invalidate the [=conditional group rule=] .
147+
148+ Any namespace prefixes used in a [=conditional group rule=]
149+ must have been declared,
150+ otherwise they are invalid.
151+
152+ <div class="example" id=ex-declared-ns> For example, this rule
153+ containing a [=CSS qualified name=] is valid,
154+ because the [=namespace prefix=] has been bound to a namespace url:
155+ <pre>
156+ @namespace x url(http://www.w3.org/1999/xlink);
157+ @supports (content: attr(x|href)) {
158+ // do something }
159+ </pre>
160+ </div>
161+
162+ <div class="example"> For example, to determine whether this rule is valid:
163+ <pre>
164+ @supports (content: attr(n|tooltip)) {
165+ // do something }
166+ </pre>
167+ The user agent will consult the namespace map to see whether a namespace url exists corresponding to the "n" prefix.
168+ </div>
145169
146170<h2 id="use">
147171Placement of conditional group rules</h2>
0 commit comments