OLD | NEW |
(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 width: 375px; |
| 12 height: 100px; |
| 13 } |
| 14 .block > :nth-child(1) { font-size:24px; } |
| 15 .block > :nth-child(2) { font-size:32px; } |
| 16 .block > :nth-child(3) { font-size:48px; } |
| 17 .block > :nth-child(4) { font-size:64px; } |
| 18 .item { |
| 19 border-width: 2px 5px 3px 4px; |
| 20 border-style: solid; |
| 21 padding: 6px 3px 7px 8px; |
| 22 margin: 10px 6px 4px 12px; |
| 23 } |
| 24 .extraTopPadding { padding-top: 30px; } |
| 25 .extraBottomPadding { padding-bottom: 30px; } |
| 26 .row { grid-auto-flow: column; } |
| 27 </style> |
| 28 |
| 29 <p>1x4 with orthogonal items. Items orthogonal to the baseline-axis will use a s
ynthesized baseline (border-box 'under' edge).<br>All items share 'first-row' Ba
seline Context. No item shares any column-like Baseline Context.<br>Items partic
ipate in both, column and row baseline, but since they only share a row-like Bas
eline Context only 'aling-self' (column baseline-axis) should apply.</p> |
| 30 <div class="block grid row contentStart itemsBaseline"> |
| 31 <div class="item verticalLR">A</div> |
| 32 <div class="item verticalLR">A</div> |
| 33 <div class="item verticalLR">A</div> |
| 34 <div class="item verticalLR">A</div> |
| 35 </div> |
| 36 <div class="block grid row contentStart itemsBaseline"> |
| 37 <div class="item verticalLR extraTopPadding">A</div> |
| 38 <div class="item verticalLR">A</div> |
| 39 <div class="item verticalLR extraBottomPadding">A</div> |
| 40 <div class="item verticalLR">A</div> |
| 41 </div> |
| 42 <div class="block grid row contentStart itemsBaseline"> |
| 43 <div class="item verticalRL">A</div> |
| 44 <div class="item verticalRL">A</div> |
| 45 <div class="item verticalRL">A</div> |
| 46 <div class="item verticalRL">A</div> |
| 47 </div> |
| 48 <div class="block grid row contentStart itemsBaseline"> |
| 49 <div class="item verticalRL extraTopPadding">A</div> |
| 50 <div class="item verticalRL">A</div> |
| 51 <div class="item verticalRL extraBottomPadding">A</div> |
| 52 <div class="item verticalRL">A</div> |
| 53 </div> |
OLD | NEW |