summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-text/line-breaking/line-breaking-replaced-003.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/css/css-text/line-breaking/line-breaking-replaced-003.html')
-rw-r--r--testing/web-platform/tests/css/css-text/line-breaking/line-breaking-replaced-003.html26
1 files changed, 26 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-text/line-breaking/line-breaking-replaced-003.html b/testing/web-platform/tests/css/css-text/line-breaking/line-breaking-replaced-003.html
new file mode 100644
index 0000000000..81b15d9d4c
--- /dev/null
+++ b/testing/web-platform/tests/css/css-text/line-breaking/line-breaking-replaced-003.html
@@ -0,0 +1,26 @@
+<!doctype html>
+<html>
+<meta charset="utf-8">
+<title>CSS Text — WORD JOINER and replaced element</title>
+<meta name=assert content="There is no soft wrap opportunity between replaced elements and adjacent WORD JOINER">
+<link rel=help href="https://www.w3.org/TR/css-text-3/#line-break-details">
+<link rel=match href="reference/line-breaking-replaced-003-ref.html">
+<link rel=author title="Florian Rivoal" href="https://florian.rivoal.net">
+<style>
+.test {
+ width: 50px;
+}
+.red {
+ position: absolute;
+ color: red;
+ z-index: -1;
+ padding-left: 60px;
+ padding-top: 40px;
+}
+</style>
+
+<p>Test passes if there is no red.
+
+<div class=red>XX</div>
+
+<div class=test><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNkaGD4DwACiQGBU29HsgAAAABJRU5ErkJggg==" width=50 height=100>&#8288;<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNkaGD4DwACiQGBU29HsgAAAABJRU5ErkJggg==" width=50 height=100></div>