summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-exclusions/wrap-flow-006.html
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:22:09 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:22:09 +0000
commit43a97878ce14b72f0981164f87f2e35e14151312 (patch)
tree620249daf56c0258faa40cbdcf9cfba06de2a846 /testing/web-platform/tests/css/css-exclusions/wrap-flow-006.html
parentInitial commit. (diff)
downloadfirefox-43a97878ce14b72f0981164f87f2e35e14151312.tar.xz
firefox-43a97878ce14b72f0981164f87f2e35e14151312.zip
Adding upstream version 110.0.1.upstream/110.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/css/css-exclusions/wrap-flow-006.html')
-rw-r--r--testing/web-platform/tests/css/css-exclusions/wrap-flow-006.html66
1 files changed, 66 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-exclusions/wrap-flow-006.html b/testing/web-platform/tests/css/css-exclusions/wrap-flow-006.html
new file mode 100644
index 0000000000..d9c107ae75
--- /dev/null
+++ b/testing/web-platform/tests/css/css-exclusions/wrap-flow-006.html
@@ -0,0 +1,66 @@
+<!DOCTYPE HTML>
+<html>
+ <head>
+ <title>CSS Exclusions Test: wrap-flow property set to maximum</title>
+ <link rel="author" title="Jacob Goldstein" href="mailto:jacobg@adobe.com">
+ <link rel="help" href="http://www.w3.org/TR/css3-exclusions/#wrap-flow-property">
+ <meta name="flags" content="ahem dom">
+ <meta name="assert" content="Text should flow in the left OR right side of the exclusion depending on which has more space, as well as above and below">
+ <script src="/resources/testharness.js"></script>
+ <script src="/resources/testharnessreport.js"></script>
+ <script src="resources/helper.js"></script>
+ <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
+ <style>
+ * {
+ margin: 0px;
+ padding: 0px;
+ }
+ .exclusion {
+ wrap-flow: maximum;
+ position: absolute;
+ top: 40px;
+ left: 40px;
+ width: 60px;
+ height: 25px;
+ background: blue;
+ }
+ #content {
+ width: 400px;
+ line-height: 12px;
+ font: 12px Ahem;
+ }
+ </style>
+ </head>
+ <body>
+ <div class="exclusion"></div>
+
+ <div id="content">
+ <span id="line1">ethical<BR>beer<BR>craft<BR></span>
+ <span id="line2">foo</span>
+ <span id="line3">sed</span>
+ <span id="line4">Vegan<BR>cliche<BR>retro</span>
+ </div>
+
+ <div id="log"></div>
+
+ <script type="text/javascript">
+ setup({ explicit_done: true });
+
+ document.fonts.ready.then(() => {
+ /*Line 1*/
+ test(function() {assert_equals(checkLinePos("line1",0,"top"), true)}, "Verify top of the 'line1' span is positioned correctly");
+ test(function() {assert_equals(checkLinePos("line1",0,"left"), true)}, "Verify left of the 'line1' span is positioned correctly");
+ /*Line 2*/
+ test(function() {assert_equals(checkLinePos("line2",36,"top"), true)}, "Verify top of the 'line2' span is positioned correctly");
+ test(function() {assert_equals(checkLinePos("line2",100,"left"), true)}, "Verify left of the 'line2' span is positioned correctly");
+ /*Line 3*/
+ test(function() {assert_equals(checkLinePos("line3",48,"top"), true)}, "Verify top of the 'line3' span is positioned correctly");
+ test(function() {assert_equals(checkLinePos("line3",100,"left"), true)}, "Verify left of the 'line3' span is positioned correctly");
+ /*Line 4*/
+ test(function() {assert_equals(checkLinePos("line4",65,"top"), true)}, "Verify top of the 'line4' span is positioned correctly");
+ test(function() {assert_equals(checkLinePos("line4",0,"left"), true)}, "Verify left of the 'line4' span is positioned correctly");
+ done();
+ });
+ </script>
+ </body>
+</html>