Skip to content

Commit 906bd22

Browse files
committed
[shadow-styling] Switch from /foo to /foo/ syntax.
--HG-- extra : rebase_source : 9ddb7b955dd62bef34ada3950688aaa1f52d28c5
1 parent e5e6ea6 commit 906bd22

2 files changed

Lines changed: 40 additions & 39 deletions

File tree

shadow-styling/Overview.html

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
</p>
5555
<h1 class="p-name no-ref" id=title>Shadow DOM Styling</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=20140210>10 February 2014</span></span></span></h2>
57+
<span class=dt-updated><span class=value-title title=20140213>13 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/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=%5Bshadow-styling%5D%20feedback">www-style@w3.org</a>
@@ -114,10 +114,10 @@ <h2 class="no-num no-toc no-ref heading settled heading" id=contents><span class
114114
Extensions to the Selectors Data Model</a><ul class=toc><li><a href=#host-element><span class=secno>3.1</span>
115115
Host Elements in a Shadow Tree</a></ul><li><a href=#inheritance><span class=secno>4</span>
116116
Shadow DOM Combinators</a><ul class=toc><li><a href=#shadow-combinator><span class=secno>4.1</span>
117-
Selecting Into A Shadow Tree: the <span class=css data-link-type=maybe title=/shadow>/shadow</span> combinator</a><li><a href=#shadow-all-combinator><span class=secno>4.2</span>
117+
Selecting Into A Shadow Tree: the <span class=css data-link-type=maybe title=/shadow/>/shadow/</span> combinator</a><li><a href=#shadow-all-combinator><span class=secno>4.2</span>
118118
Selecting All Elements In A Shadow Tree: the <span class=css data-link-type=maybe title=/shadow-all>/shadow-all</span> combinator</a><li><a href=#shadow-deep-combinator><span class=secno>4.3</span>
119-
Selecting Through All Shadows: the <span class=css data-link-type=maybe title=/shadow-deep>/shadow-deep</span> combinator</a><li><a href=#content-combinator><span class=secno>4.4</span>
120-
Selecting Distributed Elements: the <span class=css data-link-type=maybe title=/content>/content</span> combinator</a></ul><li><a href=#selectors><span class=secno>5</span>
119+
Selecting Through All Shadows: the <span class=css data-link-type=maybe title=/shadow-deep/>/shadow-deep/</span> combinator</a><li><a href=#content-combinator><span class=secno>4.4</span>
120+
Selecting Distributed Elements: the <span class=css data-link-type=maybe title=/content/>/content/</span> combinator</a></ul><li><a href=#selectors><span class=secno>5</span>
121121
Shadow DOM Selectors</a><ul class=toc><li><a href=#top-selector><span class=secno>5.1</span>
122122
Selecting Root-like Elements: the <span class=css data-link-type=maybe title=:top>:top</span> pseudo-class</a><li><a href=#host-selector><span class=secno>5.2</span>
123123
Selecting the Host Element: the <span class=css data-link-type=maybe title=:host>:host</span> and <span class=css data-link-type=maybe title=:host()>:host()</span> pseudo-classes</a><li><a href=#ancestor-selector><span class=secno>5.3</span>
@@ -206,7 +206,7 @@ <h2 class="heading settled heading" data-level=3 id=selectors-data-model><span c
206206
which does not include the <a data-link-type=dfn href=#shadow-tree title="shadow trees">shadow trees</a> or <a data-link-type=dfn href=#distribution-list title="distribution lists">distribution lists</a> of the element.
207207

208208
<p> When a selector is matched against a <a data-link-type=dfn href=#shadow-tree title="shadow tree">shadow tree</a>,
209-
the <a data-link-type=dfn title="initial selector match list">initial selector match list</a>
209+
the <a data-link-type=dfn href=http://dev.w3.org/csswg/selectors-4/#initial-selector-match-list title="initial selector match list">initial selector match list</a>
210210
is the <a data-link-type=dfn href=#shadow-host title="shadow host">shadow host</a>,
211211
followed by all the <a data-link-type=dfn href=#top-level-element title="top-level elements">top-level elements</a> of the <a data-link-type=dfn href=#shadow-tree title="shadow tree">shadow tree</a>
212212
and their descendants,
@@ -262,13 +262,13 @@ <h2 class="heading settled heading" data-level=4 id=inheritance><span class=secn
262262
<p> Shadow DOM defines several new combinators
263263
to help style the contents of <a data-link-type=dfn href=#shadow-tree title="shadow trees">shadow trees</a> and <a data-link-type=dfn href=#distribution-list title="distribution lists">distribution lists</a>.
264264

265-
<p class=issue id=issue-7dae9ca8><a class=self-link href=#issue-7dae9ca8></a>
266-
I’m assuming here that "/foo" is the syntax we’ll agree on for named combinators.
265+
<p class=issue id=issue-46cdc4d6><a class=self-link href=#issue-46cdc4d6></a>
266+
I’m assuming here that "/foo/" is the syntax we’ll agree on for named combinators.
267267

268268
<h3 class="heading settled heading" data-level=4.1 id=shadow-combinator><span class=secno>4.1 </span><span class=content>
269-
Selecting Into A Shadow Tree: the <a class=css data-link-type=maybe href=#selectordef-shadow title=/shadow>/shadow</a> combinator</span><a class=self-link href=#shadow-combinator></a></h3>
269+
Selecting Into A Shadow Tree: the <a class=css data-link-type=maybe href=#selectordef-shadow title=/shadow/>/shadow/</a> combinator</span><a class=self-link href=#shadow-combinator></a></h3>
270270

271-
<p> When a <dfn class=css-code data-dfn-type=selector data-export="" id=selectordef-shadow>/shadow<a class=self-link href=#selectordef-shadow></a></dfn> combinator is encountered in a selector,
271+
<p> When a <dfn class=css-code data-dfn-type=selector data-export="" id=selectordef-shadow>/shadow/<a class=self-link href=#selectordef-shadow></a></dfn> combinator is encountered in a selector,
272272
first filter the <a data-link-type=dfn href=http://dev.w3.org/csswg/selectors-4/#selector-match-list title="selector match list">selector match list</a> to only include elements with <a data-link-type=dfn href=#shadow-tree title="shadow trees">shadow trees</a>.
273273
Then replace every element in the <a data-link-type=dfn href=http://dev.w3.org/csswg/selectors-4/#selector-match-list title="selector match list">selector match list</a>
274274
with the <a data-link-type=dfn href=#top-level-element title="top-level elements">top-level elements</a> of each <a data-link-type=dfn href=#shadow-tree title="shadow tree">shadow tree</a> of the element.
@@ -286,18 +286,18 @@ <h3 class="heading settled heading" data-level=4.1 id=shadow-combinator><span cl
286286
&lt;/x-foo&gt;
287287
</pre>
288288
<p> For a stylesheet in the outer document,
289-
<span class=css data-link-type=maybe title="x-foo /shadow span">x-foo /shadow span</span> matches <span class=css data-link-type=maybe title=#top>#top</span>,
289+
<span class=css data-link-type=maybe title="x-foo /shadow/ span">x-foo /shadow/ span</span> matches <span class=css data-link-type=maybe title=#top>#top</span>,
290290
but not <span class=css data-link-type=maybe title=#not-top>#not-top</span>,
291291
because it’s not a <a data-link-type=dfn href=#top-level-element title="top-level element">top-level element</a> in the <a data-link-type=dfn href=#shadow-tree title="shadow tree">shadow tree</a>.
292292

293293
<p> If one wanted to target <span class=css data-link-type=maybe title=#not-top>#not-top</span>,
294-
one way to do it would be with <span class=css data-link-type=maybe title="x-foo /shadow div > span">x-foo /shadow div &gt; span</span>.
294+
one way to do it would be with <span class=css data-link-type=maybe title="x-foo /shadow/ div > span">x-foo /shadow/ div &gt; span</span>.
295295
</div>
296296

297297
<h3 class="heading settled heading" data-level=4.2 id=shadow-all-combinator><span class=secno>4.2 </span><span class=content>
298-
Selecting All Elements In A Shadow Tree: the <a class=css data-link-type=maybe href=#selectordef-shadow-all title=/shadow-all>/shadow-all</a> combinator</span><a class=self-link href=#shadow-all-combinator></a></h3>
298+
Selecting All Elements In A Shadow Tree: the <span class=css data-link-type=maybe title=/shadow-all>/shadow-all</span> combinator</span><a class=self-link href=#shadow-all-combinator></a></h3>
299299

300-
<p> When a <dfn class=css-code data-dfn-type=selector data-export="" id=selectordef-shadow-all>/shadow-all<a class=self-link href=#selectordef-shadow-all></a></dfn> combinator is encountered in a selector,
300+
<p> When a <dfn class=css-code data-dfn-type=selector data-export="" id=selectordef-shadow-all>/shadow-all/<a class=self-link href=#selectordef-shadow-all></a></dfn> combinator is encountered in a selector,
301301
first filter the <a data-link-type=dfn href=http://dev.w3.org/csswg/selectors-4/#selector-match-list title="selector match list">selector match list</a> to only include elements with <a data-link-type=dfn href=#shadow-tree title="shadow trees">shadow trees</a>.
302302
Then replace every element in the <a data-link-type=dfn href=http://dev.w3.org/csswg/selectors-4/#selector-match-list title="selector match list">selector match list</a>
303303
with the <a data-link-type=dfn href=#top-level-element title="top-level elements">top-level elements</a> of each <a data-link-type=dfn href=#shadow-tree title="shadow tree">shadow tree</a> of the element,
@@ -322,16 +322,16 @@ <h3 class="heading settled heading" data-level=4.2 id=shadow-all-combinator><spa
322322
&lt;/x-foo&gt;
323323
</pre>
324324
<p> For a stylesheet in the outer document,
325-
the selector <span class=css data-link-type=maybe title="x-foo /shadow-all span">x-foo /shadow-all span</span>
325+
the selector <span class=css data-link-type=maybe title="x-foo /shadow-all/ span">x-foo /shadow-all/ span</span>
326326
selects <span class=css data-link-type=maybe title=#top>#top</span> and <span class=css data-link-type=maybe title=#not-top>#not-top</span>.
327327
It does not match <span class=css data-link-type=maybe title=#nested>#nested</span>,
328328
as that element is further nested in the <a data-link-type=dfn href=#shadow-tree title="shadow tree">shadow tree</a> of the <code>&lt;x-bar&gt;</code> component.
329329
</div>
330330

331331
<h3 class="heading settled heading" data-level=4.3 id=shadow-deep-combinator><span class=secno>4.3 </span><span class=content>
332-
Selecting Through All Shadows: the <a class=css data-link-type=maybe href=#selectordef-shadow-deep title=/shadow-deep>/shadow-deep</a> combinator</span><a class=self-link href=#shadow-deep-combinator></a></h3>
332+
Selecting Through All Shadows: the <a class=css data-link-type=maybe href=#selectordef-shadow-deep title=/shadow-deep/>/shadow-deep/</a> combinator</span><a class=self-link href=#shadow-deep-combinator></a></h3>
333333

334-
<p> When a <dfn class=css-code data-dfn-type=selector data-export="" id=selectordef-shadow-deep>/shadow-deep<a class=self-link href=#selectordef-shadow-deep></a></dfn> combinator is encountered in a selector,
334+
<p> When a <dfn class=css-code data-dfn-type=selector data-export="" id=selectordef-shadow-deep>/shadow-deep/<a class=self-link href=#selectordef-shadow-deep></a></dfn> combinator is encountered in a selector,
335335
replace every element in the <a data-link-type=dfn href=http://dev.w3.org/csswg/selectors-4/#selector-match-list title="selector match list">selector match list</a>
336336
with every element reachable from the original element
337337
by traversing any number of child lists or shadow trees.
@@ -354,15 +354,15 @@ <h3 class="heading settled heading" data-level=4.3 id=shadow-deep-combinator><sp
354354
&lt;/x-foo&gt;
355355
</pre>
356356
<p> For a stylesheet in the outer document,
357-
the selector <span class=css data-link-type=maybe title="x-foo /shadow-deep span">x-foo /shadow-deep span</span>
357+
the selector <span class=css data-link-type=maybe title="x-foo /shadow-deep/ span">x-foo /shadow-deep/ span</span>
358358
selects all three of <code>&lt;span&gt;</code> elements:
359359
<span class=css data-link-type=maybe title=#top>#top</span>, <span class=css data-link-type=maybe title=#not-top>#not-top</span>, <em>and</em> <span class=css data-link-type=maybe title=#nested>#nested</span>.
360360
</div>
361361

362362
<h3 class="heading settled heading" data-level=4.4 id=content-combinator><span class=secno>4.4 </span><span class=content>
363-
Selecting Distributed Elements: the <a class=css data-link-type=maybe href=#selectordef-content title=/content>/content</a> combinator</span><a class=self-link href=#content-combinator></a></h3>
363+
Selecting Distributed Elements: the <a class=css data-link-type=maybe href=#selectordef-content title=/content/>/content/</a> combinator</span><a class=self-link href=#content-combinator></a></h3>
364364

365-
<p> When a <dfn class=css-code data-dfn-type=selector data-export="" id=selectordef-content>/content<a class=self-link href=#selectordef-content></a></dfn> combinator is encountered in a selector,
365+
<p> When a <dfn class=css-code data-dfn-type=selector data-export="" id=selectordef-content>/content/<a class=self-link href=#selectordef-content></a></dfn> combinator is encountered in a selector,
366366
first filter the <a data-link-type=dfn href=http://dev.w3.org/csswg/selectors-4/#selector-match-list title="selector match list">selector match list</a> to only include elements with <a data-link-type=dfn href=#distribution-list title="distribution lists">distribution lists</a>.
367367
Then replace every element in the <a data-link-type=dfn href=http://dev.w3.org/csswg/selectors-4/#selector-match-list title="selector match list">selector match list</a>
368368
with the elements in the <a data-link-type=dfn href=#distribution-list title="distribution list">distribution list</a> of each element.
@@ -385,7 +385,7 @@ <h3 class="heading settled heading" data-level=4.4 id=content-combinator><span c
385385
&lt;/x-foo&gt;
386386
</pre>
387387
<p> For a stylesheet within the <a data-link-type=dfn href=#shadow-tree title="shadow tree">shadow tree</a>,
388-
a selector like <span class=css data-link-type=maybe title="* /content div">* /content div</span>
388+
a selector like <span class=css data-link-type=maybe title="* /content/ div">* /content/ div</span>
389389
selects <span class=css data-link-type=maybe title=#one>#one</span> and <span class=css data-link-type=maybe title=#three>#three</span>,
390390
as they’re the elements distributed by the <code>&lt;content&gt;</code> element.
391391
</div>
@@ -645,15 +645,15 @@ <h2 class="no-num no-ref heading settled heading" id=index><span class=content>
645645
<div data-fill-with=index><ul class=indexlist>
646646
<li>active shadow tree, <a href=#active-shadow-tree title="section 2.1">2.1</a>
647647
<li>:ancestor(), <a href=#selectordef-ancestor title="section 5.3">5.3</a>
648-
<li>/content, <a href=#selectordef-content title="section 4.4">4.4</a>
648+
<li>/content/, <a href=#selectordef-content title="section 4.4">4.4</a>
649649
<li>distribution list, <a href=#distribution-list title="section 2.2">2.2</a>
650650
<li>:host(), <a href=#selectordef-host title="section 5.2">5.2</a>
651651
<li>:host, <a href=#selectordef-host0 title="section 5.2">5.2</a>
652652
<li>host element, <a href=#host-element0 title="section 2.1">2.1</a>
653653
<li>insertion point, <a href=#insertion-point title="section 2.2">2.2</a>
654-
<li>/shadow, <a href=#selectordef-shadow title="section 4.1">4.1</a>
655-
<li>/shadow-all, <a href=#selectordef-shadow-all title="section 4.2">4.2</a>
656-
<li>/shadow-deep, <a href=#selectordef-shadow-deep title="section 4.3">4.3</a>
654+
<li>/shadow/, <a href=#selectordef-shadow title="section 4.1">4.1</a>
655+
<li>/shadow-all/, <a href=#selectordef-shadow-all title="section 4.2">4.2</a>
656+
<li>/shadow-deep/, <a href=#selectordef-shadow-deep title="section 4.3">4.3</a>
657657
<li>shadow host, <a href=#shadow-host title="section 2.1">2.1</a>
658658
<li>shadow tree, <a href=#shadow-tree title="section 2.1">2.1</a>
659659
<li>:top, <a href=#selectordef-top title="section 5.1">5.1</a>
@@ -666,9 +666,9 @@ <h2 class="no-num no-ref heading settled heading" id=property-index><span class=
666666

667667

668668
<h2 class="no-num heading settled" id=issues-index><span class=content>Issues Index</span><a class=self-link href=#issues-index></a></h2><div style="counter-reset: issue"><div class=issue>
669-
I’m assuming here that "/foo" is the syntax we’ll agree on for named combinators.
669+
I’m assuming here that "/foo/" is the syntax we’ll agree on for named combinators.
670670

671-
<a href=#issue-7dae9ca8></a></div><div class=issue>
671+
<a href=#issue-46cdc4d6></a></div><div class=issue>
672672
I need to go look up what was decided/written down
673673
for the cascading precedence
674674
of rules from outside a shadow tree reaching in, via the /shadow-* combinators,

0 commit comments

Comments
 (0)