client-props-inline-list-item.html (1253B)
1 <!doctype html> 2 <title>client* returns the same for non-replaced inlines regardless of list-item-ness</title> 3 <link rel="help" href="https://drafts.csswg.org/cssom-view/#extension-to-the-element-interface"> 4 <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1581467"> 5 <link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io"> 6 <link rel="author" title="Mozilla" href="https://mozilla.org"> 7 <script src=/resources/testharness.js></script> 8 <script src=/resources/testharnessreport.js></script> 9 <style> 10 .li { 11 display: inline list-item; 12 } 13 </style> 14 <div style="position: absolute"><span>Foo</span></div> 15 <div style="position: absolute"><span class="li">Foo</span></div> 16 <script> 17 test(() => { 18 let first = document.querySelector("span"); 19 let second = document.querySelector(".li"); 20 21 assert_equals(first.clientWidth, second.clientWidth, "clientWidth should match"); 22 assert_equals(first.clientHeight, second.clientHeight, "clientHeight should match"); 23 assert_equals(first.clientTop, second.clientTop, "clientTop should match"); 24 assert_equals(first.clientLeft, second.clientLeft, "clientLeft should match"); 25 }, "client* returns the same for non-replaced inlines regardless of list-item-ness"); 26 </script>