tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

white-space-collapse-preserve-breaks-001.xht (1577B)


      1 <?xml version="1.0" encoding="UTF-8"?>
      2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
      3 <html xmlns="http://www.w3.org/1999/xhtml">
      4 	<head>
      5 		<title>CSS Test: white-space-collapse - preserve-breaks - basic cases</title>
      6 		<link rel="author" title="Satoshi Umehara" href="mailto:umehara@est.co.jp" />
      7 		<link rel="help" title="CSS Text Level 4: 3.1. White Space Collapsing: the ‘white-space-collapse’ property" href="https://drafts.csswg.org/css-text-4/#white-space-collapsing" />
      8 		<link rel="match" href="reference/white-space-collapse-preserve-breaks-001-ref.xht"/>
      9 		<meta name="assert" content="The UA should collapse sequences of white space into a single character but preserve segment breaks as forced line breaks when white-space-collapse is set to preserve-breaks." />
     10 		<style type="text/css">
     11 			<![CDATA[
     12 				.test span {
     13 					white-space-collapse: preserve-breaks;
     14 				}
     15 				/* the CSS below is not part of the test */
     16 				span {
     17 					color: Blue;
     18 				}
     19 			]]>
     20 		</style>
     21 	</head>
     22 	<body>
     23 		<p>
     24 			Test passes if the first two sentences matches the second one.
     25 		</p>
     26 		<p class="test">
     27 			<span>
     28 				Sequences of  white   space    should     collapse      into       a        single         character.
     29 				But segment  breaks   as    forced     line      breaks       are        preserved.
     30 			</span>
     31 		</p>
     32 		<p>
     33 			<span>
     34 				Sequences of white space should collapse into a single character.<br />
     35 				But segment breaks as forced line breaks are preserved.
     36 			</span>
     37 		</p>
     38 	</body>
     39 </html>