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

Unified Diff: third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-baseline-margins.html

Issue 1407633003: [css-grid] Implementation of Baseline Self-Alignment (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Preliminary approach. Created 5 years, 2 months 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-baseline-margins.html
diff --git a/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-baseline-margins.html b/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-baseline-margins.html
new file mode 100644
index 0000000000000000000000000000000000000000..89c548590bf5e5130082046b8edd3e5327393a25
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-baseline-margins.html
@@ -0,0 +1,110 @@
+<!DOCTYPE html>
+<html>
+<head>
+<link href="resources/grid.css" rel="stylesheet">
+<style>
+.grid, .inline-grid {
+ background-color: lightgrey;
+}
+
+.inline-block {
+ display: inline-block;
+}
+
+.border {
+ border: 11px solid pink;
+}
+
+.padding {
+ padding: 13px;
+}
+
+.margin {
+ margin: 8px 0;
+}
+
+.grid > div {
+ min-width: 0;
+ min-height: 0;
+}
+
+.column {
+ grid-auto-flow: column;
+}
+</style>
+</head>
+<body>
+
+<div>
+before text
+<div class="border" style="display: inline-block; background-color: lightgrey">
+<div class="grid" style="height: 30px; margin-top: 7px; padding-top: 10px;">
+ baseline
+</div>
+</div>
+after text
+</div>
+
+<div>
+Should align
+<div class="inline-block border">
+ <div class="grid column padding" style="grid-auto-columns: 50px; grid-auto-rows: 50px; background-color: pink">
+ <div style="background-color: lightgrey"></div>
+ </div>
+</div>
+with the
+<div class="inline-block margin">
+ <div class="grid column border" style="grid-auto-columns: 50px; grid-auto-rows: 50px; background-color: pink">
+ <div style="background-color: lightgrey"></div>
+ </div>
+</div>
+bottom of
+<div class="inline-block padding" style="padding-left: 0; padding-right: 0">
+ <div class="grid column margin border" style="grid-auto-columns: 50px; grid-auto-rows: 50px; background-color: pink">
+ <div style="background-color: lightgrey;"></div>
+ </div>
+</div>
+the grey
+<div class="inline-grid column margin border" style="grid-auto-columns: 30px; grid-auto-rows: 30px;"></div>
+box.
+</div>
+
+<div>
+Should align
+with the
+<div class="inline-block">
+ <div class="grid column" style="background-color: pink">
+ <div class="border padding margin" style="background-color: lightgrey;"></div>
+ </div>
+</div>
+middle of
+<div class="inline-grid column margin border padding"></div>
+the grey box.
+</div>
+
+<div>
+Should align with the top
+<div class="inline-block border margin padding" style="background-color: pink">
+ <div class="grid column border margin padding" style="grid-auto-columns: 50px; grid-auto-rows: 50px; background-color: pink">
+ <div style="overflow: scroll; margin-top: 4px; border-top: 9px solid pink;">
+ <div style="width: 200px; height: 200px; background-color: lightgrey;"></div>
+ </div>
+ </div>
+</div>
+of the horizontal scrollbar.
+</div>
+
+<div>
+Should align 10px above the
+<div class="inline-block" style="background-color: pink">
+ <div class="grid column" style="width: 50px; grid-auto-columns: 50px; height: 50px; grid-auto-rows: 50px; background-color: pink">
+ <div style="overflow: scroll; padding-bottom: 10px">
+ <div style="width: 200px; height: 200px; background-color: lightgrey; padding-bottom: 10px"></div>
+ </div>
+ </div>
+</div>
+horizontal scrollbar, if one is visible.
+</div>
+
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698