Skip to content

Commit aed3fa1

Browse files
committed
[css-shadow-parts-1][editorial] No need to escape gt
1 parent 5f45e20 commit aed3fa1

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

css-shadow-parts-1/Overview.bs

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -165,18 +165,18 @@ The "part name" should be considered similar to a class,
165165
not an id or tagname.
166166

167167
<pre class="example">
168-
&lt;style&gt;
168+
&lt;style>
169169
c-e<b>::part(textspan)</b> { color: red; }
170-
&lt;/style&gt;
170+
&lt;/style>
171171

172-
&lt;template id="c-e-template"&gt;
173-
&lt;span <b>part="textspan"</b>&gt;This text will be red&lt;/span&gt;
174-
&lt;/template&gt;
175-
&lt;c-e&gt;&lt;/c-e&gt;
176-
&lt;script&gt;
172+
&lt;template id="c-e-template">
173+
&lt;span <b>part="textspan"</b>>This text will be red&lt;/span>
174+
&lt;/template>
175+
&lt;c-e>&lt;/c-e>
176+
&lt;script>
177177
// Add template as custom element c-e
178178
...
179-
&lt;/script&gt;
179+
&lt;/script>
180180
</pre>
181181

182182
Forwarding a Shadow Element: the <{html-global/exportparts}> attribute {#exportparts-attr}
@@ -207,32 +207,32 @@ Each part mapping is one of:
207207
Note: It's okay to map a sub-part to several names.
208208

209209
<pre class="example">
210-
&lt;style&gt;
210+
&lt;style>
211211
c-e<b>::part(textspan)</b> { color: red; }
212-
&lt;/style&gt;
212+
&lt;/style>
213213

214-
&lt;template id="c-e-outer-template"&gt;
215-
&lt;c-e-inner <b>exportparts="innerspan: textspan"</b>&gt;&lt;/c-e-inner&gt;
216-
&lt;/template&gt;
214+
&lt;template id="c-e-outer-template">
215+
&lt;c-e-inner <b>exportparts="innerspan: textspan"</b>>&lt;/c-e-inner>
216+
&lt;/template>
217217

218-
&lt;template id="c-e-inner-template"&gt;
219-
&lt;span <b>part="innerspan"</b>&gt;
218+
&lt;template id="c-e-inner-template">
219+
&lt;span <b>part="innerspan"</b>>
220220
This text will be red because the containing shadow
221221
host forwards <b>innerspan</b> to the document as "textspan"
222222
and the document style matches it.
223-
&lt;/span&gt;
224-
&lt;span <b>part="textspan"</b>&gt;
223+
&lt;/span>
224+
&lt;span <b>part="textspan"</b>>
225225
This text will not be red because <b>textspan</b> in the document style
226226
cannot match against the part inside the inner custom element
227227
if it is not forwarded.
228-
&lt;/span&gt;
229-
&lt;/template&gt;
228+
&lt;/span>
229+
&lt;/template>
230230

231-
&lt;c-e&gt;&lt;/c-e&gt;
232-
&lt;script&gt;
231+
&lt;c-e>&lt;/c-e>
232+
&lt;script>
233233
// Add template as custom elements c-e-inner, c-e-outer
234234
...
235-
&lt;/script&gt;
235+
&lt;/script>
236236
</pre>
237237

238238
Selecting a Shadow Element: the ''::part()'' pseudo-element {#part}

0 commit comments

Comments
 (0)