diff --git a/tests/ref/basic.list b/tests/ref/basic.list
index 406fbbf6283..efa58cae29f 100644
--- a/tests/ref/basic.list
+++ b/tests/ref/basic.list
@@ -151,3 +151,7 @@ flaky_linux == acid2_noscroll.html acid2_ref_broken.html
== block_formatting_context_containing_floats_a.html block_formatting_context_containing_floats_ref.html
== clear_generated_content_table_a.html clear_generated_content_table_ref.html
== inline_block_border_a.html inline_block_border_ref.html
+== vertical_align_top_a.html vertical_align_top_ref.html
+== vertical_align_bottom_a.html vertical_align_bottom_ref.html
+== vertical_align_top_span_a.html vertical_align_top_span_ref.html
+== vertical_align_top_bottom_a.html vertical_align_top_bottom_ref.html
diff --git a/tests/ref/vertical_align_bottom_a.html b/tests/ref/vertical_align_bottom_a.html
new file mode 100644
index 00000000000..e09d9397658
--- /dev/null
+++ b/tests/ref/vertical_align_bottom_a.html
@@ -0,0 +1,27 @@
+
+
+
+
+
+
+
+ XX
+
+
diff --git a/tests/ref/vertical_align_bottom_ref.html b/tests/ref/vertical_align_bottom_ref.html
new file mode 100644
index 00000000000..228f1c806c2
--- /dev/null
+++ b/tests/ref/vertical_align_bottom_ref.html
@@ -0,0 +1,37 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/tests/ref/vertical_align_top_a.html b/tests/ref/vertical_align_top_a.html
new file mode 100644
index 00000000000..82fba004963
--- /dev/null
+++ b/tests/ref/vertical_align_top_a.html
@@ -0,0 +1,27 @@
+
+
+
+
+
+
+
+ XX
+
+
diff --git a/tests/ref/vertical_align_top_bottom_a.html b/tests/ref/vertical_align_top_bottom_a.html
new file mode 100644
index 00000000000..03b8dd5b7b2
--- /dev/null
+++ b/tests/ref/vertical_align_top_bottom_a.html
@@ -0,0 +1,32 @@
+
+
+
+
+
+
+
+ XXX
+
+
diff --git a/tests/ref/vertical_align_top_bottom_ref.html b/tests/ref/vertical_align_top_bottom_ref.html
new file mode 100644
index 00000000000..53516c83cac
--- /dev/null
+++ b/tests/ref/vertical_align_top_bottom_ref.html
@@ -0,0 +1,55 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/tests/ref/vertical_align_top_ref.html b/tests/ref/vertical_align_top_ref.html
new file mode 100644
index 00000000000..37108822bdd
--- /dev/null
+++ b/tests/ref/vertical_align_top_ref.html
@@ -0,0 +1,37 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/tests/ref/vertical_align_top_span_a.html b/tests/ref/vertical_align_top_span_a.html
new file mode 100644
index 00000000000..d451124e1cb
--- /dev/null
+++ b/tests/ref/vertical_align_top_span_a.html
@@ -0,0 +1,27 @@
+
+
+
+
+
+
+
+ XX
+
+
diff --git a/tests/ref/vertical_align_top_span_ref.html b/tests/ref/vertical_align_top_span_ref.html
new file mode 100644
index 00000000000..488c1aada28
--- /dev/null
+++ b/tests/ref/vertical_align_top_span_ref.html
@@ -0,0 +1,38 @@
+
+
+
+
+
+
+
+
+
+
+