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

Side by Side Diff: third_party/WebKit/LayoutTests/external/csswg-test/css-display-3/display-contents-alignment-002.html

Issue 2707203005: Import csswg-test@ed79f8614481e97d61f17f41b65448c211d27c6f (Closed)
Patch Set: Created 3 years, 9 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
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <meta charset="utf-8">
3 <title>CSS Test: grid container justify-items is used for grid item regardless o f intermediate display: contents ancestors</title>
4 <link rel="author" title="Emilio Cobos Álvarez" href="mailto:ecobos@igalia.com">
5 <link rel="help" href="https://drafts.csswg.org/css-display-3/#valdef-display-co ntents">
6 <link rel="help" href="https://drafts.csswg.org/css-align/#justify-items-propert y">
7 <link rel="match" href="display-contents-alignment-002-ref.html">
8 <style>
9 .container {
10 display: grid;
11 width: 300px;
12 height: 300px;
13 justify-items: center;
14 border: 2px solid purple;
15 }
16 .contents {
17 display: contents;
18 justify-items: start;
19 }
20 .contents > div {
21 width: 100px;
22 height: 100px;
23 background: blue;
24 justify-self: auto;
25 }
26 </style>
27 <p>Test passes if there's a blue square horizontally centered inside the box.</p >
28 <div class="container">
29 <div class="contents">
30 <div></div>
31 </div>
32 </div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698