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

Unified Diff: LayoutTests/css3/flexbox/stretched-child-shrink-on-relayout.html

Issue 237823002: Properly shrink stretched flexbox children on relayout (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Made comments clearer Created 6 years, 8 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/stretched-child-shrink-on-relayout-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/css3/flexbox/stretched-child-shrink-on-relayout.html
diff --git a/LayoutTests/css3/flexbox/stretched-child-shrink-on-relayout.html b/LayoutTests/css3/flexbox/stretched-child-shrink-on-relayout.html
new file mode 100644
index 0000000000000000000000000000000000000000..f424022c06e653c750eeab4475246cc06baff30b
--- /dev/null
+++ b/LayoutTests/css3/flexbox/stretched-child-shrink-on-relayout.html
@@ -0,0 +1,72 @@
+<!DOCTYPE html>
+<style>
+.flexbox {
+ display: flex;
+ background: papayawhip;
+ border: 1px solid midnightblue;
+ margin: 1em;
+ width: 50px;
+}
+
+.flexbox > div {
+ margin: 5px;
+ min-width: 10px;
+ min-height: 10px;
+ background-color: lawngreen;
+}
+
+.column {
+ -webkit-flex-flow: column;
+}
+
+.horizontal-tb {
+ -webkit-writing-mode: horizontal-tb;
+}
+.vertical-lr {
+ -webkit-writing-mode: vertical-lr;
+}
+
+.largeitem {
+ height: 200px;
+ width: 200px;
+ margin: 5px;
+}
+</style>
+</head>
+<script src="../../resources/check-layout.js"></script>
+<body onload="checkLayout('.flexbox')">
+
+<div class="flexbox">
+ <div data-expected-height=10 data-expected-width=10></div>
+ <div class="largeitem"></div>
+</div>
+<div class="flexbox column">
+ <div data-expected-height=10 data-expected-width=40></div>
+ <div class="largeitem"></div>
+</div>
+
+<div class="flexbox">
+ <div class="horizontal-tb" data-expected-height=10 data-expected-width=10></div>
+ <div class="largeitem"></div>
+</div>
+<div class="flexbox column">
+ <div class="horizontal-tb" data-expected-height=10 data-expected-width=40></div>
+ <div class="largeitem"></div>
+</div>
+
+<div class="flexbox">
+ <div class="vertical-lr" data-expected-height=10 data-expected-width=10></div>
+ <div class="largeitem"></div>
+</div>
+<div class="flexbox column">
+ <div class="vertical-lr" data-expected-height=10 data-expected-width=10></div>
+ <div class="largeitem"></div>
+</div>
+
+<script>
+document.body.offsetTop;
+var targets = document.getElementsByClassName('largeitem');
+for (var i = targets.length - 1; i >= 0; i--) {
+ targets[i].remove();
+};
+</script>
« no previous file with comments | « no previous file | LayoutTests/css3/flexbox/stretched-child-shrink-on-relayout-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698