OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../../resources/js-test.js"></script> | 4 <script src="../../resources/js-test.js"></script> |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 <div id="flexbox"> | 7 <div id="flexbox"> |
8 <div id="flexitem"></div> | 8 <div id="flexitem"></div> |
9 </div> | 9 </div> |
10 <script> | 10 <script> |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 shouldBeEqualToString('flexitem.style.webkitFlexGrow', '0'); | 49 shouldBeEqualToString('flexitem.style.webkitFlexGrow', '0'); |
50 shouldBeEqualToString('flexitem.style.webkitFlexShrink', '0'); | 50 shouldBeEqualToString('flexitem.style.webkitFlexShrink', '0'); |
51 shouldBeEqualToString('flexitem.style.webkitFlexBasis', 'auto'); | 51 shouldBeEqualToString('flexitem.style.webkitFlexBasis', 'auto'); |
52 shouldBeEqualToString('getComputedStyle(flexitem).webkitFlex', '0 0 auto'); | 52 shouldBeEqualToString('getComputedStyle(flexitem).webkitFlex', '0 0 auto'); |
53 | 53 |
54 flexitem.style.webkitFlexGrow = 1.5; | 54 flexitem.style.webkitFlexGrow = 1.5; |
55 shouldBeEqualToString('flexitem.style.webkitFlex', '1.5 0 auto'); | 55 shouldBeEqualToString('flexitem.style.webkitFlex', '1.5 0 auto'); |
56 shouldBeEqualToString('getComputedStyle(flexitem).webkitFlex', '1.5 0 auto'); | 56 shouldBeEqualToString('getComputedStyle(flexitem).webkitFlex', '1.5 0 auto'); |
57 | 57 |
58 flexitem.style.webkitFlex = 3; | 58 flexitem.style.webkitFlex = 3; |
59 shouldBeEqualToString('flexitem.style.webkitFlex', '3 1 0px'); | 59 shouldBeEqualToString('flexitem.style.webkitFlex', '3 1 0%'); |
60 shouldBeEqualToString('flexitem.style.webkitFlexGrow', '3'); | 60 shouldBeEqualToString('flexitem.style.webkitFlexGrow', '3'); |
61 shouldBeEqualToString('flexitem.style.webkitFlexShrink', '1'); | 61 shouldBeEqualToString('flexitem.style.webkitFlexShrink', '1'); |
62 shouldBeEqualToString('flexitem.style.webkitFlexBasis', '0px'); | 62 shouldBeEqualToString('flexitem.style.webkitFlexBasis', '0%'); |
63 shouldBeEqualToString('getComputedStyle(flexitem).webkitFlex', '3 1 0px'); | 63 shouldBeEqualToString('getComputedStyle(flexitem).webkitFlex', '3 1 0%'); |
64 | 64 |
65 </script> | 65 </script> |
66 </body> | 66 </body> |
67 </html> | 67 </html> |
OLD | NEW |