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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-positioned-items-unknown-named-grid-line.html

Issue 1375173002: [css-grid] Unknown named grid lines on absolutely positioned items (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed review comments Created 5 years, 2 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-positioned-items-unknown-named-grid-line-expected.txt » ('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 <link href="resources/grid.css" rel="stylesheet">
3 <style>
4
5 .grid {
6 grid-template-columns: 100px 200px;
7 grid-template-rows: 50px 150px;
8 width: 500px;
9 height: 300px;
10 border: 5px solid black;
11 margin: 30px;
12 padding: 15px;
13 /* Ensures that the grid container is the containing block of the absolutely positioned grid children. */
14 position: relative;
15 }
16
17 .absolute {
18 position: absolute;
19 }
20
21 .startUnknownLine {
22 background-color: blue;
23 grid-column: foo / 3;
24 grid-row: bar / 3;
25 }
26
27 .endUnknownLine {
28 background-color: orange;
29 grid-column: 1 / foo;
30 grid-row: 1 / bar;
31 }
32
33 .startAndEndUnknownLines {
34 background-color: green;
35 grid-column: foo / bar;
36 grid-row: foo / bar;
37 }
38
39 </style>
40 <script src="../../resources/check-layout.js"></script>
41 <body onload="checkLayout('.grid')">
42
43 <p>This test checks that grid placement properties of absolutely positioned item s using unknown named grid lines are treated as "auto".</p>
44
45 <div class="grid">
46 <div class="absolute sizedToGridArea startAndEndUnknownLines"
47 data-offset-x="15" data-offset-y="15" data-expected-width="530" data-exp ected-height="330">
48 </div>
49 <div class="absolute sizedToGridArea endUnknownLine"
50 data-offset-x="15" data-offset-y="15" data-expected-width="515" data-exp ected-height="315">
51 </div>
52 <div class="absolute sizedToGridArea startUnknownLine"
53 data-offset-x="15" data-offset-y="15" data-expected-width="315" data-exp ected-height="215">
54 </div>
55 </div>
56
57 </body>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-positioned-items-unknown-named-grid-line-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698