summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/CSS2/text/white-space-mixed-001.xht
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/css/CSS2/text/white-space-mixed-001.xht')
-rw-r--r--testing/web-platform/tests/css/CSS2/text/white-space-mixed-001.xht65
1 files changed, 65 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/CSS2/text/white-space-mixed-001.xht b/testing/web-platform/tests/css/CSS2/text/white-space-mixed-001.xht
new file mode 100644
index 0000000000..2202c90644
--- /dev/null
+++ b/testing/web-platform/tests/css/CSS2/text/white-space-mixed-001.xht
@@ -0,0 +1,65 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+
+ <!-- ================================================================ -->
+ <!-- WARNING! This document contains significant trailing whitespace! -->
+ <!-- ================================================================ -->
+
+ <head>
+ <title>CSS Test: white-space: mixed tests</title>
+ <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
+ <link rel="reviewer" title="GĂ©rard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-06-29 -->
+ <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/text/white-space/mixed/001.html" type="text/html"/>
+ <link rel="help" href="http://www.w3.org/TR/CSS21/text.html#white-space-model" />
+ <link rel="help" href="https://drafts.csswg.org/css-text-3/#white-space-property" />
+ <link rel="match" href="white-space-mixed-001-ref.xht" />
+
+ <meta name="flags" content="ahem" />
+
+ <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
+ <style type="text/css">
+ .test
+ {
+ background: yellow;
+ border: solid blue;
+ color: orange;
+ font: 1.25em/1 Ahem;
+ width: 19em;
+ }
+
+ .normal { white-space: normal; }
+ .nowrap { white-space: nowrap; }
+ .pre { white-space: pre; }
+ </style>
+ </head>
+ <body>
+ <p>There should be a pretty yellow and orange pattern and "PASS" in orange on white.</p>
+ <div class="test pre">1234567890123456789<span class="normal">
+ x <span>
+x <span class="pre"></span> x<span>
+
+</span> x x</span> x <span> x x </span> x <span class="pre">x</span>
+1234</span>567890123456789 xxxx xxxx xx<span class="normal">x<span class="nowrap">x
+xxxx </span> </span>x<span class="normal"> <span class="pre"> </span> <span class="pre"> </span> <span class="pre"> </span>
+<span class="nowrap">
+ </span> </span> <span class="pre"> </span><span class="normal"> </span> <span class="nowrap">
+ </span><span class="normal"> </span> x x x x x x x
+<span class="nowrap">x
+x x x x x x x x x xxxx
+xxxx xxxx xxxx </span>
+x x x x x x x<span class="normal"> xxxxxxxxxxxxxxxxxxx<span
+class="pre"> x x x xxxx xxxx </span></span>
+</div>
+
+ <p>The pattern in the blue rectangle above should look exactly like the reference rendering below:</p>
+
+ <div class="test pre">1234567890123456789
+x x x x x x x x x x
+1234567890123456789 xxxx xxxx xxxx xxxx
+x x x x x x x x
+x x x x x x x x x x xxxx xxxx xxxx xxxx
+x x x x x x x
+xxxxxxxxxxxxxxxxxxx x x x xxxx xxxx</div>
+
+ </body>
+</html>