aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/basic.list2
-rw-r--r--tests/ref/inline_block_margin_auto_a.html20
-rw-r--r--tests/ref/inline_block_margin_auto_ref.html20
-rw-r--r--tests/ref/inline_block_margin_auto_zero_a.html20
-rw-r--r--tests/ref/inline_block_margin_auto_zero_ref.html24
-rw-r--r--tests/wpt/metadata-css/css21_dev/html4/inline-block-replaced-width-001.htm.ini3
6 files changed, 86 insertions, 3 deletions
diff --git a/tests/ref/basic.list b/tests/ref/basic.list
index 6d6cf789c31..b25d3e9efa8 100644
--- a/tests/ref/basic.list
+++ b/tests/ref/basic.list
@@ -168,6 +168,8 @@ prefs:"layout.writing-mode.enabled" == iframe/size_attributes_vertical_writing_m
== inline_block_border_intrinsic_size_a.html inline_block_border_intrinsic_size_ref.html
== inline_block_img_a.html inline_block_img_ref.html
== inline_block_margin_a.html inline_block_margin_ref.html
+== inline_block_margin_auto_a.html inline_block_margin_auto_ref.html
+== inline_block_margin_auto_zero_a.html inline_block_margin_auto_zero_ref.html
== inline_block_min_width.html inline_block_min_width_ref.html
== inline_block_overflow.html inline_block_overflow_ref.html
== inline_block_overflow_hidden_a.html inline_block_overflow_hidden_ref.html
diff --git a/tests/ref/inline_block_margin_auto_a.html b/tests/ref/inline_block_margin_auto_a.html
new file mode 100644
index 00000000000..3fa23c34563
--- /dev/null
+++ b/tests/ref/inline_block_margin_auto_a.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<style>
+html, body {
+ margin: 0;
+}
+#a {
+ display: block;
+ background: lime;
+ text-align: center;
+ width: 96px;
+}
+#b {
+ background: gold;
+ display: inline-block;
+ margin: 0 auto;
+ padding: 16px 16px;
+}
+</style>
+<div id=a><div id=b></div>
+
diff --git a/tests/ref/inline_block_margin_auto_ref.html b/tests/ref/inline_block_margin_auto_ref.html
new file mode 100644
index 00000000000..1ab56dd83fb
--- /dev/null
+++ b/tests/ref/inline_block_margin_auto_ref.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<style>
+html, body {
+ margin: 0;
+}
+#a {
+ display: block;
+ background: lime;
+ text-align: center;
+ width: 96px;
+}
+#b {
+ background: gold;
+ display: inline-block;
+ margin: 0 32px 0 32px;
+ padding: 16px 16px;
+}
+</style>
+<div id=a><div id=b></div>
+
diff --git a/tests/ref/inline_block_margin_auto_zero_a.html b/tests/ref/inline_block_margin_auto_zero_a.html
new file mode 100644
index 00000000000..e9a0ec4fb29
--- /dev/null
+++ b/tests/ref/inline_block_margin_auto_zero_a.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<style>
+html, body {
+ margin: 0;
+}
+section {
+ width: 300px;
+ height: 100px;
+ background: blue;
+}
+nav {
+ display: inline-block;
+ width: 100px;
+ height: 100px;
+ margin: 0 auto;
+ background: gold;
+}
+</style>
+<section><nav></nav></section>
+
diff --git a/tests/ref/inline_block_margin_auto_zero_ref.html b/tests/ref/inline_block_margin_auto_zero_ref.html
new file mode 100644
index 00000000000..ad02e27d2fd
--- /dev/null
+++ b/tests/ref/inline_block_margin_auto_zero_ref.html
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<style>
+html, body {
+ margin: 0;
+}
+section {
+ position: absolute;
+ width: 100px;
+ height: 100px;
+ top: 0;
+ left: 0;
+ background: gold;
+}
+nav {
+ position: absolute;
+ width: 200px;
+ height: 100px;
+ top: 0;
+ left: 100px;
+ background: blue;
+}
+</style>
+<section></section><nav></nav>
+
diff --git a/tests/wpt/metadata-css/css21_dev/html4/inline-block-replaced-width-001.htm.ini b/tests/wpt/metadata-css/css21_dev/html4/inline-block-replaced-width-001.htm.ini
deleted file mode 100644
index 3924d417aba..00000000000
--- a/tests/wpt/metadata-css/css21_dev/html4/inline-block-replaced-width-001.htm.ini
+++ /dev/null
@@ -1,3 +0,0 @@
-[inline-block-replaced-width-001.htm]
- type: reftest
- expected: FAIL