Skip to content

Commit be91baa

Browse files
committed
[selectors] Add note clarifying that the active state propagates up from shadow trees.
1 parent 161569a commit be91baa

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

selectors/Overview.bs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2183,6 +2183,9 @@ The activation pseudo-class '':active''</h3>
21832183

21842184
The parent of an element that matches '':active'' also matches '':active''.
21852185

2186+
Note: When an element that is '':active'' is in a <a>shadow tree</a>,
2187+
the <a>host element</a> (and its parents) are also in the '':active'' state. (See [[css-scoping-1]])
2188+
21862189
Host languages may define additional ways in which an element can match '':active''.
21872190

21882191
Note: An element can be both

selectors/Overview.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
</p>
6161
<h1 class="p-name no-ref" id=title>Selectors Level 4</h1>
6262
<h2 class="no-num no-toc no-ref heading settled" id=subtitle><span class=content>Editor’s Draft,
63-
<span class=dt-updated><span class=value-title title=20141113>13 November 2014</span></span></span></h2>
63+
<span class=dt-updated><span class=value-title title=20141118>18 November 2014</span></span></span></h2>
6464
<div data-fill-with=spec-metadata><dl><dt>This version:<dd><a class=u-url href=http://dev.w3.org/csswg/selectors>http://dev.w3.org/csswg/selectors</a><dt>Latest version:<dd><a href=http://www.w3.org/TR/selectors/>http://www.w3.org/TR/selectors/</a><dt>Previous Versions:<dd><a href=http://www.w3.org/TR/2013/WD-selectors4-20130502/ rel=previous>http://www.w3.org/TR/2013/WD-selectors4-20130502/</a><dd><a href=http://www.w3.org/TR/2012/WD-selectors4-20120823/ rel=previous>http://www.w3.org/TR/2012/WD-selectors4-20120823/</a><dd><a href=http://www.w3.org/TR/2011/WD-selectors4-20110929/ rel=previous>http://www.w3.org/TR/2011/WD-selectors4-20110929/</a><dt>Feedback:<dd><span><a href="mailto:www-style@w3.org?subject=%5Bselectors%5D%20feedback">www-style@w3.org</a> with subject line “<kbd>[selectors] <var>… message topic …</var></kbd>” (<a href=http://lists.w3.org/Archives/Public/www-style/ rel=discussion>archives</a>)</span><dt class=editor>Editors:<dd class=editor><div class="p-author h-card vcard"><a class="p-name fn u-url url" href=http://fantasai.inkedblade.net/contact>Elika J. Etemad</a> (<span class="p-org org">Invited Expert</span>)</div><dd class=editor><div 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>)</div><dt>Former Editors:<dd><div class="p-author h-card vcard"><a class="p-name fn u-url url" href=http://www.tantek.com>Tantek Çelik</a></div><dd><div class="p-author h-card vcard"><span class="p-name fn">Daniel Glazman</span></div><dd><div class="p-author h-card vcard"><span class="p-name fn">Ian Hickson</span></div><dd><div class="p-author h-card vcard"><span class="p-name fn">Peter Linss</span></div><dd><div class="p-author h-card vcard"><span class="p-name fn">John Williams</span></div></dl></div>
6565
<div data-fill-with=warning></div>
6666
<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.
@@ -2417,6 +2417,9 @@ <h3 class="heading settled" data-level=9.2 id=the-active-pseudo><span class=secn
24172417

24182418
<p>The parent of an element that matches <a class=css data-link-type=maybe href=#active-pseudo title=:active>:active</a> also matches <a class=css data-link-type=maybe href=#active-pseudo title=:active>:active</a>.</p>
24192419

2420+
<p class=note role=note>Note: When an element that is <a class=css data-link-type=maybe href=#active-pseudo title=:active>:active</a> is in a <a data-link-type=dfn href=http://dev.w3.org/csswg/css-scoping-1/#shadow-tree title="shadow tree">shadow tree</a>,
2421+
the <a data-link-type=dfn href=http://dev.w3.org/csswg/css-scoping-1/#host-element0 title="host element">host element</a> (and its parents) are also in the <a class=css data-link-type=maybe href=#active-pseudo title=:active>:active</a> state. (See <a data-biblio-type=informative data-link-type=biblio href=#biblio-css-scoping-1 title=css-scoping-1>[css-scoping-1]</a>)</p>
2422+
24202423
<p>Host languages may define additional ways in which an element can match <a class=css data-link-type=maybe href=#active-pseudo title=:active>:active</a>.</p>
24212424

24222425
<p class=note role=note>Note: An element can be both

0 commit comments

Comments
 (0)