summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-exclusions/wrap-flow-004.html
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:47:29 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:47:29 +0000
commit0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d (patch)
treea31f07c9bcca9d56ce61e9a1ffd30ef350d513aa /testing/web-platform/tests/css/css-exclusions/wrap-flow-004.html
parentInitial commit. (diff)
downloadfirefox-esr-0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d.tar.xz
firefox-esr-0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d.zip
Adding upstream version 115.8.0esr.upstream/115.8.0esr
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/css/css-exclusions/wrap-flow-004.html')
-rw-r--r--testing/web-platform/tests/css/css-exclusions/wrap-flow-004.html70
1 files changed, 70 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-exclusions/wrap-flow-004.html b/testing/web-platform/tests/css/css-exclusions/wrap-flow-004.html
new file mode 100644
index 0000000000..c2369a12ee
--- /dev/null
+++ b/testing/web-platform/tests/css/css-exclusions/wrap-flow-004.html
@@ -0,0 +1,70 @@
+<!DOCTYPE HTML>
+<html>
+ <head>
+ <title>CSS Exclusions Test: wrap-flow property set to both</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 on both the left and right side of the exclusion, in addition to 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: both;
+ position: absolute;
+ top: 15px;
+ left: 70px;
+ 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 beer craft</span><BR>
+ <span id="line2Left">jean </span><span id="line2Right">vegan</span><BR>
+ <span id="line3Left">fund </span><span id="line3Right">selvage</span><BR>
+ <span id="line4Left">swags </span><span id="line4Right">unami</span><BR>
+ <span id="line5">american apparel squid</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 right of the 'line1' span is positioned correctly");
+ /* Line 2 */
+ test(function() {assert_equals(checkLinePos("line2Left",12,"top"), true)}, "Verify top of the 'line2' span is positioned correctly");
+ test(function() {assert_equals(checkLinePos("line2Right",130,"left"), true)}, "Verify left of the 'line2' span is positioned correctly");
+ /* Line 3 */
+ test(function() {assert_equals(checkLinePos("line3Left",24,"top"), true)}, "Verify top of the 'line3' span is positioned correctly");
+ test(function() {assert_equals(checkLinePos("line3Right",130,"left"), true)}, "Verify left of the 'line3' span is positioned correctly");
+ /* Line 4 */
+ test(function() {assert_equals(checkLinePos("line4Left",36,"top"), true)}, "Verify top of the 'line4' span is positioned correctly");
+ test(function() {assert_equals(checkLinePos("line4Right",130,"left"), true)}, "Verify left of the 'line4' span is positioned correctly");
+ /* Line 5 */
+ test(function() {assert_equals(checkLinePos("line5",48,"top"), true)}, "Verify top of the 'line5' span is positioned correctly");
+ test(function() {assert_equals(checkLinePos("line5",0,"left"), true)}, "Verify right of the 'line5' span is positioned correctly");
+ done();
+ });
+ </script>
+ </body>
+</html>