tor-browser

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

text-orientation-upright-vrl-002.xht (2236B)


      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 - upright in vertical-rl writing mode</title>
      6 		<link rel="author" title="Kazuaki Takemura" href="mailto:takemura@networksoft.co.jp" />
      7 		<link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2015-12-24 and 2016-12-11 -->
      8 		<link rel="help" title="5.1. Orienting Text" 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 latin alphabet characters are translated upright (and not rotated sideways)." />
     11 		<style type="text/css"><![CDATA[
     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 				float: left;
     20 				color: blue;
     21 				font-family: "mplus-1p-regular";
     22 				font-size: 24px; /* we must try to avoid a too tall div which could generate 2 line boxes; so we use a smaller font size */
     23 				line-height: 1.5; /* equivalent to 36px:
     24 				so that top-half-leading outside content is 6px
     25 				and bottom-half-leading outside content is 6px */
     26 				margin: 10px;
     27 			}
     28 
     29 			div#vertical
     30 			{
     31 				border: 1px solid gray;
     32 				writing-mode: 				vertical-rl;
     33 				text-orientation:   		upright;
     34 			}
     35 
     36 		    img {vertical-align: top;}
     37 
     38 		]]></style>
     39 	</head>
     40 	<body>
     41 
     42 	<p>Test passes if characters in both "Text sample" rectangles have the <strong>same order</strong> and the <strong>same orientation</strong>: both "Text sample" should be translated upright. Note that a different inter-character spacing is considered as PASS.</p>
     43 
     44 	<div id="vertical">&#65332;ext sample</div>
     45 
     46 	<!--
     47 	HTML Entity (decimal) &#65332; or HTML Entity (hex) &#xff34; is Unicode Character 'FULLWIDTH LATIN CAPITAL LETTER T'
     48 	More info:
     49 	http://lists.w3.org/Archives/Public/public-css-testsuite/2015Dec/0008.html
     50 	-->
     51 
     52 	<div><img src="support/text-orientation-upright-vrl-002.png" width="38" height="376" alt="Image download support must be enabled" /></div>
     53 
     54 	</body>
     55 </html>