summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-text/white-space/white-space-pre-wrap-trailing-spaces-021.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-text/white-space/white-space-pre-wrap-trailing-spaces-021.html
parentInitial commit. (diff)
downloadfirefox-upstream.tar.xz
firefox-upstream.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-text/white-space/white-space-pre-wrap-trailing-spaces-021.html')
-rw-r--r--testing/web-platform/tests/css/css-text/white-space/white-space-pre-wrap-trailing-spaces-021.html63
1 files changed, 63 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-text/white-space/white-space-pre-wrap-trailing-spaces-021.html b/testing/web-platform/tests/css/css-text/white-space/white-space-pre-wrap-trailing-spaces-021.html
new file mode 100644
index 0000000000..1a506540ac
--- /dev/null
+++ b/testing/web-platform/tests/css/css-text/white-space/white-space-pre-wrap-trailing-spaces-021.html
@@ -0,0 +1,63 @@
+<!DOCTYPE html>
+
+ <meta charset="UTF-8">
+
+ <title>CSS Text Test: Overflowing hanging spaces should be ink overflow</title>
+
+ <!--
+
+ Issue 4297: [css-text-3] Hanging spaces can't be scrollable overflow
+ https://github.com/w3c/csswg-drafts/issues/4297
+
+ Resolution:
+ Hanging spaces are ink overflow by default.
+ UAs may make them scrollable overflow when
+ they think that would be useful.
+
+ -->
+
+ <link rel="author" title="GĂ©rard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
+ <link rel="help" href="https://www.w3.org/TR/css-text-3/#hanging">
+ <link rel="help" href="https://www.w3.org/TR/css-overflow-3/#ink">
+ <link rel="match" href="reference/white-space-pre-wrap-trailing-spaces-021-ref.html">
+
+ <meta content="should" name="flags">
+ <meta content="This test checks that overflowing hanging spaces at end of line are treated as ink overflow. The overflowing hanging spaces at end of line should not extend the scrollable overflow area of the tested box. Therefore the no horizontal scrollbar condition of the test." name="assert">
+
+ <style>
+ div
+ {
+ border: black solid 2px;
+ font-family: monospace;
+ font-size: 32px;
+ line-height: 1.25; /* computes to 40px */
+ margin-bottom: 0.25em;
+ width: 16ch;
+ }
+
+ span
+ {
+ background-color: yellow;
+ }
+
+ div#test
+ {
+ overflow: auto;
+ white-space: pre-wrap;
+ }
+
+ div#reference
+ {
+ white-space: normal;
+ }
+ </style>
+
+ <p>Test passes if the characters inside each black-bordered rectangle are laid out identically and if each black-bordered rectangle does not generate a horizontal scrollbar.
+
+ <div id="test">Lorem ipsum.<span> </span>Dolor
+ sit amet. <br>consectetur</div>
+
+ <div id="reference">Lorem&nbsp;ipsum.<span>&nbsp;&nbsp;&nbsp;&nbsp;</span><br>
+Dolor<br>
+&nbsp;&nbsp;&nbsp;sit amet. <br>
+consectetur</div>