diff --git a/css/css-pseudo/active-selection-012.html b/css/css-pseudo/active-selection-012.html index e4e291f92a225c..d1612ece0f404d 100644 --- a/css/css-pseudo/active-selection-012.html +++ b/css/css-pseudo/active-selection-012.html @@ -24,6 +24,7 @@ div::selection { background-color: green; + color: aqua; } /* @@ -47,6 +48,6 @@ -

Test passes if the background color of each glyph of "Selected Text" is green and not red while each glyph of "Selected Text" is fuchsia. +

Test passes if the background color of each glyph of "Selected Text" is green and not red while each glyph of "Selected Text" is aqua and not fuchsia.

Selected Text
diff --git a/css/css-pseudo/highlight-cascade-001-ref.html b/css/css-pseudo/highlight-cascade-001-ref.html new file mode 100644 index 00000000000000..a18690962fcd4e --- /dev/null +++ b/css/css-pseudo/highlight-cascade-001-ref.html @@ -0,0 +1,18 @@ + + + + + + +

Test passes if the text below is white on green. +

quick
+ diff --git a/css/css-pseudo/highlight-cascade-001.html b/css/css-pseudo/highlight-cascade-001.html new file mode 100644 index 00000000000000..f237e9eca73211 --- /dev/null +++ b/css/css-pseudo/highlight-cascade-001.html @@ -0,0 +1,26 @@ + + +CSS Pseudo-Elements Test: highlight cascade: unset is treated like inherit regardless of whether property is inherited + + + + + + + +

Test passes if the text below is white on green. +

quick
+ diff --git a/css/css-pseudo/highlight-cascade-002-ref.html b/css/css-pseudo/highlight-cascade-002-ref.html new file mode 100644 index 00000000000000..17629a6dbad7fb --- /dev/null +++ b/css/css-pseudo/highlight-cascade-002-ref.html @@ -0,0 +1,42 @@ + + + + + + +

Test passes if the words below are (respectively): white on green, green on white, white on green. + +

foo bar baz
+ diff --git a/css/css-pseudo/highlight-cascade-002.html b/css/css-pseudo/highlight-cascade-002.html new file mode 100644 index 00000000000000..c01d3c796e5ec8 --- /dev/null +++ b/css/css-pseudo/highlight-cascade-002.html @@ -0,0 +1,120 @@ + + +CSS Pseudo-Elements Test: highlight cascade: custom properties are inherited regardless of inherits flag or inheritedness of referencing property + + + + + + + +

Test passes if the words below are (respectively): white on green, green on white, white on green. +

foo bar baz
+ diff --git a/css/css-pseudo/highlight-paired-cascade-001-ref.html b/css/css-pseudo/highlight-paired-cascade-001-ref.html new file mode 100644 index 00000000000000..14687acb841d2b --- /dev/null +++ b/css/css-pseudo/highlight-paired-cascade-001-ref.html @@ -0,0 +1,18 @@ + + + + + + +

Test passes if no text is legible below. +

FAIL
+ diff --git a/css/css-pseudo/highlight-paired-cascade-001.html b/css/css-pseudo/highlight-paired-cascade-001.html new file mode 100644 index 00000000000000..09e5abf9a3285f --- /dev/null +++ b/css/css-pseudo/highlight-paired-cascade-001.html @@ -0,0 +1,25 @@ + + +CSS Pseudo-Elements Test: paired cascade: UA default highlight colors are not used when highlight pseudo cascade yields foreground color + + + + + + + +

Test passes if no text is legible below. +

FAIL
+ diff --git a/css/css-pseudo/highlight-paired-cascade-002-ref.html b/css/css-pseudo/highlight-paired-cascade-002-ref.html new file mode 100644 index 00000000000000..48eb9911a104c7 --- /dev/null +++ b/css/css-pseudo/highlight-paired-cascade-002-ref.html @@ -0,0 +1,18 @@ + + + + + + +

Test passes if no text is legible below. +

FAIL
+ diff --git a/css/css-pseudo/highlight-paired-cascade-002.html b/css/css-pseudo/highlight-paired-cascade-002.html new file mode 100644 index 00000000000000..affbe9562975c3 --- /dev/null +++ b/css/css-pseudo/highlight-paired-cascade-002.html @@ -0,0 +1,25 @@ + + +CSS Pseudo-Elements Test: paired cascade: UA default highlight colors are not used when highlight pseudo cascade yields background color + + + + + + + +

Test passes if no text is legible below. +

FAIL
+ diff --git a/css/css-pseudo/highlight-paired-cascade-003-ref.html b/css/css-pseudo/highlight-paired-cascade-003-ref.html new file mode 100644 index 00000000000000..18885fdc898a4c --- /dev/null +++ b/css/css-pseudo/highlight-paired-cascade-003-ref.html @@ -0,0 +1,17 @@ + + + + + + +

Test passes if the text below appears to be highlighted. +

quick
+ diff --git a/css/css-pseudo/highlight-paired-cascade-003.html b/css/css-pseudo/highlight-paired-cascade-003.html new file mode 100644 index 00000000000000..250e320210c65f --- /dev/null +++ b/css/css-pseudo/highlight-paired-cascade-003.html @@ -0,0 +1,26 @@ + + +CSS Pseudo-Elements Test: paired cascade: UA default highlight colors are used when highlight pseudo cascade yields only properties other than highlight colors + + + + + + + +

Test passes if the text below appears to be highlighted. +

quick
+ diff --git a/css/css-pseudo/highlight-paired-cascade-004-notref.html b/css/css-pseudo/highlight-paired-cascade-004-notref.html new file mode 100644 index 00000000000000..63472b67589c2b --- /dev/null +++ b/css/css-pseudo/highlight-paired-cascade-004-notref.html @@ -0,0 +1,19 @@ + + + + + +

Test passes if the text below does not appear to be highlighted (test again). +

quick
+ diff --git a/css/css-pseudo/highlight-paired-cascade-004.tentative.html b/css/css-pseudo/highlight-paired-cascade-004.tentative.html new file mode 100644 index 00000000000000..cc1d4daa971b65 --- /dev/null +++ b/css/css-pseudo/highlight-paired-cascade-004.tentative.html @@ -0,0 +1,28 @@ + + + +CSS Pseudo-Elements Test: paired cascade: rule includes highlight pseudos other than ::selection + + + + + + +

Test passes if the text below does not appear to be highlighted (test again). +

quick
+ diff --git a/css/css-pseudo/highlight-paired-cascade-005-ref.html b/css/css-pseudo/highlight-paired-cascade-005-ref.html new file mode 100644 index 00000000000000..0ac5c02b203bc0 --- /dev/null +++ b/css/css-pseudo/highlight-paired-cascade-005-ref.html @@ -0,0 +1,18 @@ + + + + + + +

Test passes if the text below does not appear to be highlighted. +

quick
+ diff --git a/css/css-pseudo/highlight-paired-cascade-005.tentative.html b/css/css-pseudo/highlight-paired-cascade-005.tentative.html new file mode 100644 index 00000000000000..4d402292eb5ff7 --- /dev/null +++ b/css/css-pseudo/highlight-paired-cascade-005.tentative.html @@ -0,0 +1,26 @@ + + + +CSS Pseudo-Elements Test: paired cascade: UA default highlight colors are not used when highlight pseudo has declared color value of unset + + + + + + + +

Test passes if the text below does not appear to be highlighted. +

quick
+ diff --git a/css/css-pseudo/highlight-paired-cascade-006-ref.html b/css/css-pseudo/highlight-paired-cascade-006-ref.html new file mode 100644 index 00000000000000..18885fdc898a4c --- /dev/null +++ b/css/css-pseudo/highlight-paired-cascade-006-ref.html @@ -0,0 +1,17 @@ + + + + + + +

Test passes if the text below appears to be highlighted. +

quick
+ diff --git a/css/css-pseudo/highlight-paired-cascade-006.html b/css/css-pseudo/highlight-paired-cascade-006.html new file mode 100644 index 00000000000000..20c03282c81a03 --- /dev/null +++ b/css/css-pseudo/highlight-paired-cascade-006.html @@ -0,0 +1,24 @@ + + +CSS Pseudo-Elements Test: paired cascade: UA default highlight colors are used when highlight pseudo has declared color value of revert + + + + + + + +

Test passes if the text below appears to be highlighted. +

quick
+ diff --git a/css/css-pseudo/highlight-styling-001-ref.html b/css/css-pseudo/highlight-styling-001-ref.html new file mode 100644 index 00000000000000..0ea90d7434d546 --- /dev/null +++ b/css/css-pseudo/highlight-styling-001-ref.html @@ -0,0 +1,18 @@ + + + + + + +

Test passes if the text below is white on green. +

quick
+ diff --git a/css/css-pseudo/highlight-styling-001.html b/css/css-pseudo/highlight-styling-001.html new file mode 100644 index 00000000000000..63d8ee1eda47de --- /dev/null +++ b/css/css-pseudo/highlight-styling-001.html @@ -0,0 +1,23 @@ + + +CSS Pseudo-Elements Test: highlight styling: custom properties are applicable properties in highlight pseudos + + + + + + + +

Test passes if the text below is white on green. +

quick
+ diff --git a/css/css-pseudo/highlight-styling-002-ref.html b/css/css-pseudo/highlight-styling-002-ref.html new file mode 100644 index 00000000000000..0ea90d7434d546 --- /dev/null +++ b/css/css-pseudo/highlight-styling-002-ref.html @@ -0,0 +1,18 @@ + + + + + + +

Test passes if the text below is white on green. +

quick
+ diff --git a/css/css-pseudo/highlight-styling-002.html b/css/css-pseudo/highlight-styling-002.html new file mode 100644 index 00000000000000..2f7cc29128e4dc --- /dev/null +++ b/css/css-pseudo/highlight-styling-002.html @@ -0,0 +1,23 @@ + + +CSS Pseudo-Elements Test: highlight styling: originating custom property values do not affect highlight pseudos + + + + + + + +

Test passes if the text below is white on green. +

quick
+ diff --git a/css/css-pseudo/reference/active-selection-012-ref.html b/css/css-pseudo/reference/active-selection-012-ref.html index 5f45e50952ea59..d212344c1292b9 100644 --- a/css/css-pseudo/reference/active-selection-012-ref.html +++ b/css/css-pseudo/reference/active-selection-012-ref.html @@ -11,12 +11,12 @@ div { background-color: green; - color: fuchsia; + color: aqua; display: inline; font-size: 300%; } -

Test passes if the background color of each glyph of "Selected Text" is green and not red while each glyph of "Selected Text" is fuchsia. +

Test passes if the background color of each glyph of "Selected Text" is green and not red while each glyph of "Selected Text" is aqua and not fuchsia.

Selected Text