Skip to content

Commit 0e84acb

Browse files
committed
[css-scoping] Clarify that :host-context() is allowed to match the host element.
1 parent d61c49c commit 0e84acb

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

css-scoping/Overview.bs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ Host Elements in a Shadow Tree</h4>
236236
not the other <a>shadow trees</a>.
237237

238238
The <a>host element</a> is not selectable by <strong>any means</strong>
239-
except for the '':host'' pseudo-class.
239+
except for the '':host'' and '':host-context()'' pseudo-classes.
240240
That is, in this context the <a>shadow host</a>
241241
has no tagname, ID, classes, or attributes,
242242
and the only additional information is has is that the '':host'' pseudo-class matches it.

css-scoping/Overview.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
</p>
5555
<h1 class="p-name no-ref" id=title>CSS Scoping Module Level 1</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=20140321>21 March 2014</span></span></span></h2>
57+
<span class=dt-updated><span class=value-title title=20140322>22 March 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/shadow-styling>http://dev.w3.org/csswg/shadow-styling</a><dt>Editor’s Draft:<dd><a href=http://dev.w3.org/csswg/shadow-styling>http://dev.w3.org/csswg/shadow-styling</a>
5959
<dt>Feedback:</dt>
6060
<dd><a href="mailto:www-style@w3.org?subject=%5Bcss-scoping%5D%20feedback">www-style@w3.org</a>
@@ -366,7 +366,7 @@ <h4 class="heading settled heading" data-level=3.1.1 id=host-element><span class
366366
not the other <a data-link-type=dfn href=#shadow-tree title="shadow trees">shadow trees</a>.
367367

368368
<p> The <a data-link-type=dfn href=#host-element0 title="host element">host element</a> is not selectable by <strong>any means</strong>
369-
except for the <a class=css data-link-type=maybe href=#selectordef-host0 title=:host>:host</a> pseudo-class.
369+
except for the <a class=css data-link-type=maybe href=#selectordef-host0 title=:host>:host</a> and <a class=css data-link-type=maybe href=#selectordef-host-context title=:host-context()>:host-context()</a> pseudo-classes.
370370
That is, in this context the <a data-link-type=dfn href=#shadow-host title="shadow host">shadow host</a>
371371
has no tagname, ID, classes, or attributes,
372372
and the only additional information is has is that the <a class=css data-link-type=maybe href=#selectordef-host0 title=:host>:host</a> pseudo-class matches it.

0 commit comments

Comments
 (0)