diff --git a/src/browser/tests/element/position.html b/src/browser/tests/element/position.html index e8137bbad..3022384c9 100644 --- a/src/browser/tests/element/position.html +++ b/src/browser/tests/element/position.html @@ -24,12 +24,206 @@ { const test1 = $('#test1'); - // In dummy layout, scroll dimensions equal client dimensions (no overflow) + // Both scroll dimensions are approximated from the content, so neither falls + // below the element's own box but either may exceed it. + testing.expectTrue(test1.scrollWidth >= test1.clientWidth); + testing.expectTrue(test1.scrollHeight >= test1.clientHeight); + + // test1 holds only a text node, and text is not measured on either axis, so + // both still match the element's own box. testing.expectEqual(test1.clientWidth, test1.scrollWidth); testing.expectEqual(test1.clientHeight, test1.scrollHeight); } + + + + + + +