diff --git a/gfx/layers/apz/test/helper_iframe1.html b/gfx/layers/apz/test/helper_iframe1.html
new file mode 100644
index 000000000000..047da96bd469
--- /dev/null
+++ b/gfx/layers/apz/test/helper_iframe1.html
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/gfx/layers/apz/test/helper_iframe2.html b/gfx/layers/apz/test/helper_iframe2.html
new file mode 100644
index 000000000000..fee3883e95f3
--- /dev/null
+++ b/gfx/layers/apz/test/helper_iframe2.html
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/gfx/layers/apz/test/helper_subframe_style.css b/gfx/layers/apz/test/helper_subframe_style.css
new file mode 100644
index 000000000000..a911bea71159
--- /dev/null
+++ b/gfx/layers/apz/test/helper_subframe_style.css
@@ -0,0 +1,15 @@
+body {
+ height: 500px;
+}
+
+.inner-frame {
+ margin-top: 25%;
+ height: 200%;
+ width: 75%;
+ overflow: scroll;
+}
+.inner-content {
+ height: 200%;
+ width: 200%;
+ background: repeating-linear-gradient(#EEE, #EEE 100px, #DDD 100px, #DDD 200px);
+}
diff --git a/gfx/layers/apz/test/mochitest.ini b/gfx/layers/apz/test/mochitest.ini
index 298beea6b9a2..bdf949c999af 100644
--- a/gfx/layers/apz/test/mochitest.ini
+++ b/gfx/layers/apz/test/mochitest.ini
@@ -4,6 +4,9 @@ support-files =
apz_test_native_event_utils.js
helper_bug982141.html
helper_bug1151663.html
+ helper_iframe1.html
+ helper_iframe2.html
+ helper_subframe_style.css
tags = apz
[test_bug982141.html]
skip-if = toolkit != 'gonk' # bug 991198
@@ -13,3 +16,5 @@ skip-if = toolkit != 'gonk' # bug 991198
skip-if = (os == 'android') || (os == 'b2g') || (buildapp == 'mulet') # wheel events not supported on mobile; see bug 1164274 for mulet
[test_bug1151667.html]
skip-if = (os == 'android') || (os == 'b2g') # wheel events not supported on mobile
+[test_layerization.html]
+skip-if = (os == 'android') || (os == 'b2g') # uses wheel events which are not supported on mobile
diff --git a/gfx/layers/apz/test/test_layerization.html b/gfx/layers/apz/test/test_layerization.html
new file mode 100644
index 000000000000..63d455d0e2cc
--- /dev/null
+++ b/gfx/layers/apz/test/test_layerization.html
@@ -0,0 +1,158 @@
+
+
+
+
+ Test for layerization
+
+
+
+
+
+
+
+
+
+APZ layerization tests
+
+
+
+
+
+
+
+
+