OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../../fast/js/resources/js-test-pre.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> |
11 description('Tests the interaction between the -webkit-flex shorthand propery an
d the -webkit-flex-grow, -webkit-flex-shrink, and -webkit-flex-basis longhand pr
operties.'); | 11 description('Tests the interaction between the -webkit-flex shorthand propery an
d the -webkit-flex-grow, -webkit-flex-shrink, and -webkit-flex-basis longhand pr
operties.'); |
12 | 12 |
13 var flexitem = document.getElementById("flexitem"); | 13 var flexitem = document.getElementById("flexitem"); |
14 | 14 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 0px'); |
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', '0px'); |
63 shouldBeEqualToString('getComputedStyle(flexitem).webkitFlex', '3 1 0px'); | 63 shouldBeEqualToString('getComputedStyle(flexitem).webkitFlex', '3 1 0px'); |
64 | 64 |
65 </script> | 65 </script> |
66 </body> | 66 </body> |
67 </html> | 67 </html> |
OLD | NEW |