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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-self-baseline-07.html

Issue 1407633003: [css-grid] Implementation of Baseline Self-Alignment (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Get advantage of recomputing the intrinsic size to solve the issues with orthogonal flows. Created 3 years, 10 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 <link href="resources/grid.css" rel="stylesheet">
3 <link href="resources/grid-alignment.css" rel="stylesheet">
4 <style>
5 body { margin: 0; }
6 .block {
7 background: grey;
8 float: left;
9 margin: 5px;
10 text-orientation: sideways;
11 }
12 .block > :nth-child(1) { font-size:24px; }
13 .block > :nth-child(2) { font-size:32px; }
14 .block > :nth-child(3) { font-size:48px; }
15 .block > :nth-child(4) { font-size:64px; }
16 .item {
17 border-width: 2px 5px 3px 4px;
18 border-style: solid;
19 padding: 6px 3px 7px 8px;
20 margin: 10px 6px 4px 12px;
21 }
22 .extraTopPadding { padding-top: 30px; }
23 .extraBottomPadding { padding-bottom: 30px; }
24 .extraLeftPadding { padding-left: 30px; }
25 .extraRightPadding { padding-right: 30px; }
26 .grid { grid: 65px 60px 100px 100px / 150px; }
27 .grid.verticalLR, .grid.verticalRL { grid-template-columns: 125px; }
28 </style>
29
30 <p>4x1 with parallel and orthogonal items. Items orthogonal to the baseline-axis will use a synthesized baseline (border-box 'under' edge).<br>No item shares an y row-like Baseline Context. All items share 'first-column' Baseline Context.<br >The 'justify-self' property (orthogonal to the shared context) aligns all items along the baseline-axis using the column-like baseline.</p>
31 <div class="block grid contentStart justifyItemsBaseline alignItemsStart"><div c lass="item">A</div><div class="item verticalLR">A</div><div class="item">A</div> <div class="item verticalLR">A</div></div>
32 <div class="block grid contentStart justifyItemsBaseline alignItemsStart"><div c lass="item extraLeftPadding">A</div><div class="item verticalLR extraRightPaddin g">A</div><div class="item horizontalTB">A</div><div class="item verticalLR">A</ div></div>
33 <div class="block grid verticalLR contentStart justifyItemsBaseline alignItemsSt art"><div class="item">A</div><div class="item horizontalTB">A</div><div class=" item">A</div><div class="item horizontalTB">A</div></div>
34 <div class="block grid verticalLR contentStart justifyItemsBaseline alignItemsSt art"><div class="item extraBottomPadding">A</div><div class="item horizontalTB e xtraTopPadding">A</div><div class="item">A</div><div class="item horizontalTB">A </div></div>
35
36 <br clear="all">
37
38 <div class="block grid verticalRL contentStart justifyItemsBaseline alignItemsSt art"><div class="item">A</div><div class="item horizontalTB">A</div><div class=" item">A</div><div class="item horizontalTB">A</div></div>
39 <div class="block grid verticalRL contentStart justifyItemsBaseline alignItemsSt art"><div class="item extraBottomPadding">A</div><div class="item horizontalTB e xtraTopPadding">A</div><div class="item">A</div><div class="item horizontalTB">A </div></div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698