Index: third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-self-baseline-03.html |
diff --git a/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-self-baseline-03.html b/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-self-baseline-03.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..5ad10bd5a8eac57a5419e9c67ca1817633b1e83d |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-self-baseline-03.html |
@@ -0,0 +1,35 @@ |
+<!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 orthogonal items.<br>No item participates in row-like Baseline Context.<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> |
+<div class="grid row itemsBaseline"><span class="verticalLR">A</span><span class="verticalLR">A</span><span class="verticalLR">A</span><span class="verticalLR">A</span></div> |
+<div class="grid row itemsBaseline"><span class="verticalLR extraTopPadding">A</span><span class="verticalLR">A</span><span class="verticalLR">A</span><span class="verticalLR">A</span></div> |
+<div class="grid row verticalLR itemsBaseline"><span class="horizontalTB">A</span><span class="horizontalTB">A</span><span class="horizontalTB">A</span><span class="horizontalTB">A</span></div> |
+<div class="grid row verticalLR itemsBaseline"><span class="horizontalTB extraLeftPadding">A</span><span class="horizontalTB">A</span><span class="horizontalTB">A</span><span class="horizontalTB">A</span></div> |
+<div class="grid row verticalRL itemsBaseline"><span class="horizontalTB">A</span><span class="horizontalTB">A</span><span class="horizontalTB">A</span><span class="horizontalTB">A</span></div> |
+<div class="grid row verticalRL itemsBaseline"><span class="horizontalTB extraRightPadding">A</span><span class="horizontalTB">A</span><span class="horizontalTB">A</span><span class="horizontalTB">A</span></div> |