Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(263)

Side by Side Diff: third_party/WebKit/LayoutTests/imported/csswg-test/css-writing-modes-3/text-orientation-014.xht

Issue 1575873005: Import csswg-test@55da5c7bcd5a9d903e4611c3bcc1080cd6a97ad7 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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</titl e>
6 <link rel="author" title="Taka Oshiyama" href="mailto:takaoshiya ma@gmail.com" />
7 <link rel="help" title="5.1. Orienting Text: the 'text-orientati on' property" href="http://www.w3.org/TR/css-writing-modes-3/#text-orientation" />
8 <link rel="match" href="reference/text-orientation-014-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' causes text to be set as if in a horizontal layout, but rotated 90° clockwise, in vertical writing modes. This is effective to verify 1.block fl ow 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 text-orientation: sideways; /* The property to be tested */
27 writing-mode: vertical-rl;
28 }
29 #control_ahem
30 {
31 writing-mode: horizontal-tb;
32 }
33 .view
34 {
35 border: 1px solid gray;
36 font-size: 1.5em;
37 line-height: 1.5;
38 margin-bottom: 10px;
39 width: 3em;
40 writing-mode: vertical-rl;
41 }
42 #test
43 {
44 text-orientation: sideways; /* The property to be tested */
45 }
46 #control
47 {
48 text-combine-upright: none;
49 }
50 </style>
51 </head>
52 <body lang="en">
53 <!--
54 This test consists of a pair of sub-tests which compleme nts each other.
55 Logically, the test should verify 1.block flow direction , 2.inline direction
56 and 3.glyph orientation. The "Ahem" sub-test comes first and checks 1. and 2. ,
57 whereas "glyph" sub-test comes later and also checks 3.
58 -->
59 <p>Test passes if a pair of rectangles is <strong>identical</str ong> including <strong>layout</strong> and <strong>orientation</strong>.</p>
60 <div class="view_ahem"><span id="test_ahem">123
61 56
62 7 </span></div>
63 <div class="view_ahem"><span id="control_ahem">7 1
64 52
65 63</span></div>
66 <hr />
67 <div class="view"><span id="test">123Abc<br />def456</span></div >
68 <div class="view"><span id="control">123Abc<br />def456</span></ div>
69 </body>
70 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698