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

Side by Side Diff: LayoutTests/fast/css-grid-layout/grid-positioned-items-background-expected.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 <style>
4 .grid {
5 width: 400px;
6 height: 300px;
7 border: 5px solid black;
8 margin: 30px;
9 padding: 15px;
10 background-color: grey;
11 }
12
13 .container {
14 position: relative;
15 float: left;
16 }
17
18 .absolute {
19 position: absolute;
20 }
21
22 .green {
23 background-color: green;
24 }
25 </style>
26 <body>
27
28 <p>This test checks that the background of positioned items is painted in the ri ght position.</p>
29
30 <p>The test passes if you see 4 green boxes and no red.</p>
31
32 <div class="container">
33 <div class="grid"></div>
34 <div class="absolute green" style="left: 55px; top: 50px; width: 100px; heig ht: 50px"></div>
35 <div class="absolute green" style="left: 290px; top: 50px; width: 50px; heig ht: 20px"></div>
36 <div class="absolute green" style="left: 50px; top: 115px; width: 50px; heig ht: 30px"></div>
37 <div class="absolute green" style="left: 175px; top: 135px; width: 145px; he ight: 75px"></div>
38 </div>
39
40 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698