summaryrefslogtreecommitdiffstats
path: root/layout/reftests/inline
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-21 11:44:51 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-21 11:44:51 +0000
commit9e3c08db40b8916968b9f30096c7be3f00ce9647 (patch)
treea68f146d7fa01f0134297619fbe7e33db084e0aa /layout/reftests/inline
parentInitial commit. (diff)
downloadthunderbird-9e3c08db40b8916968b9f30096c7be3f00ce9647.tar.xz
thunderbird-9e3c08db40b8916968b9f30096c7be3f00ce9647.zip
Adding upstream version 1:115.7.0.upstream/1%115.7.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'layout/reftests/inline')
-rw-r--r--layout/reftests/inline/inline-block-baseline-ref.html28
-rw-r--r--layout/reftests/inline/inline-block-baseline.html36
-rw-r--r--layout/reftests/inline/inline-block-margin.html6
-rw-r--r--layout/reftests/inline/inline-block-padding.html6
-rw-r--r--layout/reftests/inline/inline-block-width.html6
-rw-r--r--layout/reftests/inline/inline-block-zero.html3
-rw-r--r--layout/reftests/inline/reftest.list8
-rw-r--r--layout/reftests/inline/zero-inline-block-margin-left.html6
-rw-r--r--layout/reftests/inline/zero-inline-block-margin-ref.html6
-rw-r--r--layout/reftests/inline/zero-inline-block-margin-ref2.html6
-rw-r--r--layout/reftests/inline/zero-inline-block-margin-right.html6
11 files changed, 117 insertions, 0 deletions
diff --git a/layout/reftests/inline/inline-block-baseline-ref.html b/layout/reftests/inline/inline-block-baseline-ref.html
new file mode 100644
index 0000000000..80d5319dc2
--- /dev/null
+++ b/layout/reftests/inline/inline-block-baseline-ref.html
@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+<html><head>
+<style>
+.inline-block { display: inline-block; }
+.test {
+ background-color: lightgrey;
+ overflow: hidden;
+}
+.border { border: solid blue; border-width: 1px 3px 5px 7px; }
+.padding { padding: 10px; }
+.margin { margin: 1px 3px 5px 7px; }
+</style>
+
+</head><body>
+
+The boxes should align vertically:
+<div class="test inline-block margin border padding overflow"></div>
+
+<div class="test inline-block margin border padding overflow"></div>
+
+<br>
+
+The boxes should align vertically:
+<div class="test inline-block margin border padding overflow">X</div>
+
+<div class="test inline-block margin border padding overflow">X</div>
+
+</body></html>
diff --git a/layout/reftests/inline/inline-block-baseline.html b/layout/reftests/inline/inline-block-baseline.html
new file mode 100644
index 0000000000..9d1ef23890
--- /dev/null
+++ b/layout/reftests/inline/inline-block-baseline.html
@@ -0,0 +1,36 @@
+<!DOCTYPE html>
+<html><head>
+<style>
+.inline-block { display: inline-block; }
+.test {
+ background-color: lightgrey;
+ overflow: hidden;
+}
+.border { border: solid blue; border-width: 1px 3px 5px 7px; }
+.padding { padding: 10px; }
+.margin { margin: 1px 3px 5px 7px; }
+</style>
+
+</head><body>
+
+The boxes should align vertically:
+<div class="inline-block">
+ <div>
+ <div class="test border padding margin overflow"></div>
+ </div>
+</div>
+
+<div class="test inline-block margin border padding overflow"></div>
+
+<br>
+
+The boxes should align vertically:
+<div class="inline-block">
+ <div>
+ <div class="test border padding margin overflow">X</div>
+ </div>
+</div>
+
+<div class="test inline-block margin border padding overflow">X</div>
+
+</body></html>
diff --git a/layout/reftests/inline/inline-block-margin.html b/layout/reftests/inline/inline-block-margin.html
new file mode 100644
index 0000000000..476f13df7c
--- /dev/null
+++ b/layout/reftests/inline/inline-block-margin.html
@@ -0,0 +1,6 @@
+<!DOCTYPE HTML>
+<title>margin-left on zero-sized inline-block</title>
+<style>
+span { display: inline-block; height: 0; padding-right: 100px }
+</style>
+<span>hello&nbsp;</span>world
diff --git a/layout/reftests/inline/inline-block-padding.html b/layout/reftests/inline/inline-block-padding.html
new file mode 100644
index 0000000000..476f13df7c
--- /dev/null
+++ b/layout/reftests/inline/inline-block-padding.html
@@ -0,0 +1,6 @@
+<!DOCTYPE HTML>
+<title>margin-left on zero-sized inline-block</title>
+<style>
+span { display: inline-block; height: 0; padding-right: 100px }
+</style>
+<span>hello&nbsp;</span>world
diff --git a/layout/reftests/inline/inline-block-width.html b/layout/reftests/inline/inline-block-width.html
new file mode 100644
index 0000000000..e0ebb9b081
--- /dev/null
+++ b/layout/reftests/inline/inline-block-width.html
@@ -0,0 +1,6 @@
+<!DOCTYPE HTML>
+<title>margin-left on zero-sized inline-block</title>
+<style>
+span { display: inline-block; height: 0; width: 100px }
+</style>
+hello <span></span>world
diff --git a/layout/reftests/inline/inline-block-zero.html b/layout/reftests/inline/inline-block-zero.html
new file mode 100644
index 0000000000..ec0166be49
--- /dev/null
+++ b/layout/reftests/inline/inline-block-zero.html
@@ -0,0 +1,3 @@
+<!DOCTYPE HTML>
+<title>margin-left on zero-sized inline-block</title>
+hello world
diff --git a/layout/reftests/inline/reftest.list b/layout/reftests/inline/reftest.list
new file mode 100644
index 0000000000..c3bcfdf14f
--- /dev/null
+++ b/layout/reftests/inline/reftest.list
@@ -0,0 +1,8 @@
+== zero-inline-block-margin-left.html zero-inline-block-margin-ref.html
+== zero-inline-block-margin-right.html zero-inline-block-margin-ref.html
+== zero-inline-block-margin-ref.html zero-inline-block-margin-ref2.html
+== inline-block-width.html zero-inline-block-margin-ref.html
+== inline-block-padding.html inline-block-width.html
+== inline-block-margin.html inline-block-width.html
+!= inline-block-width.html inline-block-zero.html
+== inline-block-baseline.html inline-block-baseline-ref.html
diff --git a/layout/reftests/inline/zero-inline-block-margin-left.html b/layout/reftests/inline/zero-inline-block-margin-left.html
new file mode 100644
index 0000000000..ac13d0b397
--- /dev/null
+++ b/layout/reftests/inline/zero-inline-block-margin-left.html
@@ -0,0 +1,6 @@
+<!DOCTYPE HTML>
+<title>margin-left on zero-sized inline-block</title>
+<style>
+span { display: inline-block; height: 0; width: 0; margin-left: 100px }
+</style>
+hello <span></span>world
diff --git a/layout/reftests/inline/zero-inline-block-margin-ref.html b/layout/reftests/inline/zero-inline-block-margin-ref.html
new file mode 100644
index 0000000000..ac4edb346d
--- /dev/null
+++ b/layout/reftests/inline/zero-inline-block-margin-ref.html
@@ -0,0 +1,6 @@
+<!DOCTYPE HTML>
+<title>margin-left on zero-sized inline-block</title>
+<style>
+span { margin-left: 100px }
+</style>
+hello <span>world</span>
diff --git a/layout/reftests/inline/zero-inline-block-margin-ref2.html b/layout/reftests/inline/zero-inline-block-margin-ref2.html
new file mode 100644
index 0000000000..24b69ba9d6
--- /dev/null
+++ b/layout/reftests/inline/zero-inline-block-margin-ref2.html
@@ -0,0 +1,6 @@
+<!DOCTYPE HTML>
+<title>margin-left on zero-sized inline-block</title>
+<style>
+span { margin-right: 100px }
+</style>
+<span>hello</span> world
diff --git a/layout/reftests/inline/zero-inline-block-margin-right.html b/layout/reftests/inline/zero-inline-block-margin-right.html
new file mode 100644
index 0000000000..542649a4a6
--- /dev/null
+++ b/layout/reftests/inline/zero-inline-block-margin-right.html
@@ -0,0 +1,6 @@
+<!DOCTYPE HTML>
+<title>margin-left on zero-sized inline-block</title>
+<style>
+span { display: inline-block; height: 0; width: 0; margin-right: 100px }
+</style>
+hello <span></span>world