Index: LayoutTests/css3/flexbox/flexbox-wordwrap.html |
diff --git a/LayoutTests/css3/flexbox/flexbox-wordwrap.html b/LayoutTests/css3/flexbox/flexbox-wordwrap.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..cdfc2b76cff6dd064f110dfde31d3d38387bd377 |
--- /dev/null |
+++ b/LayoutTests/css3/flexbox/flexbox-wordwrap.html |
@@ -0,0 +1,58 @@ |
+<!DOCTYPE html> |
+<html> |
+<head> |
+<script src="../../resources/check-layout.js"></script> |
+<style> |
+.flex{ |
+ width:600px; |
+ display:flex; |
+ height:100px; |
+ background:gray; |
+ margin-bottom:100px; |
+} |
+.item{ |
+ width:150px; |
+ background:yellow; |
+ margin:10px; |
+ flex:none; |
+} |
+.content1{ |
+ width:100px; |
+ height:150px; |
+ background:red; |
+} |
+.content2{ |
+ width:100px; |
+ height:100px; |
+ background:red; |
+} |
+.content3{ |
+ width:100px; |
+ height:50px; |
+ background:red; |
+} |
+</style> |
+</head> |
+<body onload="checkLayout('.flex')"> |
+<p>Test for crbug.com/362848: Flex box word-wrap is not adhering to spec</p> |
+<div class="flex"> |
+ <div class="item" id="item1" data-expected-height="80"><div class="content1"></div></div> |
+ <div class="item" id="item2" data-expected-height="80"><div class="content2"></div></div> |
+ <div class="item" id="item3" data-expected-height="80"><div class="content3"></div></div> |
+</div> |
+ |
+<div class="flex" style="flex-wrap:wrap;"> |
+ <div class="item" id="item4" data-expected-height="80"><div class="content1"></div></div> |
+ <div class="item" id="item5" data-expected-height="80"><div class="content2"></div></div> |
+ <div class="item" id="item6" data-expected-height="80"><div class="content3"></div></div> |
+</div> |
+ |
+<div class="flex" style="flex-wrap:wrap;"> |
tony
2014/06/10 16:30:21
There should be tests for column flexboxes and it
harpreet.sk
2014/06/11 08:13:16
Done.
|
+ <div class="item" id="item7" data-expected-height="150"><div class="content1"></div></div> |
+ <div class="item" id="item8" data-expected-height="150"><div class="content2"></div></div> |
+ <div class="item" id="item9" data-expected-height="150"><div class="content3"></div></div> |
+ <div class="item" id="item10" data-expected-height="150"><div class="content1"></div></div> |
+ <div class="item" id="item11" data-expected-height="150"><div class="content2"></div></div> |
+</div> |
+</body> |
+</html> |