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.
+
+
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 00000000000000..57bf3ddc5213d0
Binary files /dev/null and b/css/css-pseudo/support/100x100-red.png differ