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

Side by Side Diff: LayoutTests/fast/css-grid-layout/grid-positioned-children-writing-modes.html

Issue 637033003: [CSS Grid Layout] Fix positioned grid children position and size (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years 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>
2 <html>
3 <link href="resources/grid.css" rel="stylesheet">
4 <style>
5
6 .grid {
7 margin: 1px;
8 width: 50px;
9 height: 25px;
10 padding: 5px 10px 15px 20px;
11 /* Ensures that the grid container is the containing block of the grid child ren. */
12 position: relative;
13 }
14
15 .absolute {
16 position: absolute;
17 }
18
19 .onlyFirstRowOnlyFirstColumn {
20 background-color: green;
21 grid-column: 1 / 2;
22 grid-row: 1 / 2;
23 }
24
25 .red {
26 background-color: red;
27 width: 50px;
28 height: 25px;
29 top: 5px;
30 left: 20px;
31 }
32
33 </style>
34 <body>
35
36 <p>This test checks the behavior of the positioned grid children in combination with the writing modes and text direction properties.</p>
37 <p>For the test to pass you should see no red and all the green boxes should hav e the very the same position and size within each grey box. The black box will b e positioned depending on the writing mode and text direction values.</p>
38
39 <div class="grid">
40 <div class="sizedToGridArea red"></div>
41 <div class="sizedToGridArea absolute onlyFirstRowOnlyFirstColumn">XX</div>
42 </div>
43
44 <div class="grid verticalRL">
45 <div class="sizedToGridArea red"></div>
46 <div class="sizedToGridArea absolute onlyFirstRowOnlyFirstColumn">XX</div>
47 </div>
48
49 <div class="grid verticalLR">
50 <div class="sizedToGridArea red"></div>
51 <div class="sizedToGridArea absolute onlyFirstRowOnlyFirstColumn">XX</div>
52 </div>
53
54 <div class="grid horizontalBT">
55 <div class="sizedToGridArea red"></div>
56 <div class="sizedToGridArea absolute onlyFirstRowOnlyFirstColumn">XX</div>
57 </div>
58
59 <div class="grid directionRTL">
60 <div class="sizedToGridArea red"></div>
61 <div class="sizedToGridArea absolute onlyFirstRowOnlyFirstColumn">XX</div>
62 </div>
63
64 <div class="grid verticalRL directionRTL">
65 <div class="sizedToGridArea red"></div>
66 <div class="sizedToGridArea absolute onlyFirstRowOnlyFirstColumn">XX</div>
67 </div>
68
69 <div class="grid verticalLR directionRTL">
70 <div class="sizedToGridArea red"></div>
71 <div class="sizedToGridArea absolute onlyFirstRowOnlyFirstColumn">XX</div>
72 </div>
73
74 <div class="grid horizontalBT directionRTL">
75 <div class="sizedToGridArea red"></div>
76 <div class="sizedToGridArea absolute onlyFirstRowOnlyFirstColumn">XX</div>
77 </div>
78
79 </body>
80 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698