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

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

Issue 1407633003: [css-grid] Implementation of Baseline Self-Alignment (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed several bug and added new tests. 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
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 .grid {
7 float: left;
8 margin: 5px;
9 }
10 .row { grid-auto-flow: column; }
11 .column { grid-auto-flow: row }
12 span:nth-child(1) { font-size:12px; }
13 span:nth-child(2) { font-size:16px; }
14 span:nth-child(3) { font-size:24px; }
15 span:nth-child(4) { font-size:32px; }
16 span {
17 border: 2px solid;
18 padding: 3px;
19 margin: 5px;
20 }
21 .extraTopPadding { padding-top: 15px; }
22 .extraBottomPadding { padding-bottom: 15px; }
23 .extraLeftPadding { padding-left: 15px; }
24 .extraRightPadding { padding-right: 15px; }
25 .verticalLR { text-orientation: sideways; }
26 .verticalRL { text-orientation: sideways; }
27 </style>
28
29 <p>4x1 with orthogonal items.<br>No item participates in row-like Baseline Conte xt.<br>All items share 'first-column' (matches their inline axis) Baseline Conte xt.<br>The 'justify-self' property can be used to align items along their block- axis so they are baseline-aligned to each other.<br>The Baseline Alignment may i ncrease size contribution of some items.</p>
30 <div class="grid column itemsBaseline"><span class="verticalLR">A</span><span cl ass="verticalLR">A</span><span class="verticalLR">A</span><span class="verticalL R">A</span></div>
31 <div class="grid column itemsBaseline"><span class="verticalLR extraRightPaddin g">A</span><span class="verticalLR">A</span><span class="verticalLR">A</span><sp an class="verticalLR">A</span></div>
32 <div class="grid column verticalLR itemsBaseline"><span class="horizontalTB">A</ span><span class="horizontalTB">A</span><span class="horizontalTB">A</span><span class="horizontalTB">A</span></div>
33 <div class="grid column verticalLR itemsBaseline"><span class="horizontalTB extr aBottomPadding">A</span><span class="horizontalTB">A</span><span class="horizont alTB">A</span><span class="horizontalTB">A</span></div>
34 <div class="grid column verticalRL itemsBaseline"><span class="horizontalTB">A</ span><span class="horizontalTB">A</span><span class="horizontalTB">A</span><span class="horizontalTB">A</span></div>
35 <div class="grid column verticalRL itemsBaseline"><span class="horizontalTB ext raBottomPadding">A</span><span class="horizontalTB">A</span><span class="horizon talTB">A</span><span class="horizontalTB">A</span></div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698