diff --git a/layout/reftests/w3c-css/submitted/reftest.list b/layout/reftests/w3c-css/submitted/reftest.list
index b98328586211..4a21929c9574 100644
--- a/layout/reftests/w3c-css/submitted/reftest.list
+++ b/layout/reftests/w3c-css/submitted/reftest.list
@@ -50,7 +50,7 @@ include multicol3/reftest.list
# include transitions/reftest.list
# User Interface Level 3
-# include ui3/reftest.list
+include ui3/reftest.list
# Values and Units Level 3
include values3/reftest.list
diff --git a/layout/reftests/w3c-css/submitted/ui3/box-sizing-border-box-001-ref.xht b/layout/reftests/w3c-css/submitted/ui3/box-sizing-border-box-001-ref.xht
new file mode 100644
index 000000000000..e886a0f05e3a
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/ui3/box-sizing-border-box-001-ref.xht
@@ -0,0 +1,40 @@
+
+
+
+ CSS Reference: Box Sizing - Border-Box with specified width
+
+
+
+
+ The two divs should be side-by-side, not one on top of another. No red should be visible.
+
+
+
LEFT HALF
+
RIGHT HALF
+
+
+
diff --git a/layout/reftests/w3c-css/submitted/ui3/box-sizing-border-box-001.xht b/layout/reftests/w3c-css/submitted/ui3/box-sizing-border-box-001.xht
new file mode 100644
index 000000000000..f7c3fd0ce5dd
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/ui3/box-sizing-border-box-001.xht
@@ -0,0 +1,43 @@
+
+
+
+ CSS Test: Box Sizing - Border-Box with specified width
+
+
+
+
+
+
+ The two divs should be side-by-side, not one on top of another. No red should be visible.
+
+
+
LEFT HALF
+
RIGHT HALF
+
+
+
diff --git a/layout/reftests/w3c-css/submitted/ui3/box-sizing-border-box-002-ref.xht b/layout/reftests/w3c-css/submitted/ui3/box-sizing-border-box-002-ref.xht
new file mode 100644
index 000000000000..7c6bc218a0bb
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/ui3/box-sizing-border-box-002-ref.xht
@@ -0,0 +1,41 @@
+
+
+
+ CSS Reference: Box Sizing - Border-Box with specified width
+
+
+
+
+ The two divs should be side-by-side, not one on top of another. No red should be visible.
+
+
+
LEFT HALF
+
RIGHT HALF
+
+
+
diff --git a/layout/reftests/w3c-css/submitted/ui3/box-sizing-border-box-002.xht b/layout/reftests/w3c-css/submitted/ui3/box-sizing-border-box-002.xht
new file mode 100644
index 000000000000..34ea8bfe183a
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/ui3/box-sizing-border-box-002.xht
@@ -0,0 +1,44 @@
+
+
+
+ CSS Test: Box Sizing - Border-Box with specified width
+
+
+
+
+
+
+ The two divs should be side-by-side, not one on top of another. No red should be visible.
+
+
+
LEFT HALF
+
RIGHT HALF
+
+
+
diff --git a/layout/reftests/w3c-css/submitted/ui3/box-sizing-border-box-003-ref.xht b/layout/reftests/w3c-css/submitted/ui3/box-sizing-border-box-003-ref.xht
new file mode 100644
index 000000000000..c468c5b5b991
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/ui3/box-sizing-border-box-003-ref.xht
@@ -0,0 +1,43 @@
+
+
+
+ CSS Reference: Box Sizing - Border-Box with specified width/height
+
+
+
+
+ The two divs should be side-by-side, not one on top of another. No red should be visible.
+
+
+
LEFT HALF
+
RIGHT HALF
+
+
+
diff --git a/layout/reftests/w3c-css/submitted/ui3/box-sizing-border-box-003.xht b/layout/reftests/w3c-css/submitted/ui3/box-sizing-border-box-003.xht
new file mode 100644
index 000000000000..0c6133a630b6
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/ui3/box-sizing-border-box-003.xht
@@ -0,0 +1,46 @@
+
+
+
+ CSS Test: Box Sizing - Border-Box with specified width/height
+
+
+
+
+
+
+ The two divs should be side-by-side, not one on top of another. No red should be visible.
+
+
+
LEFT HALF
+
RIGHT HALF
+
+
+
diff --git a/layout/reftests/w3c-css/submitted/ui3/box-sizing-border-box-004-ref.xht b/layout/reftests/w3c-css/submitted/ui3/box-sizing-border-box-004-ref.xht
new file mode 100644
index 000000000000..a635acd13e49
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/ui3/box-sizing-border-box-004-ref.xht
@@ -0,0 +1,46 @@
+
+
+
+ CSS Reference: Box Sizing - Border-Box with min/max width/height
+
+
+
+
+ The two divs should be side-by-side, not one on top of another. No red should be visible.
+
+
+
LEFT HALF
+
RIGHT HALF
+
+
+
diff --git a/layout/reftests/w3c-css/submitted/ui3/box-sizing-border-box-004.xht b/layout/reftests/w3c-css/submitted/ui3/box-sizing-border-box-004.xht
new file mode 100644
index 000000000000..6327555be623
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/ui3/box-sizing-border-box-004.xht
@@ -0,0 +1,49 @@
+
+
+
+ CSS Test: Box Sizing - Border-Box with min/max width/height
+
+
+
+
+
+
+ The two divs should be side-by-side, not one on top of another. No red should be visible.
+
+
+
LEFT HALF
+
RIGHT HALF
+
+
+
diff --git a/layout/reftests/w3c-css/submitted/ui3/box-sizing-content-box-001-ref.xht b/layout/reftests/w3c-css/submitted/ui3/box-sizing-content-box-001-ref.xht
new file mode 100644
index 000000000000..ca3ff0f7ec02
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/ui3/box-sizing-content-box-001-ref.xht
@@ -0,0 +1,41 @@
+
+
+
+ CSS Reference: Box Sizing - Content-Box with specified width/height
+
+
+
+
+ The two divs should be side-by-side, not one on top of another. No red should be visible.
+
+
+
LEFT HALF
+
RIGHT HALF
+
+
+
diff --git a/layout/reftests/w3c-css/submitted/ui3/box-sizing-content-box-001.xht b/layout/reftests/w3c-css/submitted/ui3/box-sizing-content-box-001.xht
new file mode 100644
index 000000000000..33245749f2e4
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/ui3/box-sizing-content-box-001.xht
@@ -0,0 +1,44 @@
+
+
+
+ CSS Test: Box Sizing - Content-Box with specified width/height
+
+
+
+
+
+
+ The two divs should be side-by-side, not one on top of another. No red should be visible.
+
+
+
LEFT HALF
+
RIGHT HALF
+
+
+
diff --git a/layout/reftests/w3c-css/submitted/ui3/box-sizing-content-box-002-ref.xht b/layout/reftests/w3c-css/submitted/ui3/box-sizing-content-box-002-ref.xht
new file mode 100644
index 000000000000..b280e57693c0
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/ui3/box-sizing-content-box-002-ref.xht
@@ -0,0 +1,42 @@
+
+
+
+ CSS Reference: Box Sizing - Content-Box with specified width/height
+
+
+
+
+ The two divs should be side-by-side, not one on top of another. No red should be visible.
+
+
+
LEFT HALF
+
RIGHT HALF
+
+
+
diff --git a/layout/reftests/w3c-css/submitted/ui3/box-sizing-content-box-002.xht b/layout/reftests/w3c-css/submitted/ui3/box-sizing-content-box-002.xht
new file mode 100644
index 000000000000..64a8d84a52a4
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/ui3/box-sizing-content-box-002.xht
@@ -0,0 +1,45 @@
+
+
+
+ CSS Test: Box Sizing - Content-Box with specified width/height
+
+
+
+
+
+
+ The two divs should be side-by-side, not one on top of another. No red should be visible.
+
+
+
LEFT HALF
+
RIGHT HALF
+
+
+
diff --git a/layout/reftests/w3c-css/submitted/ui3/box-sizing-content-box-003-ref.xht b/layout/reftests/w3c-css/submitted/ui3/box-sizing-content-box-003-ref.xht
new file mode 100644
index 000000000000..042b5628aa83
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/ui3/box-sizing-content-box-003-ref.xht
@@ -0,0 +1,43 @@
+
+
+
+ CSS Reference: Box Sizing - Content-Box with min/max width/height
+
+
+
+
+ The two divs should be side-by-side, not one on top of another. No red should be visible.
+
+
+
LEFT HALF
+
RIGHT HALF
+
+
+
diff --git a/layout/reftests/w3c-css/submitted/ui3/box-sizing-content-box-003.xht b/layout/reftests/w3c-css/submitted/ui3/box-sizing-content-box-003.xht
new file mode 100644
index 000000000000..4426b8db483b
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/ui3/box-sizing-content-box-003.xht
@@ -0,0 +1,45 @@
+
+
+
+ CSS Test: Box Sizing - Content-Box with min/max width/height
+
+
+
+
+
+
+ The two divs should be side-by-side, not one on top of another. No red should be visible.
+
+
+
LEFT HALF
+
RIGHT HALF
+
+
+
diff --git a/layout/reftests/w3c-css/submitted/ui3/box-sizing-padding-box-001-ref.xht b/layout/reftests/w3c-css/submitted/ui3/box-sizing-padding-box-001-ref.xht
new file mode 100644
index 000000000000..d9a1f41e4cc4
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/ui3/box-sizing-padding-box-001-ref.xht
@@ -0,0 +1,40 @@
+
+
+
+ CSS Reference: Box Sizing - Padding-Box with specified width/height
+
+
+
+
+ The two divs should be side-by-side, not one on top of another. No red should be visible.
+
+
+
LEFT HALF
+
RIGHT HALF
+
+
+
diff --git a/layout/reftests/w3c-css/submitted/ui3/box-sizing-padding-box-001.xht b/layout/reftests/w3c-css/submitted/ui3/box-sizing-padding-box-001.xht
new file mode 100644
index 000000000000..1d5f7c5770db
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/ui3/box-sizing-padding-box-001.xht
@@ -0,0 +1,43 @@
+
+
+
+ CSS Test: Box Sizing - Padding-Box with specified width/height
+
+
+
+
+
+
+ The two divs should be side-by-side, not one on top of another. No red should be visible.
+
+
+
LEFT HALF
+
RIGHT HALF
+
+
+
diff --git a/layout/reftests/w3c-css/submitted/ui3/box-sizing-padding-box-002-ref.xht b/layout/reftests/w3c-css/submitted/ui3/box-sizing-padding-box-002-ref.xht
new file mode 100644
index 000000000000..06260223d31d
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/ui3/box-sizing-padding-box-002-ref.xht
@@ -0,0 +1,42 @@
+
+
+
+ CSS Reference: Box Sizing - Padding-Box with specified width/height
+
+
+
+
+ The two divs should be side-by-side, not one on top of another. No red should be visible.
+
+
+
LEFT HALF
+
RIGHT HALF
+
+
+
diff --git a/layout/reftests/w3c-css/submitted/ui3/box-sizing-padding-box-002.xht b/layout/reftests/w3c-css/submitted/ui3/box-sizing-padding-box-002.xht
new file mode 100644
index 000000000000..e7364cff0b63
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/ui3/box-sizing-padding-box-002.xht
@@ -0,0 +1,45 @@
+
+
+
+ CSS Test: Box Sizing - Padding-Box with specified width/height
+
+
+
+
+
+
+ The two divs should be side-by-side, not one on top of another. No red should be visible.
+
+
+
LEFT HALF
+
RIGHT HALF
+
+
+
diff --git a/layout/reftests/w3c-css/submitted/ui3/box-sizing-padding-box-003-ref.xht b/layout/reftests/w3c-css/submitted/ui3/box-sizing-padding-box-003-ref.xht
new file mode 100644
index 000000000000..d3ba96f37e4f
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/ui3/box-sizing-padding-box-003-ref.xht
@@ -0,0 +1,42 @@
+
+
+
+ CSS Reference: Box Sizing - Padding-Box with min/max width/height
+
+
+
+
+ The two divs should be side-by-side, not one on top of another. No red should be visible.
+
+
+
LEFT HALF
+
RIGHT HALF
+
+
+
diff --git a/layout/reftests/w3c-css/submitted/ui3/box-sizing-padding-box-003.xht b/layout/reftests/w3c-css/submitted/ui3/box-sizing-padding-box-003.xht
new file mode 100644
index 000000000000..6b89576dbd97
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/ui3/box-sizing-padding-box-003.xht
@@ -0,0 +1,49 @@
+
+
+
+ CSS Test: Box Sizing - Padding-Box with min/max width/height
+
+
+
+
+
+
+ The two divs should be side-by-side, not one on top of another. No red should be visible.
+
+
+
LEFT HALF
+
RIGHT HALF
+
+
+
diff --git a/layout/reftests/w3c-css/submitted/ui3/box-sizing-replaced-001-ref.xht b/layout/reftests/w3c-css/submitted/ui3/box-sizing-replaced-001-ref.xht
new file mode 100644
index 000000000000..815813c51e77
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/ui3/box-sizing-replaced-001-ref.xht
@@ -0,0 +1,52 @@
+
+
+
+ CSS Reference: Min/Max Height and Width Constraints on Replaced Elements with Box-Sizing
+
+
+
+
+
+
+
+
All rectangles should be the same size.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/w3c-css/submitted/ui3/box-sizing-replaced-001.xht b/layout/reftests/w3c-css/submitted/ui3/box-sizing-replaced-001.xht
new file mode 100644
index 000000000000..3c1697902593
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/ui3/box-sizing-replaced-001.xht
@@ -0,0 +1,156 @@
+
+
+
+ CSS Test: Min/Max Height and Width Constraints on Replaced Elements with Box-Sizing
+
+
+
+
+
+
+
+
+
+
All rectangles should be the same size.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/w3c-css/submitted/ui3/box-sizing-replaced-002-ref.xht b/layout/reftests/w3c-css/submitted/ui3/box-sizing-replaced-002-ref.xht
new file mode 100644
index 000000000000..64204a68a760
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/ui3/box-sizing-replaced-002-ref.xht
@@ -0,0 +1,53 @@
+
+
+
+ CSS Reference: Min/Max Height and Width Constraints on Replaced Elements with Box-Sizing
+
+
+
+
+
+
+
+
All rectangles should be the same size.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/w3c-css/submitted/ui3/box-sizing-replaced-002.xht b/layout/reftests/w3c-css/submitted/ui3/box-sizing-replaced-002.xht
new file mode 100644
index 000000000000..7baab2e8474d
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/ui3/box-sizing-replaced-002.xht
@@ -0,0 +1,157 @@
+
+
+
+ CSS Test: Min/Max Height and Width Constraints on Replaced Elements with Box-Sizing
+
+
+
+
+
+
+
+
+
+
All rectangles should be the same size.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/w3c-css/submitted/ui3/box-sizing-replaced-003-ref.xht b/layout/reftests/w3c-css/submitted/ui3/box-sizing-replaced-003-ref.xht
new file mode 100644
index 000000000000..85524daf4a90
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/ui3/box-sizing-replaced-003-ref.xht
@@ -0,0 +1,48 @@
+
+
+
+ CSS Reference: Min/Max Height and Width Constraints on Replaced Elements with Box-Sizing
+
+
+
+
+
+
+
+
All rectangles should be the same size.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/w3c-css/submitted/ui3/box-sizing-replaced-003.xht b/layout/reftests/w3c-css/submitted/ui3/box-sizing-replaced-003.xht
new file mode 100644
index 000000000000..2a06df42f38e
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/ui3/box-sizing-replaced-003.xht
@@ -0,0 +1,155 @@
+
+
+
+ CSS Test: Min/Max Height and Width Constraints on Replaced Elements with Box-Sizing
+
+
+
+
+
+
+
+
+
+
All rectangles should be the same size.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/w3c-css/submitted/ui3/reftest.list b/layout/reftests/w3c-css/submitted/ui3/reftest.list
new file mode 100644
index 000000000000..f5d9ef532677
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/ui3/reftest.list
@@ -0,0 +1,13 @@
+== box-sizing-border-box-001.xht box-sizing-border-box-001-ref.xht
+== box-sizing-border-box-002.xht box-sizing-border-box-002-ref.xht
+== box-sizing-border-box-003.xht box-sizing-border-box-003-ref.xht
+== box-sizing-border-box-004.xht box-sizing-border-box-004-ref.xht
+== box-sizing-content-box-001.xht box-sizing-content-box-001-ref.xht
+== box-sizing-content-box-002.xht box-sizing-content-box-002-ref.xht
+== box-sizing-content-box-003.xht box-sizing-content-box-003-ref.xht
+== box-sizing-padding-box-001.xht box-sizing-padding-box-001-ref.xht
+== box-sizing-padding-box-002.xht box-sizing-padding-box-002-ref.xht
+== box-sizing-padding-box-003.xht box-sizing-padding-box-003-ref.xht
+== box-sizing-replaced-001.xht box-sizing-replaced-001-ref.xht
+== box-sizing-replaced-002.xht box-sizing-replaced-002-ref.xht
+== box-sizing-replaced-003.xht box-sizing-replaced-003-ref.xht
diff --git a/layout/reftests/w3c-css/submitted/ui3/support/replaced-min-max-1.png b/layout/reftests/w3c-css/submitted/ui3/support/replaced-min-max-1.png
new file mode 100644
index 000000000000..d6946724d9ea
Binary files /dev/null and b/layout/reftests/w3c-css/submitted/ui3/support/replaced-min-max-1.png differ
diff --git a/layout/reftests/w3c-css/submitted/ui3/support/replaced-min-max-10.png b/layout/reftests/w3c-css/submitted/ui3/support/replaced-min-max-10.png
new file mode 100644
index 000000000000..bfdca3e6f35a
Binary files /dev/null and b/layout/reftests/w3c-css/submitted/ui3/support/replaced-min-max-10.png differ
diff --git a/layout/reftests/w3c-css/submitted/ui3/support/replaced-min-max-11.png b/layout/reftests/w3c-css/submitted/ui3/support/replaced-min-max-11.png
new file mode 100644
index 000000000000..38ee90dda0fc
Binary files /dev/null and b/layout/reftests/w3c-css/submitted/ui3/support/replaced-min-max-11.png differ
diff --git a/layout/reftests/w3c-css/submitted/ui3/support/replaced-min-max-12.png b/layout/reftests/w3c-css/submitted/ui3/support/replaced-min-max-12.png
new file mode 100644
index 000000000000..87433d4d7b98
Binary files /dev/null and b/layout/reftests/w3c-css/submitted/ui3/support/replaced-min-max-12.png differ
diff --git a/layout/reftests/w3c-css/submitted/ui3/support/replaced-min-max-13.png b/layout/reftests/w3c-css/submitted/ui3/support/replaced-min-max-13.png
new file mode 100644
index 000000000000..c07d66e7881f
Binary files /dev/null and b/layout/reftests/w3c-css/submitted/ui3/support/replaced-min-max-13.png differ
diff --git a/layout/reftests/w3c-css/submitted/ui3/support/replaced-min-max-14.png b/layout/reftests/w3c-css/submitted/ui3/support/replaced-min-max-14.png
new file mode 100644
index 000000000000..e89dbe975864
Binary files /dev/null and b/layout/reftests/w3c-css/submitted/ui3/support/replaced-min-max-14.png differ
diff --git a/layout/reftests/w3c-css/submitted/ui3/support/replaced-min-max-15.png b/layout/reftests/w3c-css/submitted/ui3/support/replaced-min-max-15.png
new file mode 100644
index 000000000000..717ea111b6f0
Binary files /dev/null and b/layout/reftests/w3c-css/submitted/ui3/support/replaced-min-max-15.png differ
diff --git a/layout/reftests/w3c-css/submitted/ui3/support/replaced-min-max-16.png b/layout/reftests/w3c-css/submitted/ui3/support/replaced-min-max-16.png
new file mode 100644
index 000000000000..0a49bbf1c33b
Binary files /dev/null and b/layout/reftests/w3c-css/submitted/ui3/support/replaced-min-max-16.png differ
diff --git a/layout/reftests/w3c-css/submitted/ui3/support/replaced-min-max-17.png b/layout/reftests/w3c-css/submitted/ui3/support/replaced-min-max-17.png
new file mode 100644
index 000000000000..a2ee273d798d
Binary files /dev/null and b/layout/reftests/w3c-css/submitted/ui3/support/replaced-min-max-17.png differ
diff --git a/layout/reftests/w3c-css/submitted/ui3/support/replaced-min-max-18.png b/layout/reftests/w3c-css/submitted/ui3/support/replaced-min-max-18.png
new file mode 100644
index 000000000000..d18f4534179e
Binary files /dev/null and b/layout/reftests/w3c-css/submitted/ui3/support/replaced-min-max-18.png differ
diff --git a/layout/reftests/w3c-css/submitted/ui3/support/replaced-min-max-19.png b/layout/reftests/w3c-css/submitted/ui3/support/replaced-min-max-19.png
new file mode 100644
index 000000000000..8900f36c41cd
Binary files /dev/null and b/layout/reftests/w3c-css/submitted/ui3/support/replaced-min-max-19.png differ
diff --git a/layout/reftests/w3c-css/submitted/ui3/support/replaced-min-max-2.png b/layout/reftests/w3c-css/submitted/ui3/support/replaced-min-max-2.png
new file mode 100644
index 000000000000..58338097fe23
Binary files /dev/null and b/layout/reftests/w3c-css/submitted/ui3/support/replaced-min-max-2.png differ
diff --git a/layout/reftests/w3c-css/submitted/ui3/support/replaced-min-max-3.png b/layout/reftests/w3c-css/submitted/ui3/support/replaced-min-max-3.png
new file mode 100644
index 000000000000..e5e7d6e8a8cf
Binary files /dev/null and b/layout/reftests/w3c-css/submitted/ui3/support/replaced-min-max-3.png differ
diff --git a/layout/reftests/w3c-css/submitted/ui3/support/replaced-min-max-4.png b/layout/reftests/w3c-css/submitted/ui3/support/replaced-min-max-4.png
new file mode 100644
index 000000000000..c099ae4271a7
Binary files /dev/null and b/layout/reftests/w3c-css/submitted/ui3/support/replaced-min-max-4.png differ
diff --git a/layout/reftests/w3c-css/submitted/ui3/support/replaced-min-max-5.png b/layout/reftests/w3c-css/submitted/ui3/support/replaced-min-max-5.png
new file mode 100644
index 000000000000..9d9d8105ff2a
Binary files /dev/null and b/layout/reftests/w3c-css/submitted/ui3/support/replaced-min-max-5.png differ
diff --git a/layout/reftests/w3c-css/submitted/ui3/support/replaced-min-max-6.png b/layout/reftests/w3c-css/submitted/ui3/support/replaced-min-max-6.png
new file mode 100644
index 000000000000..781f894a5ec6
Binary files /dev/null and b/layout/reftests/w3c-css/submitted/ui3/support/replaced-min-max-6.png differ
diff --git a/layout/reftests/w3c-css/submitted/ui3/support/replaced-min-max-7.png b/layout/reftests/w3c-css/submitted/ui3/support/replaced-min-max-7.png
new file mode 100644
index 000000000000..3f91a11f8e20
Binary files /dev/null and b/layout/reftests/w3c-css/submitted/ui3/support/replaced-min-max-7.png differ
diff --git a/layout/reftests/w3c-css/submitted/ui3/support/replaced-min-max-8.png b/layout/reftests/w3c-css/submitted/ui3/support/replaced-min-max-8.png
new file mode 100644
index 000000000000..69951ec2571f
Binary files /dev/null and b/layout/reftests/w3c-css/submitted/ui3/support/replaced-min-max-8.png differ
diff --git a/layout/reftests/w3c-css/submitted/ui3/support/replaced-min-max-9.png b/layout/reftests/w3c-css/submitted/ui3/support/replaced-min-max-9.png
new file mode 100644
index 000000000000..3ac586daa5ad
Binary files /dev/null and b/layout/reftests/w3c-css/submitted/ui3/support/replaced-min-max-9.png differ
diff --git a/layout/reftests/w3c-css/submitted/ui3/support/replaced-min-max.png b/layout/reftests/w3c-css/submitted/ui3/support/replaced-min-max.png
new file mode 100644
index 000000000000..3ef233005ae9
Binary files /dev/null and b/layout/reftests/w3c-css/submitted/ui3/support/replaced-min-max.png differ