diff --git a/src/browser/tests/element/position.html b/src/browser/tests/element/position.html index 3022384c9..2657f326b 100644 --- a/src/browser/tests/element/position.html +++ b/src/browser/tests/element/position.html @@ -53,7 +53,8 @@ box.appendChild(document.createElement('span')); testing.expectTrue(box.scrollWidth > oneChild); - testing.expectTrue(box.scrollWidth > box.clientWidth); + // An unsized box shrink-wraps: clientWidth tracks the same content sum. + testing.expectEqual(box.scrollWidth, box.clientWidth); // Text contributes nothing, however long. Estimating a run from its length // would need a per-character advance that tracks font-size, and would report @@ -133,6 +134,40 @@ } + +