From e36b1b1158600eacb93510ee3a8927a80b7abc8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9rard=20Talbot?= Date: Wed, 22 Jul 2020 21:35:47 -0400 Subject: [PATCH] Added 4 active-selection-* tests --- css/css-pseudo/active-selection-021.html | 54 +++++++++++ css/css-pseudo/active-selection-024.html | 49 ++++++++++ css/css-pseudo/active-selection-031.html | 86 ++++++++++++++++++ css/css-pseudo/active-selection-045.html | 62 +++++++++++++ .../reference/active-selection-021-ref.html | 20 ++++ .../reference/active-selection-024-ref.html | 21 +++++ .../reference/active-selection-031-ref.html | 57 ++++++++++++ css/css-pseudo/support/100x100-red.png | Bin 0 -> 510 bytes 8 files changed, 349 insertions(+) create mode 100644 css/css-pseudo/active-selection-021.html create mode 100644 css/css-pseudo/active-selection-024.html create mode 100644 css/css-pseudo/active-selection-031.html create mode 100644 css/css-pseudo/active-selection-045.html create mode 100644 css/css-pseudo/reference/active-selection-021-ref.html create mode 100644 css/css-pseudo/reference/active-selection-024-ref.html create mode 100644 css/css-pseudo/reference/active-selection-031-ref.html create mode 100644 css/css-pseudo/support/100x100-red.png diff --git a/css/css-pseudo/active-selection-021.html b/css/css-pseudo/active-selection-021.html new file mode 100644 index 00000000000000..2061385d6c564c --- /dev/null +++ b/css/css-pseudo/active-selection-021.html @@ -0,0 +1,54 @@ + + + + + CSS Pseudo-Elements Test: active selection, color and 'text-decoration: underline overline line-through' + + + + + + + + + + + + + + + +

Test passes if each glyph of "Selected Text" is green and not red and if the underline, the overline and the line-through are also green and not red. + +

Selected Text
diff --git a/css/css-pseudo/active-selection-024.html b/css/css-pseudo/active-selection-024.html new file mode 100644 index 00000000000000..5668df550bb018 --- /dev/null +++ b/css/css-pseudo/active-selection-024.html @@ -0,0 +1,49 @@ + + + + + CSS Pseudo-Elements Test: active selection and first-letter pseudo-element + + + + + + + + + + + + + + +

Test passes if background color of "Selected Text" is yellow and if each glyph of "Selected Text" is green. + +

Selected Text
diff --git a/css/css-pseudo/active-selection-031.html b/css/css-pseudo/active-selection-031.html new file mode 100644 index 00000000000000..387bb82082f3a1 --- /dev/null +++ b/css/css-pseudo/active-selection-031.html @@ -0,0 +1,86 @@ + + + + + CSS Pseudo-Elements Test: active selection and vertical writing-modes + + + + + + + + + + + + + +

Test passes if each glyph of the 6 "Selected Text" is green and if there is no red. + +

+ +
Selected Text
+ +
Selected Text
+ +
Selected Text
+ +
Selected Text
+ +
Selected Text
+ +
Selected Text
+ +
diff --git a/css/css-pseudo/active-selection-045.html b/css/css-pseudo/active-selection-045.html new file mode 100644 index 00000000000000..f5497e2e0ba2f5 --- /dev/null +++ b/css/css-pseudo/active-selection-045.html @@ -0,0 +1,62 @@ + + + + + CSS Pseudo-Elements Test: active selection and image + + + + + + + + + + + + + + +

Test passes if there is nothing below. + +

Image download support must be enabled
diff --git a/css/css-pseudo/reference/active-selection-021-ref.html b/css/css-pseudo/reference/active-selection-021-ref.html new file mode 100644 index 00000000000000..7790a3fad8a36f --- /dev/null +++ b/css/css-pseudo/reference/active-selection-021-ref.html @@ -0,0 +1,20 @@ + + + + + CSS Reftest Reference + + + + + +

Test passes if each glyph of "Selected Text" is green and not red and if the underline, the overline and the line-through are also green and not red. + +

Selected Text
diff --git a/css/css-pseudo/reference/active-selection-024-ref.html b/css/css-pseudo/reference/active-selection-024-ref.html new file mode 100644 index 00000000000000..e6dda1c1371b53 --- /dev/null +++ b/css/css-pseudo/reference/active-selection-024-ref.html @@ -0,0 +1,21 @@ + + + + + CSS Reftest Reference + + + + + +

Test passes if background color of "Selected Text" is yellow and if each glyph of "Selected Text" is green. + +

Selected Text
diff --git a/css/css-pseudo/reference/active-selection-031-ref.html b/css/css-pseudo/reference/active-selection-031-ref.html new file mode 100644 index 00000000000000..0e3680844f8870 --- /dev/null +++ b/css/css-pseudo/reference/active-selection-031-ref.html @@ -0,0 +1,57 @@ + + + + + CSS Reftest Reference + + + + + +

Test passes if each glyph of the 6 "Selected Text" is green and if there is no red. + +

Selected Text
+ +
Selected Text
+ +
Selected Text
+ +
Selected Text
+ +
Selected Text
+ +
Selected Text
diff --git a/css/css-pseudo/support/100x100-red.png b/css/css-pseudo/support/100x100-red.png new file mode 100644 index 0000000000000000000000000000000000000000..57bf3ddc5213d06e0975de38f330ffb7c441b268 GIT binary patch literal 510 zcmeAS@N?(olHy`uVBq!ia0vp^DImT2(!lvX$H>3KhK?=qIelyoTC0u z+}bulfOF!6?IB(rEgl^$M}inwI-;y>m-klb*g7<&!haJ%A05eCLZ)Al&G1ufXr zwqed*LmdSNo_)NXOBpx>wmy+HBE{)*_c`b3JrUH_%$U6m7!M4du6{1-oD!M