Skip to content

Commit

Permalink
rephrase to make it clear which shadow root
Browse files Browse the repository at this point in the history
  • Loading branch information
fergald committed May 7, 2018
1 parent 7934e25 commit cc635be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions css-shadow-parts-1/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -133,17 +133,17 @@ Each part mapping is one of:

<dl class=switch>
: <code>ident</code>
:: Adds «[ ident → el ]» to the <a>shadow root's</a> <a>shadow part map</a>.
:: Adds «[ ident → el ]» to the <a>shadow part map</a> of the <a>shadow root</a> containing el.

: <code>ident1 => ident2</code>
:: If el is a <a>shadow host</a>,
and it's <a>shadow root's</a> <a>shadow part map</a> |partMap| [=map/contains=] ident1,
then this adds «[ ident2 → |partMap|[ident1] ]» to the <a>shadow root's</a> <a>shadow part map</a>.
then this adds «[ ident2 → |partMap|[ident1] ]» to the <a>shadow part map</a> of the <a>shadow root</a> containing el.

: <code>* => prefix*</code>
:: If el is a <a>shadow host</a>,
then [=map/for each=] |ident| → |subEl| in el's <a>shadow root's</a> <a>shadow part map</a>,
«[ prefix + |ident| → |subEl| ]» is added to the <a>shadow root's</a> <a>shadow part map</a>.
«[ prefix + |ident| → |subEl| ]» is added to the <a>shadow part map</a> of the <a>shadow root</a> containing el.

: anything else
:: Ignored for error-recovery / future compat.
Expand Down

0 comments on commit cc635be

Please sign in to comment.