Skip to content
Snippets Groups Projects
Commit 04d5efcd authored by Iulian Moraru's avatar Iulian Moraru
Browse files

Bug 1812868 - fix mismatch in scrollbar size. r=emilio CLOSED TREE

parent f8ee3374
No related branches found
No related tags found
No related merge requests found
......@@ -28,7 +28,8 @@
let ref = document.getElementById("ref");
let scrollbarSize = scroller.getBoundingClientRect().width - scroller.clientWidth;
ok(scrollbarSize > 0, "Should have a scrollbar");
is(ref.getBoundingClientRect().width, scrollbarSize, "env() should match the scrollbar size");
// clientWidth rounds, so we might see a bit of rounding error
isfuzzy(ref.getBoundingClientRect().width, scrollbarSize, 1, "env() should match the scrollbar size");
}
runTest().then(SimpleTest.finish);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment