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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-positioned-item-dynamic-change.html

Issue 2471283004: [css-grid] Fix simplified layout of positioned grid items (Closed)
Patch Set: Remove unneeded line in test. Created 4 years, 1 month 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-positioned-item-dynamic-change-expected.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <style>
3
4 .grid {
5 display: grid;
6 grid: 50px 50px / 50px 50px;
7 position: relative;
8 }
9
10 .green {
11 background: green;
12 }
13
14 .red {
15 background: red;
16 }
17
18 #item {
19 position: absolute;
20 width: 100%;
21 height: 100%;
22 grid-column: 1 / 2;
23 grid-row: 1 / 2;
24 }
25 </style>
26
27 <p>This test checks that positioned items can be dynamically changed.</p>
28 <p>The test passes if you see a 100x100 green square and no red.</p>
29
30 <div class="grid">
31 <div class="green"></div>
32 <div class="green"></div>
33 <div class="green"></div>
34 <div class="red"></div>
35 <div id="item" class="green"></div>
36 </div>
37
38 <script>
39 document.body.offsetLeft;
40
41 var item = document.getElementById("item");
42 item.style.gridColumn = "2 / 3";
43 item.style.gridRow = "2 / 3";
44 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-positioned-item-dynamic-change-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698