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

Unified Diff: LayoutTests/fast/css-grid-layout/grid-margins-not-collapse-expected.html

Issue 273643008: New Layout Tests to verify grid container's margin don't collapse. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 7 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: LayoutTests/fast/css-grid-layout/grid-margins-not-collapse-expected.html
diff --git a/LayoutTests/fast/css-grid-layout/grid-margins-not-collapse-expected.html b/LayoutTests/fast/css-grid-layout/grid-margins-not-collapse-expected.html
new file mode 100644
index 0000000000000000000000000000000000000000..19113353b3a70b545df4a1f99f743f3053dc857f
--- /dev/null
+++ b/LayoutTests/fast/css-grid-layout/grid-margins-not-collapse-expected.html
@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+<html>
+<link href="resources/grid.css" rel="stylesheet">
+<head>
+<style>
+.basic {
+ background-color: grey;
+ height: 100px;
+ margin-top: 50px;
+}
+
+.item {
+ background-color: blue;
+ width: 50px;
+ height: 50px;
+ position: relative;
+ top: 20px;
+}
+</style>
+</head>
+<body>
+<div>This test checks that the grid's margins do not collapse with the margins of its contents.</div>
+<div class="basic">
+ <div class="item"></div>
+</div>
+</body>
+</html>
+

Powered by Google App Engine
This is Rietveld 408576698