Content-Length: 223121 | pFad | http://github.com/jakearchibald/csswg-drafts/commit/32f5d94a3059bbba003115496646fa39a474d6fa

92 [selectors-4] Update to ::slotted #7474 · jakearchibald/csswg-drafts@32f5d94 · GitHub
Skip to content

Commit

Permalink
[selectors-4] Update to ::slotted w3c#7474
Browse files Browse the repository at this point in the history
  • Loading branch information
fantasai authored and jakearchibald committed Jan 16, 2023
1 parent 8625d75 commit 32f5d94
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions selectors-4/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -872,8 +872,8 @@ Internal Structure</h4>

<div class="example">
For example, ''::first-letter + span'' and ''::first-letter em'' are invalid selectors.
However, since ''::shadow'' is defined to have internal structure,
''::shadow > p'' is a valid selector.
However, since ''::slotted'' is defined to have internal structure,
''::slotted > p'' is a valid selector.
</div>

Note: A future specification may expand the capabilities of existing pseudo-elements,
Expand All @@ -885,7 +885,7 @@ Internal Structure</h4>

<div class='example'>
For example,
the ''::content'' pseudo-element treats elements distributed to it as its children.
the ''::slotted'' pseudo-element treats elements distributed to it as its children.
This means that, given the following fragment:

<pre>
Expand All @@ -897,7 +897,7 @@ Internal Structure</h4>
&lt;/div>
</pre>

the selectors ''div > span'' and ''div::shadow ::content > span'' select the same element via different paths.
the selectors ''div > span'' and ''div::shadow ::slotted > span'' select the same element via different paths.

However, when rendered,
the <code>&lt;span></code> element generates boxes as if it were the child of the <code>&lt;content></code> element,
Expand Down

0 comments on commit 32f5d94

Please sign in to comment.








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/jakearchibald/csswg-drafts/commit/32f5d94a3059bbba003115496646fa39a474d6fa

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy