| 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 shouldBeEqualToString('getComputedStyle(flexitem).webkitFlex', '1 2 auto'); | 134 shouldBeEqualToString('getComputedStyle(flexitem).webkitFlex', '1 2 auto'); |
| 135 | 135 |
| 136 flexitem.style.webkitFlex = '1.75 2 3px'; | 136 flexitem.style.webkitFlex = '1.75 2 3px'; |
| 137 shouldBeEqualToString('flexitem.style.webkitFlex', '1.75 2 3px'); | 137 shouldBeEqualToString('flexitem.style.webkitFlex', '1.75 2 3px'); |
| 138 shouldBeEqualToString('getComputedStyle(flexitem).webkitFlex', '1.75 2 3px'); | 138 shouldBeEqualToString('getComputedStyle(flexitem).webkitFlex', '1.75 2 3px'); |
| 139 | 139 |
| 140 flexitem.style.webkitFlex = '1 3px 2'; // Invalid, return previous value. | 140 flexitem.style.webkitFlex = '1 3px 2'; // Invalid, return previous value. |
| 141 shouldBeEqualToString('flexitem.style.webkitFlex', '1.75 2 3px'); | 141 shouldBeEqualToString('flexitem.style.webkitFlex', '1.75 2 3px'); |
| 142 shouldBeEqualToString('getComputedStyle(flexitem).webkitFlex', '1.75 2 3px'); | 142 shouldBeEqualToString('getComputedStyle(flexitem).webkitFlex', '1.75 2 3px'); |
| 143 | 143 |
| 144 flexitem.style.webkitFlex = '1 auto 1'; // Invalid, return previous value. |
| 145 shouldBeEqualToString('flexitem.style.webkitFlex', '1.75 2 3px'); |
| 146 shouldBeEqualToString('getComputedStyle(flexitem).webkitFlex', '1.75 2 3px'); |
| 147 |
| 144 flexitem.style.webkitFlex = '3px 1 2'; | 148 flexitem.style.webkitFlex = '3px 1 2'; |
| 145 shouldBeEqualToString('flexitem.style.webkitFlex', '1 2 3px'); | 149 shouldBeEqualToString('flexitem.style.webkitFlex', '1 2 3px'); |
| 146 shouldBeEqualToString('getComputedStyle(flexitem).webkitFlex', '1 2 3px'); | 150 shouldBeEqualToString('getComputedStyle(flexitem).webkitFlex', '1 2 3px'); |
| 147 | 151 |
| 148 flexitem.style.webkitFlex = 'auto 0 0'; | 152 flexitem.style.webkitFlex = 'auto 0 0'; |
| 149 shouldBeEqualToString('flexitem.style.webkitFlex', '0 0 auto'); | 153 shouldBeEqualToString('flexitem.style.webkitFlex', '0 0 auto'); |
| 150 shouldBeEqualToString('getComputedStyle(flexitem).webkitFlex', '0 0 auto'); | 154 shouldBeEqualToString('getComputedStyle(flexitem).webkitFlex', '0 0 auto'); |
| 151 | 155 |
| 152 flexitem.style.webkitFlex = 'auto 0'; | 156 flexitem.style.webkitFlex = 'auto 0'; |
| 153 shouldBeEqualToString('flexitem.style.webkitFlex', '0 1 auto'); | 157 shouldBeEqualToString('flexitem.style.webkitFlex', '0 1 auto'); |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 shouldBeEqualToString('flexitem.style.webkitFlex', 'initial'); | 230 shouldBeEqualToString('flexitem.style.webkitFlex', 'initial'); |
| 227 shouldBeEqualToString('getComputedStyle(flexitem).webkitFlex', '0 1 auto'); | 231 shouldBeEqualToString('getComputedStyle(flexitem).webkitFlex', '0 1 auto'); |
| 228 | 232 |
| 229 flexitem.style.webkitFlex = 'none'; | 233 flexitem.style.webkitFlex = 'none'; |
| 230 // FIXME: This test case is failing. https://bugs.webkit.org/show_bug.cgi?id=900
20 | 234 // FIXME: This test case is failing. https://bugs.webkit.org/show_bug.cgi?id=900
20 |
| 231 shouldBeEqualToString('flexitem.style.webkitFlex', '0 0 auto'); | 235 shouldBeEqualToString('flexitem.style.webkitFlex', '0 0 auto'); |
| 232 shouldBeEqualToString('getComputedStyle(flexitem).webkitFlex', '0 0 auto'); | 236 shouldBeEqualToString('getComputedStyle(flexitem).webkitFlex', '0 0 auto'); |
| 233 </script> | 237 </script> |
| 234 </body> | 238 </body> |
| 235 </html> | 239 </html> |
| OLD | NEW |