From 04d5efcd8e7254d3910b5ec53ae160b00992f15a Mon Sep 17 00:00:00 2001
From: Iulian Moraru <imoraru@mozilla.com>
Date: Sat, 18 Feb 2023 00:59:09 +0200
Subject: [PATCH] Bug 1812868 - fix mismatch in scrollbar size. r=emilio CLOSED
 TREE

---
 layout/style/test/chrome/test_scrollbar_inline_size.html | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/layout/style/test/chrome/test_scrollbar_inline_size.html b/layout/style/test/chrome/test_scrollbar_inline_size.html
index 42d791a1047c4..31161a9caf633 100644
--- a/layout/style/test/chrome/test_scrollbar_inline_size.html
+++ b/layout/style/test/chrome/test_scrollbar_inline_size.html
@@ -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);
-- 
GitLab