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

Side by Side Diff: LayoutTests/imported/csswg-test/css-writing-modes-3/padding-vrl-004.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 in 'vertical-rl' writing-mode context</ 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/#vertical-layo ut" title="7.1 Principles of Layout in Vertical Writing Modes" />
11 <!--
12 Test inspired by
13 http://lxr.mozilla.org/mozilla-central/source/layout/reftests/writing-mode/109 6224-1b.html
14 -->
15 <link rel="match" href="margin-vrl-002-ref.xht" />
16
17 <meta content="image" name="flags" />
18 <meta content="This test checks that padding-left, padding-right, padding-top and padding-bottom do not change in vertical writing-mode. The padding-left prop erty of a box still affects the lefthand padding of such box." name="assert" />
19
20 <style type="text/css"><![CDATA[
21 .outer
22 {
23 border: blue solid 3px;
24 width: 200px;
25 }
26
27 hr
28 {
29 background-color: blue;
30 border: transparent none 0px;
31 height: 9px;
32 margin: 0px;
33 }
34
35 .inner
36 {
37 background-color: blue;
38 height: 50px; /* necessary, otherwise inner blocks must grow as tall as th e height of viewport */
39 }
40
41 .foo
42 {
43 padding-bottom: 5px;
44 padding-left: 100px;
45 padding-right: 50px;
46 padding-top: 20px;
47 -webkit-writing-mode: vertical-rl;
48 }
49
50 .bar
51 {
52 padding-bottom: 20px;
53 padding-left: 50px;
54 padding-right: 100px;
55 padding-top: 5px;
56 -webkit-writing-mode: vertical-rl;
57 }
58
59 div#reference
60 {
61 margin-top: 1em;
62 }
63 ]]></style>
64 </head>
65
66 <body>
67
68 <p>Test passes if there are 2 <strong>identical</strong> blue rectangles, each with 2 small yellow squares: the layout must be identical.</p>
69
70 <div class="outer">
71 <div class="inner foo"><img src="support/swatch-yellow.png" width="50" heigh t="50" alt="Image download support must be enabled" /></div>
72 <hr />
73 <div class="inner bar"><img src="support/swatch-yellow.png" width="50" heigh t="50" alt="Image download support must be enabled" /></div>
74 </div>
75
76 <div id="reference"><img src="support/blue-yellow-206w-165h.png" width="206" h eight="165" alt="Image download support must be enabled" /></div>
77
78 </body>
79 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698