Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions css-highlight-api-1/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,13 @@ Creating Custom Highlights</h3>
authors can chose between using {{Range}} objects and {{StaticRange}} objects.
See [[#range-invalidation]] for more details about this choice and its implications.

Note: When creating {{Range}} objects for use in [=custom highlights=], it is
suggested that authors avoid placing [=range=] endpoints in the middle of a [=grapheme=],
such as when a visible unit of text is comprised of multiple [=Unicode code points=].
Doing so can create undesirable highlighting effects, such as highlighting only part of
an Indic syllable. In addition, care needs to be taken to avoid placing an endpoint
in the middle of a [=supplementary character=].

<xmp class="idl">
enum HighlightType {
"highlight",
Expand Down