diff --git a/layout/html/tests/block/bugs/300816-01.xml b/layout/html/tests/block/bugs/300816-01.xml
new file mode 100644
index 00000000000..741d56a99d0
--- /dev/null
+++ b/layout/html/tests/block/bugs/300816-01.xml
@@ -0,0 +1,22 @@
+
+
+
+ CSS 2.1 Test Suite: Positioned inline as absolute containing block
+
+
+
+
+ There should be no red
+
+
+
diff --git a/layout/html/tests/block/bugs/300816-02.xml b/layout/html/tests/block/bugs/300816-02.xml
new file mode 100644
index 00000000000..8aa3f527eb6
--- /dev/null
+++ b/layout/html/tests/block/bugs/300816-02.xml
@@ -0,0 +1,23 @@
+
+
+
+ CSS 2.1 Test Suite: Positioned inline as absolute containing block
+
+
+
+
+ There should be no red
+
+
+
diff --git a/layout/html/tests/block/bugs/300816-03.xml b/layout/html/tests/block/bugs/300816-03.xml
new file mode 100644
index 00000000000..faeb66930e5
--- /dev/null
+++ b/layout/html/tests/block/bugs/300816-03.xml
@@ -0,0 +1,24 @@
+
+
+
+ CSS 2.1 Test Suite: Positioned inline as absolute containing block
+
+
+
+
+ There should be no red
+
+
+
diff --git a/layout/html/tests/block/bugs/300816-04.xml b/layout/html/tests/block/bugs/300816-04.xml
new file mode 100644
index 00000000000..ded1b302c70
--- /dev/null
+++ b/layout/html/tests/block/bugs/300816-04.xml
@@ -0,0 +1,25 @@
+
+
+
+ CSS 2.1 Test Suite: Positioned inline as absolute containing block
+
+
+
+
+ There should be no red
+
+
+
diff --git a/layout/html/tests/block/bugs/300816-05.xml b/layout/html/tests/block/bugs/300816-05.xml
new file mode 100644
index 00000000000..b2be20a2960
--- /dev/null
+++ b/layout/html/tests/block/bugs/300816-05.xml
@@ -0,0 +1,24 @@
+
+
+
+ CSS 2.1 Test Suite: Positioned inline as absolute containing block
+
+
+
+
+ There should be no red
+
+
+
diff --git a/layout/html/tests/block/bugs/300816-06.xml b/layout/html/tests/block/bugs/300816-06.xml
new file mode 100644
index 00000000000..83c77f145b7
--- /dev/null
+++ b/layout/html/tests/block/bugs/300816-06.xml
@@ -0,0 +1,25 @@
+
+
+
+ CSS 2.1 Test Suite: Positioned inline as absolute containing block
+
+
+
+
+ There should be no red
+
+
+
diff --git a/layout/html/tests/block/bugs/300816-07.xml b/layout/html/tests/block/bugs/300816-07.xml
new file mode 100644
index 00000000000..49483e5f27d
--- /dev/null
+++ b/layout/html/tests/block/bugs/300816-07.xml
@@ -0,0 +1,24 @@
+
+
+
+ CSS 2.1 Test Suite: Positioned inline as absolute containing block
+
+
+
+
+ There should be no red
+
+
+
diff --git a/layout/html/tests/block/bugs/300816-08.xml b/layout/html/tests/block/bugs/300816-08.xml
new file mode 100644
index 00000000000..ee893ad7eed
--- /dev/null
+++ b/layout/html/tests/block/bugs/300816-08.xml
@@ -0,0 +1,25 @@
+
+
+
+ CSS 2.1 Test Suite: Positioned inline as absolute containing block
+
+
+
+
+ There should be no red
+
+
+
diff --git a/layout/html/tests/block/bugs/300816-09.xml b/layout/html/tests/block/bugs/300816-09.xml
new file mode 100644
index 00000000000..8cd49ec1060
--- /dev/null
+++ b/layout/html/tests/block/bugs/300816-09.xml
@@ -0,0 +1,24 @@
+
+
+
+ CSS 2.1 Test Suite: Positioned inline as absolute containing block
+
+
+
+
+ There should be no red
+
+
+
diff --git a/layout/html/tests/block/bugs/300816-10.xml b/layout/html/tests/block/bugs/300816-10.xml
new file mode 100644
index 00000000000..65df46fd5a1
--- /dev/null
+++ b/layout/html/tests/block/bugs/300816-10.xml
@@ -0,0 +1,25 @@
+
+
+
+ CSS 2.1 Test Suite: Positioned inline as absolute containing block
+
+
+
+
+ There should be no red
+
+
+
diff --git a/layout/html/tests/block/bugs/300816-11.xml b/layout/html/tests/block/bugs/300816-11.xml
new file mode 100644
index 00000000000..03b4c8bcc11
--- /dev/null
+++ b/layout/html/tests/block/bugs/300816-11.xml
@@ -0,0 +1,26 @@
+
+
+
+ CSS 2.1 Test Suite: Positioned inline as absolute containing block
+
+
+
+
+ There should be no red
+
+
+
diff --git a/layout/html/tests/block/bugs/300816-12.xml b/layout/html/tests/block/bugs/300816-12.xml
new file mode 100644
index 00000000000..140ec74be04
--- /dev/null
+++ b/layout/html/tests/block/bugs/300816-12.xml
@@ -0,0 +1,26 @@
+
+
+
+ CSS 2.1 Test Suite: Positioned inline as absolute containing block
+
+
+
+
+ There should be no red
+
+
+
diff --git a/layout/html/tests/block/bugs/rtest.lst b/layout/html/tests/block/bugs/rtest.lst
index fcc7c573c10..d11c63c8502 100644
--- a/layout/html/tests/block/bugs/rtest.lst
+++ b/layout/html/tests/block/bugs/rtest.lst
@@ -244,3 +244,15 @@
277420.html
299148.html
299148.xml
+300816-01.xml
+300816-02.xml
+300816-03.xml
+300816-04.xml
+300816-05.xml
+300816-06.xml
+300816-07.xml
+300816-08.xml
+300816-09.xml
+300816-10.xml
+300816-11.xml
+300816-12.xml