Skip to content

Commit ad4ead5

Browse files
committed
[css-highlight-api] Add comment about the default numerical priority for custom highlights.
1 parent 90862f1 commit ad4ead5

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

css-highlight-api-1/Overview.bs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,8 +352,10 @@ Priority of Overlapping Highlights</h4>
352352
This is used to determine the stacking order of the corresponding [=highlight overlay=]
353353
during painting operations (see [[#painting]]).
354354
A higher [=priority=] results in being above in the stacking order.
355+
A custom highlight will have a default numerical priority of 0
356+
if its {{Highlight/priority}} attribute has not been explicitly set.
355357

356-
When two ore more [=custom highlights=] have the same numerical priority,
358+
When two or more [=custom highlights=] have the same numerical priority,
357359
the one most recently [=registered=] has the higher effective [=priority=].
358360

359361
<div class=example id=overlap-highlight-ex>

0 commit comments

Comments
 (0)