diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
commit | 26a029d407be480d791972afb5975cf62c9360a6 (patch) | |
tree | f435a8308119effd964b339f76abb83a57c29483 /testing/web-platform/tests/css/css-exclusions/wrap-flow-002.html | |
parent | Initial commit. (diff) | |
download | firefox-26a029d407be480d791972afb5975cf62c9360a6.tar.xz firefox-26a029d407be480d791972afb5975cf62c9360a6.zip |
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/css/css-exclusions/wrap-flow-002.html')
-rw-r--r-- | testing/web-platform/tests/css/css-exclusions/wrap-flow-002.html | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-exclusions/wrap-flow-002.html b/testing/web-platform/tests/css/css-exclusions/wrap-flow-002.html new file mode 100644 index 0000000000..4f56a99a24 --- /dev/null +++ b/testing/web-platform/tests/css/css-exclusions/wrap-flow-002.html @@ -0,0 +1,58 @@ +<!DOCTYPE HTML> +<html> + <head> + <title>CSS Exclusions Test: wrap-flow property set to start</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 from the beginning of the line to the exclusion, 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: start; + 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="linesAbove">ethical<BR>beer<BR>craft<BR></span> + <span id="lineLeft1">foo</span> + <span id="lineLeft2">sed</span> + <span id="linesBelow">Vegan<BR>cliche<BR>retro</span> + </div> + + <div id="log"></div> + + <script type="text/javascript"> + setup({ explicit_done: true }); + + document.fonts.ready.then(() => { + test(function() {assert_equals(checkLinePos("lineLeft1",36,"top"), true)}, "Verify top of the 'lineLeft1' span is positioned correctly"); + test(function() {assert_equals(checkLinePos("lineLeft2",48,"top"), true)}, "Verify top of the 'lineLeft2' span is positioned correctly"); + test(function() {assert_equals(checkLinePos("lineLeft2",36,"right"), true)}, "Verify right of the 'lineLeft2' span is positioned correctly"); + test(function() {assert_equals(checkLinePos("linesBelow",65,"top"), true)}, "Verify top of the 'linesBelow' span is positioned correctly"); + done(); + }); + </script> + </body> +</html> |