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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-self-baseline-03-expected.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 .flex {
7 display: flex;
8 background: grey;
9 float: left;
10 margin: 5px;
11 }
12 .row { flex-flow: row; }
13 .column { flex-flow: column; }
14 span:nth-child(1) { font-size:12px; }
15 span:nth-child(2) { font-size:16px; }
16 span:nth-child(3) { font-size:24px; }
17 span:nth-child(4) { font-size:32px; }
18 span {
19 border: 2px solid;
20 padding: 3px;
21 margin: 5px;
22 }
23 .extraTopPadding { padding-top: 15px; }
24 .extraBottomPadding { padding-bottom: 15px; }
25 .extraLeftPadding { padding-left: 15px; }
26 .extraRightPadding { padding-right: 15px; }
27 .verticalLR { text-orientation: sideways; }
28 .verticalRL { text-orientation: sideways; }
29 </style>
30
31 <p>1x4 with orthogonal items.<br>No item participates in row-like Baseline Conte xt.<br>All items participate in their own column-like Baseline Context.<br>Since there is no item sharing a Baseline Context neither 'align-self' or justfy-self can be used to baseline-align items to each other.</p>
32 <div class="flex row itemsBaseline"><span class="verticalLR">A</span><span class ="verticalLR">A</span><span class="verticalLR">A</span><span class="verticalLR"> A</span></div>
33 <div class="flex row itemsBaseline"><span class="verticalLR extraTopPadding">A< /span><span class="verticalLR">A</span><span class="verticalLR">A</span><span cl ass="verticalLR">A</span></div>
34 <div class="flex row verticalLR itemsBaseline"><span class="horizontalTB">A</spa n><span class="horizontalTB">A</span><span class="horizontalTB">A</span><span cl ass="horizontalTB">A</span></div>
35 <div class="flex row verticalLR itemsBaseline"><span class="horizontalTB extraL eftPadding">A</span><span class="horizontalTB">A</span><span class="horizontalTB ">A</span><span class="horizontalTB">A</span></div>
36 <div class="flex row verticalRL itemsBaseline"><span class="horizontalTB">A</spa n><span class="horizontalTB">A</span><span class="horizontalTB">A</span><span cl ass="horizontalTB">A</span></div>
37 <div class="flex row verticalRL itemsBaseline"><span class="horizontalTB extraR ightPadding">A</span><span class="horizontalTB">A</span><span class="horizontalT B">A</span><span class="horizontalTB">A</span></div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698