summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-text/white-space/text-wrap-balance-float-006.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/css/css-text/white-space/text-wrap-balance-float-006.html')
-rw-r--r--testing/web-platform/tests/css/css-text/white-space/text-wrap-balance-float-006.html42
1 files changed, 42 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-text/white-space/text-wrap-balance-float-006.html b/testing/web-platform/tests/css/css-text/white-space/text-wrap-balance-float-006.html
new file mode 100644
index 0000000000..5343e84598
--- /dev/null
+++ b/testing/web-platform/tests/css/css-text/white-space/text-wrap-balance-float-006.html
@@ -0,0 +1,42 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset=utf-8>
+<link rel="match" href="reference/text-wrap-balance-float-006-ref.html">
+<link rel="help" href="https://drafts.csswg.org/css-text-4/#valdef-text-wrap-balance">
+<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1888449">
+<style>
+body {
+ font: 20px/1 monospace;
+}
+.float {
+ float: left;
+ width: 15ch;
+ height: 150px;
+ background: silver;
+}
+.mask {
+ width: 15ch;
+ height: 150px;
+ background: green;
+ position: absolute;
+ left: 15ch;
+}
+.test {
+ width: 28ch;
+ text-wrap: balance;
+ background: red;
+}
+</style>
+</head>
+
+<body>
+<p>There should be no red:</p>
+<div class="float">
+ <div class="mask"></div>
+</div>
+<p class="test">
+Lorem ipsum dolor <span>sit</span> amet consectetur adipisicing elit.
+</p>
+</body>
+