Skip to content

Commit 3ca8d7f

Browse files
committed
[css-highlights-api] Fix markup
1 parent 5dae7b2 commit 3ca8d7f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

css-highlight-api-1/Overview.bs

+4-4
Original file line numberDiff line numberDiff line change
@@ -266,15 +266,15 @@ Registering Custom Highlights</h3>
266266
</xmp>
267267

268268
In the example above,
269-
the same [=custom highlight=] object is [=registered=] under the names 'foo' and 'bar'.
269+
the same [=custom highlight=] object is [=registered=] under the names <code>foo</code> and <code>bar</code>.
270270
Since each of the [=style rules=] target the same highlight and have the same [=specificity=],
271271
authors might expect the last rule to win in cascading order
272272
and the highlighted content to be green.
273273
However, each highlight name gets an independent set of highlight styles,
274274
and the highlight will be painted once per name.
275-
In this case, because 'foo' was registered before 'bar',
276-
the highlight will be first painted with 'foo''s color (green)
277-
and then with 'bar''s color (red).
275+
In this case, because <code>foo</code> was registered before <code>bar</code>,
276+
the highlight will be first painted with <code>foo</code>'s color (green)
277+
and then with <code>bar</code>'s color (red).
278278
As a result, the highlighted content will appear red.
279279
</div>
280280

0 commit comments

Comments
 (0)