OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <link href="resources/flexbox.css" rel="stylesheet"> | 3 <link href="resources/flexbox.css" rel="stylesheet"> |
4 <style> | 4 <style> |
5 .flexbox { | 5 .flexbox { |
6 margin: 120px; | 6 margin: 120px; |
7 width: 100px; | 7 width: 100px; |
8 height: 100px; | 8 height: 100px; |
9 background-color: #aaa; | 9 background-color: #aaa; |
10 position: relative; | 10 position: relative; |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 lastChild = flexbox.lastChild; | 89 lastChild = flexbox.lastChild; |
90 if (!flexbox.isHorizontal && flexbox.isColumn && flexbox.isLTR) { | 90 if (!flexbox.isHorizontal && flexbox.isColumn && flexbox.isLTR) { |
91 shouldBe('firstChild.offsetTop', "0"); | 91 shouldBe('firstChild.offsetTop', "0"); |
92 shouldBe('lastChild.offsetTop', "20"); | 92 shouldBe('lastChild.offsetTop', "20"); |
93 } else if (flexbox.isHorizontalFlow) | 93 } else if (flexbox.isHorizontalFlow) |
94 shouldBe('firstChild.offsetTop', 'lastChild.offsetTop'); | 94 shouldBe('firstChild.offsetTop', 'lastChild.offsetTop'); |
95 else | 95 else |
96 shouldBe('firstChild.offsetLeft', 'lastChild.offsetLeft'); | 96 shouldBe('firstChild.offsetLeft', 'lastChild.offsetLeft'); |
97 } | 97 } |
98 </script> | 98 </script> |
99 <script src="../../fast/js/resources/js-test-post.js"></script> | |
100 </body> | 99 </body> |
101 </html> | 100 </html> |
OLD | NEW |