| OLD | NEW |
| (Empty) | |
| 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 - sideways-right
</title> |
| 6 <link rel="author" title="Taka Oshiyama" href="mailto:takaoshiya
ma@gmail.com" /> |
| 7 <link rel="help" title="5.1. Orienting Text: the‘text-orientatio
n’property" href="http://www.w3.org/TR/css-writing-modes-3/#text-orientation" /> |
| 8 <link rel="match" href="reftest/text-orientation-012-ref.xht" /> |
| 9 <meta http-equiv="content-language" content="en" /> |
| 10 <meta name="flags" content="ahem" /> |
| 11 <meta name="assert" content="This test checks that 'text-orienta
tion: sideways-right' causes text to be set as if in a horizontal layout, but ro
tated 90° clockwise, in vertical writing modes. This is effective to verify 1.bl
ock flow direction, 2.inline direction and 3.glyph orientation." /> |
| 12 <style type="text/css"> |
| 13 .view_ahem |
| 14 { |
| 15 background: pink; |
| 16 border: 1px solid black; |
| 17 color: blue; |
| 18 font: 20px/1 "Ahem"; |
| 19 height: 3em; |
| 20 margin: 10px; |
| 21 width: 3em; |
| 22 white-space: pre; |
| 23 } |
| 24 #test_ahem |
| 25 { |
| 26 -webkit-text-orientation: sideways-right
; /* The property to be tested */ |
| 27 -webkit-text-orientation:sideways-right; |
| 28 -webkit-writing-mode: vertical-rl; |
| 29 -webkit-writing-mode: vertical-rl; |
| 30 } |
| 31 #control_ahem |
| 32 { |
| 33 -webkit-writing-mode: horizontal-tb; |
| 34 -webkit-writing-mode: horizontal-tb; |
| 35 } |
| 36 .view |
| 37 { |
| 38 border: 1px solid gray; |
| 39 font-size: 1.5em; |
| 40 line-height: 1.5; |
| 41 margin-bottom: 10px; |
| 42 width: 3em; |
| 43 -webkit-writing-mode: vertical-rl; |
| 44 -webkit-writing-mode: vertical-rl; |
| 45 } |
| 46 #test |
| 47 { |
| 48 -webkit-text-orientation: sideways-right
; /* The property to be tested */ |
| 49 -webkit-text-orientation:sideways-right; |
| 50 } |
| 51 #control |
| 52 { |
| 53 -webkit-text-combine: none; |
| 54 } |
| 55 </style> |
| 56 </head> |
| 57 <body lang="en"> |
| 58 <!-- |
| 59 This test consists of a pair of sub-tests which compleme
nts each other. |
| 60 Logically, the test should verify 1.block flow direction
, 2.inline direction |
| 61 and 3.glyph orientation. The "Ahem" sub-test comes first
and checks 1. and 2. , |
| 62 whereas "glyph" sub-test comes later and also checks 3. |
| 63 --> |
| 64 <p>Test passes if a pair of rectangles is <strong>identical</str
ong> including <strong>layout</strong> and <strong>orientation</strong>.</p> |
| 65 <div class="view_ahem"><span id="test_ahem">123 |
| 66 56 |
| 67 7 </span></div> |
| 68 <div class="view_ahem"><span id="control_ahem">7 1 |
| 69 52 |
| 70 63</span></div> |
| 71 <hr /> |
| 72 <div class="view"><span id="test">123Abc<br />def456</span></div
> |
| 73 <div class="view"><span id="control">123Abc<br />def456</span></
div> |
| 74 </body> |
| 75 </html> |
| OLD | NEW |