diff --git a/layout/reftests/bugs/368020-3-ref.html b/layout/reftests/bugs/368020-3-ref.html
index 13209c61fd02..7a95a6c4d429 100644
--- a/layout/reftests/bugs/368020-3-ref.html
+++ b/layout/reftests/bugs/368020-3-ref.html
@@ -5,7 +5,7 @@
-
+
blah
blah
blah
diff --git a/layout/reftests/bugs/368020-3.html b/layout/reftests/bugs/368020-3.html
index 294a935f34d7..d04165527d86 100644
--- a/layout/reftests/bugs/368020-3.html
+++ b/layout/reftests/bugs/368020-3.html
@@ -5,7 +5,7 @@
-
+
blah
blah
blah
diff --git a/layout/reftests/bugs/368020-5-ref.html b/layout/reftests/bugs/368020-5-ref.html
index f048ae93716a..0cc7180afed4 100644
--- a/layout/reftests/bugs/368020-5-ref.html
+++ b/layout/reftests/bugs/368020-5-ref.html
@@ -5,7 +5,7 @@
-
+
blah
blah
blah
diff --git a/layout/reftests/bugs/368020-5.html b/layout/reftests/bugs/368020-5.html
index f576bbf45e39..013708cad03e 100644
--- a/layout/reftests/bugs/368020-5.html
+++ b/layout/reftests/bugs/368020-5.html
@@ -5,7 +5,7 @@
-
+
blah
blah
blah
diff --git a/layout/reftests/bugs/reftest.list b/layout/reftests/bugs/reftest.list
index 2bf597f4e535..9b5e57dd9dc6 100644
--- a/layout/reftests/bugs/reftest.list
+++ b/layout/reftests/bugs/reftest.list
@@ -595,7 +595,7 @@ skip-if(B2G) == 367247-l-scroll.html 367247-l-auto.html
!= 367612-1g.html 367612-1-ref.html
skip-if(B2G) random-if(/^Windows\x20NT\x205\.1/.test(http.oscpu)) == 368020-1.html 368020-1-ref.html
== 368020-2.html 368020-2-ref.html
-fails == 368020-3.html 368020-3-ref.html # bug 368085
+== 368020-3.html 368020-3-ref.html
pref(layout.css.box-decoration-break.enabled,true) == 368020-5.html 368020-5-ref.html
== 368155-1.xhtml 368155-1-ref.xhtml
asserts(4) == 368155-negative-margins-1.html 368155-negative-margins-1-ref.html # bug 387205 / bug 457397
diff --git a/layout/reftests/css-break/box-decoration-break-1-ref.html b/layout/reftests/css-break/box-decoration-break-1-ref.html
new file mode 100644
index 000000000000..431c499a1f66
--- /dev/null
+++ b/layout/reftests/css-break/box-decoration-break-1-ref.html
@@ -0,0 +1,67 @@
+
+
+
+
+ CSS Test: Testing box-decoration-break:clone
+
+
+
+
+
+
+
+ a b c |
+ a b c |
+ a b c |
+
+
+
+
+
+
+ a b c |
+ a b c |
+ a b c |
+
+
+
+
+
diff --git a/layout/reftests/css-break/box-decoration-break-1.html b/layout/reftests/css-break/box-decoration-break-1.html
new file mode 100644
index 000000000000..e0326ccc1fa2
--- /dev/null
+++ b/layout/reftests/css-break/box-decoration-break-1.html
@@ -0,0 +1,71 @@
+
+
+
+
+ CSS Test: Testing box-decoration-break:clone
+
+
+
+
+
+
+
+
+
+ a b c |
+ a b c |
+ a b c |
+
+
+
+
+
+
+ a b c
|
+ a b c
|
+ a b c
|
+
+
+
+
+
diff --git a/layout/reftests/css-break/box-decoration-break-with-inset-box-shadow-1-ref.html b/layout/reftests/css-break/box-decoration-break-with-inset-box-shadow-1-ref.html
new file mode 100644
index 000000000000..f372a0f920ed
--- /dev/null
+++ b/layout/reftests/css-break/box-decoration-break-with-inset-box-shadow-1-ref.html
@@ -0,0 +1,132 @@
+
+
+
+
+ CSS Test: Testing box-decoration-break:clone with inset box-shadow
+
+
+
+
+
+
+
+
+ a b c
+ a b c
+ a b c
+ |
+ a b c
+ a b c
+ a b c
+ |
+ a b c
+ a b c
+ a b c
+ |
+ a b c
+ a b c
+ a b c
+ |
+
+
+
+
+
+ a b c
+ a b c
+ a b c
+ |
+ a b c
+ a b c
+ a b c
+ |
+ a b c
+ a b c
+ a b c
+ |
+ a b c
+ a b c
+ a b c
+ |
+
+
+
+
+
+
+
diff --git a/layout/reftests/css-break/box-decoration-break-with-inset-box-shadow-1.html b/layout/reftests/css-break/box-decoration-break-with-inset-box-shadow-1.html
new file mode 100644
index 000000000000..97e64700cc9b
--- /dev/null
+++ b/layout/reftests/css-break/box-decoration-break-with-inset-box-shadow-1.html
@@ -0,0 +1,134 @@
+
+
+
+
+ CSS Test: Testing box-decoration-break:clone with inset box-shadow
+
+
+
+
+
+
+
+
+
+
+ a b c
+ a b c
+ a b c
+ |
+ a b c
+ a b c
+ a b c
+ |
+ a b c
+ a b c
+ a b c
+ |
+ a b c
+ a b c
+ a b c
+ |
+
+
+
+
+
+ a b c
+ a b c
+ a b c
+ |
+ a b c
+ a b c
+ a b c
+ |
+ a b c
+ a b c
+ a b c
+ |
+ a b c
+ a b c
+ a b c
+ |
+
+
+
+
+
+
+
diff --git a/layout/reftests/css-break/box-decoration-break-with-outset-box-shadow-1-ref.html b/layout/reftests/css-break/box-decoration-break-with-outset-box-shadow-1-ref.html
new file mode 100644
index 000000000000..938fc391480f
--- /dev/null
+++ b/layout/reftests/css-break/box-decoration-break-with-outset-box-shadow-1-ref.html
@@ -0,0 +1,131 @@
+
+
+
+
+ CSS Test: Testing box-decoration-break:clone with outset box-shadow
+
+
+
+
+
+
+
+
+ a b c
+ a b c
+ a b c
+ |
+ a b c
+ a b c
+ a b c
+ |
+ a b c
+ a b c
+ a b c
+ |
+ a b c
+ a b c
+ a b c
+ |
+
+
+
+
+
+ a b c
+ a b c
+ a b c
+ |
+ a b c
+ a b c
+ a b c
+ |
+ a b c
+ a b c
+ a b c
+ |
+ a b c
+ a b c
+ a b c
+ |
+
+
+
+
+
+
diff --git a/layout/reftests/css-break/box-decoration-break-with-outset-box-shadow-1.html b/layout/reftests/css-break/box-decoration-break-with-outset-box-shadow-1.html
new file mode 100644
index 000000000000..417bf76ca434
--- /dev/null
+++ b/layout/reftests/css-break/box-decoration-break-with-outset-box-shadow-1.html
@@ -0,0 +1,133 @@
+
+
+
+
+ CSS Test: Testing box-decoration-break:clone with outset box-shadow
+
+
+
+
+
+
+
+
+
+
+ a b c
+ a b c
+ a b c
+ |
+ a b c
+ a b c
+ a b c
+ |
+ a b c
+ a b c
+ a b c
+ |
+ a b c
+ a b c
+ a b c
+ |
+
+
+
+
+
+ a b c
+ a b c
+ a b c
+ |
+ a b c
+ a b c
+ a b c
+ |
+ a b c
+ a b c
+ a b c
+ |
+ a b c
+ a b c
+ a b c
+ |
+
+
+
+
+
+
diff --git a/layout/reftests/css-break/green-circle-alpha-32x32.png b/layout/reftests/css-break/green-circle-alpha-32x32.png
new file mode 100644
index 000000000000..a007675a1761
Binary files /dev/null and b/layout/reftests/css-break/green-circle-alpha-32x32.png differ
diff --git a/layout/reftests/css-break/reftest.list b/layout/reftests/css-break/reftest.list
new file mode 100644
index 000000000000..2935df26bb25
--- /dev/null
+++ b/layout/reftests/css-break/reftest.list
@@ -0,0 +1,4 @@
+pref(layout.css.box-decoration-break.enabled,true) == box-decoration-break-1.html box-decoration-break-1-ref.html
+
+fuzzy(1,20) pref(layout.css.box-decoration-break.enabled,true) == box-decoration-break-with-inset-box-shadow-1.html box-decoration-break-with-inset-box-shadow-1-ref.html
+fuzzy(16,460) pref(layout.css.box-decoration-break.enabled,true) == box-decoration-break-with-outset-box-shadow-1.html box-decoration-break-with-outset-box-shadow-1-ref.html
diff --git a/layout/reftests/reftest.list b/layout/reftests/reftest.list
index a16d5938b4b9..8c5dd41b092b 100644
--- a/layout/reftests/reftest.list
+++ b/layout/reftests/reftest.list
@@ -56,6 +56,9 @@ include css-animations/reftest.list
# blending/
include css-blending/reftest.list
+# Tests for the css-break spec
+include css-break/reftest.list
+
# css calc() tests
include css-calc/reftest.list