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

Unified Diff: third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-self-baseline-06-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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-self-baseline-06-expected.html
diff --git a/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-self-baseline-06-expected.html b/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-self-baseline-06-expected.html
new file mode 100644
index 0000000000000000000000000000000000000000..f8f28da8dcdedc272496411910afd47dc205dd70
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-self-baseline-06-expected.html
@@ -0,0 +1,37 @@
+<!DOCTYPE html>
+<link href="resources/grid.css" rel="stylesheet">
+<link href="resources/grid-alignment.css" rel="stylesheet">
+<style>
+body { margin: 0; }
+.flex {
+ display: flex;
+ background: grey;
+ float: left;
+ margin: 5px;
+}
+.row { flex-flow: row; }
+.column { flex-flow: column; }
+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>4x1 with parallel items.<br>All items participate in their own row-like Baseline Context.<br>No item participates in 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="flex column itemsBaseline"><span>A</span><span>A</span><span>A</span><span>A</span></div>
+<div class="flex column itemsBaseline"><span class="extraRightPadding">A</span><span>A</span><span>A</span><span>A</span></div>
+<div class="flex column verticalLR itemsBaseline"><span>A</span><span>A</span><span>A</span><span>A</span></div>
+<div class="flex column verticalLR itemsBaseline"><span class="extraTopPadding">A</span><span>A</span><span>A</span><span>A</span></div>
+<div class="flex column verticalRL itemsBaseline"><span>A</span><span>A</span><span>A</span><span>A</span></div>
+<div class="flex column verticalRL itemsBaseline"><span class="extraBottomPadding">A</span><span>A</span><span>A</span><span>A</span></div>

Powered by Google App Engine
This is Rietveld 408576698