| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <link rel="help" href="http://dev.w3.org/csswg/cssom-view/#dom-clientrectlist-it
em"> | 4 <link rel="help" href="http://dev.w3.org/csswg/cssom-view/#dom-clientrectlist-it
em"> |
| 5 <script src="../../js/resources/js-test-pre.js"></script> | 5 <script src="../../../resources/js-test.js"></script> |
| 6 <style> | 6 <style> |
| 7 #testArea { | 7 #testArea { |
| 8 width: 300px; | 8 width: 300px; |
| 9 } | 9 } |
| 10 #inner { | 10 #inner { |
| 11 width: 200px; | 11 width: 200px; |
| 12 height: 200px; | 12 height: 200px; |
| 13 } | 13 } |
| 14 .testBox { | 14 .testBox { |
| 15 background-color: green; | 15 background-color: green; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 36 // According to the specification, we should throw an IndexSizeError exception w
hen index is | 36 // According to the specification, we should throw an IndexSizeError exception w
hen index is |
| 37 // greater than the number of ClientRect objects associated with the object. | 37 // greater than the number of ClientRect objects associated with the object. |
| 38 // However, we currently just return null like Firefox 22. | 38 // However, we currently just return null like Firefox 22. |
| 39 shouldBeNull("clientRects.item(3)"); | 39 shouldBeNull("clientRects.item(3)"); |
| 40 shouldBeNull("clientRects.item(999)"); | 40 shouldBeNull("clientRects.item(999)"); |
| 41 shouldBeNull("clientRects.item(-1)"); | 41 shouldBeNull("clientRects.item(-1)"); |
| 42 | 42 |
| 43 </script> | 43 </script> |
| 44 </body> | 44 </body> |
| 45 </html> | 45 </html> |
| OLD | NEW |