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

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

Issue 1188583004: update-w3c-deps import using blink 9d3793ee56e5bb1aa1eef078d848e1b0e6e4d355: (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/x html1/DTD/xhtml1-strict.dtd"> 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/x html1/DTD/xhtml1-strict.dtd">
2 2
3 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <html xmlns="http://www.w3.org/1999/xhtml">
4 4
5 <head> 5 <head>
6 6
7 <title>CSS Writing Modes Test: padding percentage and 'vertical-lr'</title> 7 <title>CSS Writing Modes Test: padding percentage and 'vertical-lr' (orthogona l flow)</title>
8 8
9 <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserB ugsSection/css21testsuite/" /> 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" /> 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" /> 11 <link rel="match" href="margin-vrl-002-ref.xht" />
12 12
13 <meta content="image" name="flags" /> 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" /> 14 <meta content="This test checks that percentages on the padding are calculated with respect to the width (inline-size) of the containing block if 'writing-mod e' of such containing block is 'horizontal-tb'. In this test, div.outer's comput ed 'writing-mode' value is 'horizontal-tb' and it is the div.inner's containing block." name="assert" />
15 15
16 <style type="text/css"><![CDATA[ 16 <style type="text/css"><![CDATA[
17 div.outer 17 div.outer
18 { 18 {
19 background-color: blue; 19 background-color: blue;
20 border: blue solid 3px; 20 border: blue solid 3px;
21 width: 200px; 21 width: 200px;
22 } 22 }
23 23
24 div.inner
25 {
26 background-color: transparent;
27 height: 50px;
28 -webkit-writing-mode: vertical-lr;
29 }
30
31 div.foo
32 {
33 padding-bottom: 2.5%; /* 5px */
34 padding-left: 50%; /* 100px */
35 padding-right: 25%; /* 50px */
36 padding-top: 10%; /* 20px */
37 }
38
24 hr 39 hr
25 { 40 {
26 background-color: transparent; 41 background-color: transparent;
27 border: transparent none 0px; 42 border: transparent none 0px;
28 height: 3px; 43 height: 3px;
29 margin: 3px auto; 44 margin: 3px auto;
30 } 45 }
31 46
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 47 div.bar
59 { 48 {
60 padding-bottom: 10%; 49 padding-bottom: 10%; /* 20px */
61 padding-left: 25%; 50 padding-left: 25%; /* 50px */
62 padding-right: 50%; 51 padding-right: 50%; /* 100px */
63 padding-top: 2.5%; 52 padding-top: 2.5%; /* 5px */
64 -webkit-writing-mode: vertical-lr;
65 } 53 }
66 54
67 div#reference 55 div#reference
68 { 56 {
69 margin-top: 1em; 57 margin-top: 1em;
70 } 58 }
71 ]]></style> 59 ]]></style>
72 </head> 60 </head>
73 61
74 <body> 62 <body>
75 63
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> 64 <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 65
78 <div class="outer"> 66 <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> 67 <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 /> 68 <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> 69 <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> 70 </div>
83 71
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> 72 <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 73
86 </body> 74 </body>
87 </html> 75 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698