diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 09:22:09 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 09:22:09 +0000 |
commit | 43a97878ce14b72f0981164f87f2e35e14151312 (patch) | |
tree | 620249daf56c0258faa40cbdcf9cfba06de2a846 /testing/web-platform/tests/css/css-exclusions/wrap-flow-001.html | |
parent | Initial commit. (diff) | |
download | firefox-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-001.html')
-rw-r--r-- | testing/web-platform/tests/css/css-exclusions/wrap-flow-001.html | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-exclusions/wrap-flow-001.html b/testing/web-platform/tests/css/css-exclusions/wrap-flow-001.html new file mode 100644 index 0000000000..f87c5baf8b --- /dev/null +++ b/testing/web-platform/tests/css/css-exclusions/wrap-flow-001.html @@ -0,0 +1,52 @@ +<!DOCTYPE HTML> +<html> + <head> + <title>CSS Exclusions Test: wrap-flow property set to clear</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="The text should flow above and below the exclusion, and not on either side"> + <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: clear; + position: absolute; + top: 40px; + left: 50px; + width: 110px; + height: 110px; + background: blue; + } + #content { + width: 400px; + height: 200px; + line-height: 12px; + font: 12px Ahem; + } + </style> + </head> + <body> + <div class="exclusion"></div> + + <div id="content"><span id="linesAbove">A<BR>B<BR>C<BR></span><span id="linesBelow">D<BR>E</span> + </div> + + <div id="log"></div> + + <script type="text/javascript"> + setup({ explicit_done: true }); + + document.fonts.ready.then(() => { + test(function() {assert_equals(checkLinePos("linesBelow",150,"top"), true)}, "Verify top of the 'linesBelow' span is positioned correctly"); + done(); + }); + </script> + </body> +</html> |