tor-browser

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

text-orientation-010.xht (1987B)


      1 <?xml version="1.0" encoding="UTF-8"?>
      2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
      3 <html xmlns="http://www.w3.org/1999/xhtml">
      4 	<head>
      5 		<title>CSS Writing Modes Test: text-orientation - mixed</title>
      6 		<link rel="author" title="Taka Oshiyama" href="mailto:takaoshiyama@gmail.com" />
      7 		<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
      8 		<link rel="help" title="5.1. Orienting Text: the 'text-orientation' property" href="http://www.w3.org/TR/css-writing-modes-3/#text-orientation" />
      9 		<meta name="flags" content="image" />
     10 		<meta name="assert" content="This test checks that 'text-orientation: mixed' causes characters from horizontal-only scripts are set sideways, i.e. rotated 90° clockwise from their standard orientation in horizontal text. Characters from vertical scripts are set according to their intrinsic orientation (Vertical Orientation Property as given by UTR50)." />
     11 		<style type="text/css">
     12 				@font-face
     13 				{
     14 					font-family: "mplus-1p-regular";
     15 					src: url("/fonts/mplus-1p-regular.woff") format("woff");
     16 				}
     17 
     18 				div
     19 				{
     20 					font-family: "mplus-1p-regular";
     21 					font-size: 32px;
     22 					line-height: 1.5; /* computes to 48px */
     23 					margin-bottom: 10px;
     24 					writing-mode: vertical-rl;
     25 				}
     26 
     27 				div#test
     28 				{
     29 					border: 1px solid gray;
     30 				}
     31 
     32 				span
     33 				{
     34 					text-orientation: mixed;					/* The property to be tested */
     35 				}
     36 
     37 		</style>
     38 	</head>
     39 	<body>
     40 
     41 		<p>Test passes if characters of both rectangles have the <strong>same order</strong>, <strong>same layout</strong> and the <strong>same orientation</strong>. Note that a different inter-character spacing is considered as PASS.</p>
     42 
     43 		<div xml:lang="ja" id="test"><span>月火水Abc<br />def木金土</span></div>
     44 
     45 		<div id="control"><img src="support/text-orientation-010.png" width="98" height="192" alt="Image download support must be enabled" /></div>
     46 
     47 	</body>
     48 </html>