diff --git a/layout/base/tests/chrome/chrome.ini b/layout/base/tests/chrome/chrome.ini
index 4de1646132e9..ed8fa4d21745 100644
--- a/layout/base/tests/chrome/chrome.ini
+++ b/layout/base/tests/chrome/chrome.ini
@@ -56,3 +56,10 @@ skip-if = (verify && (os == 'win'))
[test_will_change.html]
skip-if = webrender
[test_getClientRectsAndTexts.html]
+[test_css_visibility_propagation.xul]
+support-files =
+ window_css_visibility_propagation-1.html
+ window_css_visibility_propagation-2.html
+ window_css_visibility_propagation-3.html
+ window_css_visibility_propagation-4.html
+ frame_css_visibility_propagation.html
diff --git a/layout/base/tests/chrome/frame_css_visibility_propagation.html b/layout/base/tests/chrome/frame_css_visibility_propagation.html
new file mode 100644
index 000000000000..dbb5d819d17b
--- /dev/null
+++ b/layout/base/tests/chrome/frame_css_visibility_propagation.html
@@ -0,0 +1 @@
+
diff --git a/layout/base/tests/chrome/test_css_visibility_propagation.xul b/layout/base/tests/chrome/test_css_visibility_propagation.xul
new file mode 100644
index 000000000000..dfcd89ec86ef
--- /dev/null
+++ b/layout/base/tests/chrome/test_css_visibility_propagation.xul
@@ -0,0 +1,171 @@
+
+
+
+
+
+
+
+
+
diff --git a/layout/base/tests/chrome/window_css_visibility_propagation-1.html b/layout/base/tests/chrome/window_css_visibility_propagation-1.html
new file mode 100644
index 000000000000..c1021968120d
--- /dev/null
+++ b/layout/base/tests/chrome/window_css_visibility_propagation-1.html
@@ -0,0 +1,3 @@
+
+
+
diff --git a/layout/base/tests/chrome/window_css_visibility_propagation-2.html b/layout/base/tests/chrome/window_css_visibility_propagation-2.html
new file mode 100644
index 000000000000..7ebdd9a6aaa3
--- /dev/null
+++ b/layout/base/tests/chrome/window_css_visibility_propagation-2.html
@@ -0,0 +1,3 @@
+
+
+
diff --git a/layout/base/tests/chrome/window_css_visibility_propagation-3.html b/layout/base/tests/chrome/window_css_visibility_propagation-3.html
new file mode 100644
index 000000000000..b2c4018831e0
--- /dev/null
+++ b/layout/base/tests/chrome/window_css_visibility_propagation-3.html
@@ -0,0 +1,3 @@
+
+
+
diff --git a/layout/base/tests/chrome/window_css_visibility_propagation-4.html b/layout/base/tests/chrome/window_css_visibility_propagation-4.html
new file mode 100644
index 000000000000..98de74059c04
--- /dev/null
+++ b/layout/base/tests/chrome/window_css_visibility_propagation-4.html
@@ -0,0 +1,3 @@
+
+
+