@@ -592,6 +592,10 @@ Cascading and Per-Element Highlight Styles</h3>
592592 of its <a>originating element</a> 's parent element
593593 (regardless of whether that property is an <a>inherited property</a> ).
594594
595+ <wpt>
596+ css/css-pseudo/cascade-highlight-004.html
597+ </wpt>
598+
595599 <div class="example">
596600 For example, if the following rules were applied:
597601 <pre>
@@ -608,6 +612,10 @@ Cascading and Per-Element Highlight Styles</h3>
608612 and orange text inside it.
609613 </div>
610614
615+ <wpt>
616+ css/css-pseudo/cascade-highlight-001.html
617+ </wpt>
618+
611619 <p class="advisement">
612620 Authors wanting multiple selections styles should use
613621 <strong> '':root::selection'' </strong>
@@ -638,6 +646,11 @@ Cascading and Per-Element Highlight Styles</h3>
638646 </pre>
639647 </div>
640648
649+ <wpt>
650+ css/css-pseudo/cascade-highlight-002.html
651+ </wpt>
652+
653+
641654 The UA should use the OS-default highlight colors for ''::selection''
642655 when neither 'color' nor 'background-color' has been specified by the author.
643656
@@ -655,12 +668,17 @@ Painting the Highlight</h3>
655668 over the corresponding portion of the <a>highlight overlay</a> ,
656669 painting it
657670 immediately below any positioned descendants
658- (i.e. just before step 8 in <a href="https://www.w3.org/TR/CSS21 /zindex.html">CSS2.1 §E.2</a> ).
671+ (i.e. just before step 8 in <a href="https://www.w3.org/TR/CSS22 /zindex.html#painting-order ">CSS2.2 §E.2</a> ).
659672 <!-- Its outline, if any, is painted immediately over its background. -->
660673 The ''::selection'' overlay is drawn
661674 over the ''::spelling-error'' overlay
662675 which is drawn over the ''::grammar-error'' overlay.
663676
677+ <wpt>
678+ css/css-pseudo/highlight-z-index-001.html
679+ css/css-pseudo/highlight-z-index-002.html
680+ </wpt>
681+
664682 A <a>highlight pseudo-element</a>
665683 also suppresses the drawing of any selected text
666684 (and any text decorations applied to that text).
0 commit comments