Skip to content

Commit 0e255fa

Browse files
committed
[selectors-nonelement] Reword CSS validity paragraph.
1 parent 86aa405 commit 0e255fa

2 files changed

Lines changed: 37 additions & 42 deletions

File tree

selectors-nonelement/Overview.bs

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -46,21 +46,17 @@ Attribute node selector</h3>
4646
if such an attribute exists on the <a spec=selectors>originating element</a>.
4747

4848
<div class="example">
49-
For example,
50-
the selector ''::attr(title)'' selects all the <code>title</code> attributes in the document.
51-
</div>
49+
The following ITS rules use an attribute node selector to switch off translatability of <code>title</code> attributes on <code>abbr</code> elements.
5250

53-
<div class="example">
54-
The following ITS rules use attribute node selector to switch off
55-
translatability of <code>title</code> attribute on <code>abbr</code> elements.
5651
<pre>
57-
&lt;rules xmlns="http://www.w3.org/2005/11/its"
58-
version="2.0"
59-
queryLanguage="css">
60-
&lt;translateRule selector="abbr::attr(title)" translate="no"/>
61-
&lt;/rules>
52+
&lt;rules xmlns="http://www.w3.org/2005/11/its"
53+
version="2.0"
54+
queryLanguage="css">
55+
&lt;translateRule selector="abbr::attr(title)" translate="no"/>
56+
&lt;/rules>
6257
</pre>
6358

6459
</div>
6560

66-
In CSS, <a>attribute node pseudo-elements</a> never generate boxes.
61+
Although entirely valid in Selectors used in the scope of CSS,
62+
attribute node pseudo-elements never generate boxes.

selectors-nonelement/Overview.html

Lines changed: 29 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,15 @@
5454
</p>
5555
<h1 class="p-name no-ref" id=title>Non-element Selectors</h1>
5656
<h2 class="no-num no-toc no-ref heading settled heading" id=subtitle><span class=content>Editor’s Draft,
57-
<span class=dt-updated><span class=value-title title=20140213>13 February 2014</span></span></span></h2>
57+
<span class=dt-updated><span class=value-title title=20140215>15 February 2014</span></span></span></h2>
5858
<div data-fill-with=spec-metadata><dl><dt>This version:<dd><a class=u-url href=http://dev.w3.org/csswg/selectors-nonelement/>http://dev.w3.org/csswg/selectors-nonelement/</a><dt>Editor’s Draft:<dd><a href=http://dev.w3.org/csswg/selectors-nonelement/>http://dev.w3.org/csswg/selectors-nonelement/</a>
5959
<dt>Feedback:</dt>
6060
<dd><a href="mailto:www-style@w3.org?subject=%5Bselectors-nonelement%5D%20feedback">www-style@w3.org</a>
6161
with subject line
6262
<kbd>[selectors-nonelement] <var>… message topic …</var></kbd>”(<a href=http://lists.w3.org/Archives/Public/www-style/ rel=discussion>archives</a>)<dt>Test Suite:<dd>None Yet<dt>Editors:
6363
<dd class="p-author h-card vcard"><a class="p-name fn u-email email" href=mailto:jirka@kosek.cz>Jirka Kosek</a> (<span class="p-org org">Invited Expert</span>)<dd class="p-author h-card vcard"><a class="p-name fn u-url url" href=http://xanthir.com/contact/>Tab Atkins Jr.</a> (<span class="p-org org">Google</span>)</dl></div>
6464
<div data-fill-with=warning></div>
65-
<p class=copyright data-fill-with=copyright><a href=http://www.w3.org/Consortium/Legal/ipr-notice#Copyright>Copyright</a> © 2013 <a href=http://www.w3.org/><abbr title="World Wide Web Consortium">W3C</abbr></a><sup>®</sup> (<a href=http://www.csail.mit.edu/><abbr title="Massachusetts Institute of Technology">MIT</abbr></a>, <a href=http://www.ercim.eu/><abbr title="European Research Consortium for Informatics and Mathematics">ERCIM</abbr></a>, <a href=http://www.keio.ac.jp/>Keio</a>, <a href=http://ev.buaa.edu.cn/>Beihang</a>), All Rights Reserved. W3C <a href=http://www.w3.org/Consortium/Legal/ipr-notice#Legal_Disclaimer>liability</a>, <a href=http://www.w3.org/Consortium/Legal/ipr-notice#W3C_Trademarks>trademark</a> and <a href=http://www.w3.org/Consortium/Legal/copyright-documents>document use</a> rules apply.
65+
<p class=copyright data-fill-with=copyright><a href=http://www.w3.org/Consortium/Legal/ipr-notice#Copyright>Copyright</a> © 2014 <a href=http://www.w3.org/><abbr title="World Wide Web Consortium">W3C</abbr></a><sup>®</sup> (<a href=http://www.csail.mit.edu/><abbr title="Massachusetts Institute of Technology">MIT</abbr></a>, <a href=http://www.ercim.eu/><abbr title="European Research Consortium for Informatics and Mathematics">ERCIM</abbr></a>, <a href=http://www.keio.ac.jp/>Keio</a>, <a href=http://ev.buaa.edu.cn/>Beihang</a>), All Rights Reserved. W3C <a href=http://www.w3.org/Consortium/Legal/ipr-notice#Legal_Disclaimer>liability</a>, <a href=http://www.w3.org/Consortium/Legal/ipr-notice#W3C_Trademarks>trademark</a> and <a href=http://www.w3.org/Consortium/Legal/copyright-documents>document use</a> rules apply.
6666
</p>
6767
<hr title="Separator for header">
6868
</div>
@@ -104,22 +104,25 @@ <h2 class="no-num no-toc no-ref heading settled heading" id=status><span class=c
104104
must disclose the information in accordance with <a href=http://www.w3.org/Consortium/Patent-Policy-20040205/#sec-Disclosure>section 6 of the W3C Patent Policy</a>.</div>
105105
<div data-fill-with=at-risk></div>
106106

107-
<h2 class="no-num no-toc no-ref heading settled heading" id=contents><span class=content>Table of contents</span></h2>
108-
<div data-fill-with=table-of-contents><ul class=toc><li><a href=#intro><span class=secno>1</span>
109-
Introduction</a><li><a href=#non-element-selectors><span class=secno>2</span>
110-
Non-element Selectors</a><ul class=toc><li><a href=#attribute-node-selector><span class=secno>2.1</span>
111-
Attribute node selector</a></ul><li><a href=#conformance><span class=secno></span>
112-
Conformance</a><ul class=toc><li><a href=#conventions><span class=secno></span>
113-
Document conventions</a><li><a href=#conformance-classes><span class=secno></span>
114-
Conformance classes</a><li><a href=#partial><span class=secno></span>
115-
Partial implementations</a><li><a href=#experimental><span class=secno></span>
116-
Experimental implementations</a><li><a href=#testing><span class=secno></span>
117-
Non-experimental implementations</a></ul><li><a href=#references><span class=secno></span>
118-
References</a><ul class=toc><li><a href=#normative><span class=secno></span>
119-
Normative References</a><li><a href=#informative><span class=secno></span>
120-
Informative References</a></ul><li><a href=#index><span class=secno></span>
121-
Index</a><li><a href=#property-index><span class=secno></span>
122-
Property index</a></ul></div>
107+
<h2 class="no-num no-toc no-ref heading settled heading" id=contents><span class=content>Table of Contents</span></h2>
108+
<div data-fill-with=table-of-contents><ul class=toc>
109+
<li><a href=#intro><span class=secno>1</span> Introduction</a>
110+
<li><a href=#non-element-selectors><span class=secno>2</span> Non-element Selectors</a>
111+
<ul class=toc>
112+
<li><a href=#attribute-node-selector><span class=secno>2.1</span> Attribute node selector</a></ul>
113+
<li><a href=#conformance><span class=secno></span> Conformance</a>
114+
<ul class=toc>
115+
<li><a href=#conventions><span class=secno></span> Document conventions</a>
116+
<li><a href=#conformance-classes><span class=secno></span> Conformance classes</a>
117+
<li><a href=#partial><span class=secno></span> Partial implementations</a>
118+
<li><a href=#experimental><span class=secno></span> Experimental implementations</a>
119+
<li><a href=#testing><span class=secno></span> Non-experimental implementations</a></ul>
120+
<li><a href=#references><span class=secno></span> References</a>
121+
<ul class=toc>
122+
<li><a href=#normative><span class=secno></span> Normative References</a>
123+
<li><a href=#informative><span class=secno></span> Informative References</a></ul>
124+
<li><a href=#index><span class=secno></span> Index</a>
125+
<li><a href=#property-index><span class=secno></span> Property index</a></ul></div>
123126

124127

125128

@@ -157,22 +160,18 @@ <h3 class="heading settled heading" data-level=2.1 id=attribute-node-selector><s
157160
if such an attribute exists on the <a data-link-spec=selectors data-link-type=dfn href=http://dev.w3.org/csswg/selectors-4/#originating-element title="originating element">originating element</a>.
158161

159162
<div class=example>
160-
For example,
161-
the selector <span class=css data-link-type=maybe title=::attr(title)>::attr(title)</span> selects all the <code>title</code> attributes in the document.
162-
</div>
163+
The following ITS rules use an attribute node selector to switch off translatability of <code>title</code> attributes on <code>abbr</code> elements.
163164

164-
<div class=example>
165-
The following ITS rules use attribute node selector to switch off
166-
translatability of <code>title</code> attribute on <code>abbr</code> elements.
167-
<pre>&lt;rules xmlns="http://www.w3.org/2005/11/its"
168-
version="2.0"
169-
queryLanguage="css"&gt;
170-
&lt;translateRule selector="abbr::attr(title)" translate="no"/&gt;
171-
&lt;/rules&gt;
165+
<pre> &lt;rules xmlns="http://www.w3.org/2005/11/its"
166+
version="2.0"
167+
queryLanguage="css"&gt;
168+
&lt;translateRule selector="abbr::attr(title)" translate="no"/&gt;
169+
&lt;/rules&gt;
172170
</pre>
173171
</div>
174172

175-
<p> In CSS, <a data-link-type=dfn href=#attribute-node-pseudo-element title="attribute node pseudo-elements">attribute node pseudo-elements</a> never generate boxes.
173+
<p> Although entirely valid in Selectors used in the scope of CSS,
174+
attribute node pseudo-elements never generate boxes.
176175

177176
<h2 class="no-ref no-num heading settled heading" id=conformance><span class=content>
178177
Conformance</span><a class=self-link href=#conformance></a></h2>

0 commit comments

Comments
 (0)