8000 clarify namespace matching example · simonwuelker/csswg-drafts@ad270c6 · GitHub
Skip to content

Commit ad270c6

Browse files
committed
clarify namespace matching example
1 parent 0e4279b commit ad270c6

2 files changed

Lines changed: 10 additions & 6 deletions

File tree

css3-namespace/Overview.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -281,15 +281,17 @@ <h2 id=declaration><span class=secno>3. </span>Declaring namespaces: the
281281
-->&lt;qml:elem xmlns:qml="http://example.com/q-markup">&lt;/qml:elem><!--
282282
--></pre>
283283

284-
<p>and the following <code>@namespace</code> declarations:</p>
284+
<p>and the following <code>@namespace</code> declarations at the
285+
beginning of a CSS file:</p>
285286

286287
<pre><!--
287288
-->@namespace Q "http://example.com/q-markup";
288289
<!---->@namespace lq "http://example.com/q-markup";<!--
289290
--></pre>
290291

291-
<p>The selectors <code>Q|elem</code> and <code>lq|elem</code> will both
292-
match the element <code>qml:elem</code>.</p>
292+
<p>The selectors <code>Q|elem</code> and <code>lq|elem</code> in that CSS
293+
file would both match the element <code>qml:elem</code>. (The selector
294+
<code>qml|elem</code> would be invalid.)</p>
293295
</div>
294296

295297
<h3 id=syntax><span class=secno>3.1 </span>Syntax</h3>

css3-namespace/Overview.src.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,13 +174,15 @@ <h2 id="declaration">Declaring namespaces: the <code>@namespace</code> rule</h2>
174174
<pre><!--
175175
-->&lt;qml:elem xmlns:qml="http://example.com/q-markup">&lt;/qml:elem><!--
176176
--></pre>
177-
<p>and the following <code>@namespace</code> declarations:</p>
177+
<p>and the following <code>@namespace</code> declarations at the
178+
beginning of a CSS file:</p>
178179
<pre><!--
179180
-->@namespace Q "http://example.com/q-markup";
180181
<!---->@namespace lq "http://example.com/q-markup";<!--
181182
--></pre>
182-
<p>The selectors <code>Q|elem</code> and <code>lq|elem</code> will both
183-
match the element <code>qml:elem</code>.</p>
183+
<p>The selectors <code>Q|elem</code> and <code>lq|elem</code> in that CSS
184+
file would both match the element <code>qml:elem</code>. (The selector
185+
<code>qml|elem</code> would be invalid.)</p>
184186
</div>
185187

186188
<h3 id="syntax">Syntax</h3>

0 commit comments

Comments
 (0)