cssom-getClientRects-002.html (757B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>CSSOM View - GetClientRects().length is the same regardless source new lines</title> 5 <link rel="help" href="https://drafts.csswg.org/cssom-view-1/#dom-element-getclientrects"> 6 <script src="/resources/testharness.js"></script> 7 <script src="/resources/testharnessreport.js"></script> 8 </head> 9 <body> 10 <span id="single"> 11 test test 12 </span><br/> 13 <span id="multiple"> 14 test 15 test 16 </span> 17 <script> 18 test(function () { 19 const count = document.querySelector("#single").getClientRects().length; 20 const count2 = document.querySelector("#multiple").getClientRects().length; 21 assert_equals(count, 1, "count"); 22 assert_equals(count2, 1, "count2"); 23 }); 24 </script> 25 </body> 26 </html>