Index: third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-self-baseline-02.html |
diff --git a/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-self-baseline-02.html b/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-self-baseline-02.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..20d37dce8953a7ba5f8c404d100432cedd24b0e3 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-self-baseline-02.html |
@@ -0,0 +1,39 @@ |
+<!DOCTYPE html> |
+<link href="resources/grid.css" rel="stylesheet"> |
+<link href="resources/grid-alignment.css" rel="stylesheet"> |
+<style> |
+body { margin: 0; } |
+.grid { |
+ float: left; |
+ margin: 5px; |
+} |
+.row { grid-auto-flow: column; } |
+.column { grid-auto-flow: row } |
+span:nth-child(1) { font-size:12px; } |
+span:nth-child(2) { font-size:16px; } |
+span:nth-child(3) { font-size:24px; } |
+span:nth-child(4) { font-size:32px; } |
+span { |
+ border: 2px solid; |
+ padding: 3px; |
+ margin: 5px; |
+} |
+.extraTopPadding { padding-top: 15px; } |
+.extraBottomPadding { padding-bottom: 15px; } |
+.extraLeftPadding { padding-left: 15px; } |
+.extraRightPadding { padding-right: 15px; } |
+.verticalLR { text-orientation: sideways; } |
+.verticalRL { text-orientation: sideways; } |
+</style> |
+ |
+<p>1x4 with parallel items, but opposite block-flow direction.<br>All items share 'first-row' (matches their inline axis) Baseline Context.<br>No item participates in column-like Baseline Context.<br>We have 2 baseline-sharing groups.<br>The 'align-self' property can be used to align items along their block-axis so items of each baseline-sharing group are baseline-aligned to each other.<br>The Baseline Alignment may increase size contribution of some items.</p> |
+<div class="grid row verticalLR itemsBaseline"><span>A</span><span class="verticalRL">A</span><span>A</span><span class="verticalRL">A</span></div> |
+<div class="grid row verticalLR itemsBaseline"><span class="extraLeftPadding">A</span><span class="verticalRL">A</span><span>A</span><span class="verticalRL">A</span></div> |
+<div class="grid row verticalRL itemsBaseline"><span>A</span><span class="verticalLR">A</span><span>A</span><span class="verticalLR">A</span></div> |
+<div class="grid row verticalRL itemsBaseline"><span class="extraLeftPadding">A</span><span class="verticalLR">A</span><span>A</span><span class="verticalLR">A</span></div> |
+ |
+<br clear="all"> |
+ |
+<p>4x1 with orthogonal items, but opposite block-flow direction.<br>No item participates in row-like Baseline Context.<br>All items share 'first-column' (matches their inline axis) Baseline Context.<br>We have 2 baseline-sharing groups.<br>The 'justify-self' property can be used to align items along their block-axis so items of each baseline-sharing group are baseline-aligned to each other.<br>The Baseline Alignment may increase size contribution of some items.</p> |
+<div class="grid column itemsBaseline"><span class="verticalLR">A</span><span class="verticalRL">A</span><span class="verticalLR">A</span><span class="verticalRL">A</span></div> |
+<div class="grid column itemsBaseline"><span class="verticalLR extraLeftPadding">A</span><span class="verticalRL">A</span><span class="verticalLR">A</span><span class="verticalRL">A</span></div> |