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

Unified Diff: LayoutTests/css3/flexbox/columns-center-with-margins.html

Issue 15946003: Don't stretch margin: auto items in a vertical flexbox (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: added assert & renamed Created 7 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
« no previous file with comments | « no previous file | LayoutTests/css3/flexbox/columns-center-with-margins-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/css3/flexbox/columns-center-with-margins.html
diff --git a/LayoutTests/css3/flexbox/columns-center-with-margins.html b/LayoutTests/css3/flexbox/columns-center-with-margins.html
new file mode 100644
index 0000000000000000000000000000000000000000..bb6148b8dbd5f4f8fcea67539b3afb58afe60bee
--- /dev/null
+++ b/LayoutTests/css3/flexbox/columns-center-with-margins.html
@@ -0,0 +1,36 @@
+<!DOCTYPE html>
+<html>
+<head>
+<link href="resources/flexbox.css" rel="stylesheet">
+ <style>
+ .flexbox {
+ border: 1px solid black;
+ width: 400px;
+ height: 200px;
+ }
+ .item1 {
+ margin: 0 auto;
+ background: lightblue;
+ }
+ .item1v {
+ margin: auto 0;
+ background: lightblue;
+ }
+ .item2 {
+ background: lime;
+ }
+ </style>
+</head>
+<body>
+ <div class="flexbox column">
+ <div class="item1">centeredWithMargins</div>
+ <div class="item2 align-self-center">centeredWithAlignSelf</div>
+ </div>
+ <div style="-webkit-writing-mode: vertical-lr;">
+ <div class="flexbox column">
+ <div class="item1v">centeredWithMargins</div>
+ <div class="item2 align-self-center">centeredWithAlignSelf</div>
+ </div>
+ </div>
+</body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/css3/flexbox/columns-center-with-margins-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698