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

Side by Side Diff: LayoutTests/imported/csswg-test/css-writing-modes-3/percent-padding-vlr-003.xht

Issue 1161223002: Import csswg-test/css-writing-modes-3/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Comments updated Created 5 years, 6 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 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/x html1/DTD/xhtml1-strict.dtd">
2
3 <html xmlns="http://www.w3.org/1999/xhtml">
4
5 <head>
6
7 <title>CSS Writing Modes Test: padding percentage and 'vertical-lr'</title>
8
9 <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserB ugsSection/css21testsuite/" />
10 <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#dimension-map ping" title="7.2 Dimensional Mapping" />
11 <link rel="match" href="margin-vrl-002-ref.xht" />
12
13 <meta content="image" name="flags" />
14 <meta content="This test checks that percentages on the padding are calculated with respect to the width of the containing block if 'writing-mode' of such con taining block is 'horizontal-tb'. In this test, div.outer's computed 'writing-mo de' value is 'horizontal-tb' and it is the div.inner's containing block." name=" assert" />
15
16 <style type="text/css"><![CDATA[
17 div.outer
18 {
19 background-color: blue;
20 border: blue solid 3px;
21 width: 200px;
22 }
23
24 hr
25 {
26 background-color: transparent;
27 border: transparent none 0px;
28 height: 3px;
29 margin: 3px auto;
30 }
31
32 div.inner
33 {
34 background-color: transparent;
35 height: 50px; /* necessary, otherwise div.inner blocks must grow as tall a s the height of viewport */
36 }
37
38 img
39 {
40 vertical-align: bottom;
41 /*
42 Not necessary but because Chrome 40 does not centrally baseline-align
43 inline replaced element in vertical writing-mode with 'text-orientation: m ixed'
44 or with 'text-orientation: upright', we do this to avoid a false negative.
45 */
46 }
47
48
49 div.foo
50 {
51 padding-bottom: 2.5%;
52 padding-left: 50%;
53 padding-right: 25%;
54 padding-top: 10%;
55 -webkit-writing-mode: vertical-lr;
56 }
57
58 div.bar
59 {
60 padding-bottom: 10%;
61 padding-left: 25%;
62 padding-right: 50%;
63 padding-top: 2.5%;
64 -webkit-writing-mode: vertical-lr;
65 }
66
67 div#reference
68 {
69 margin-top: 1em;
70 }
71 ]]></style>
72 </head>
73
74 <body>
75
76 <p>Test passes if there are 2 <strong>identical</strong> blue rectangles, each with 2 small yellow squares: the layout must be identical.</p>
77
78 <div class="outer">
79 <div class="inner foo"><img src="support/swatch-yellow.png" width="50" heigh t="50" alt="Image download support must be enabled" /></div>
80 <hr />
81 <div class="inner bar"><img src="support/swatch-yellow.png" width="50" heigh t="50" alt="Image download support must be enabled" /></div>
82 </div>
83
84 <div id="reference"><img src="support/blue-yellow-206w-165h.png" width="206" h eight="165" alt="Image download support must be enabled" /></div>
85
86 </body>
87 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698