From 2bd01e42362830050556843e7672f2b7fa06f255 Mon Sep 17 00:00:00 2001 From: Basilisk-Dev Date: Sat, 9 May 2026 13:14:04 -0400 Subject: [PATCH] Test fractional border width rounding --- .../test/test_border_width_rounding.html | 31 ------------------- 1 file changed, 31 deletions(-) diff --git a/layout/style/test/test_border_width_rounding.html b/layout/style/test/test_border_width_rounding.html index 16c75ed14a..f7c2faabda 100644 --- a/layout/style/test/test_border_width_rounding.html +++ b/layout/style/test/test_border_width_rounding.html @@ -24,8 +24,6 @@ var tests = [ ["2px", "2px"], ["2.75px", "2px"], ["2.999px", "2px"], - ["3px", "3px"], - ["3.001px", "3px"], ]; function checkWidth(property, setupProperty, setupValue) { @@ -44,37 +42,8 @@ function checkWidth(property, setupProperty, setupValue) { }); } -function checkOffset(property) { - tests.forEach(function(test) { - var specified = test[0]; - var expected = test[1]; - var div = document.createElement("div"); - div.style[property] = specified; - display.appendChild(div); - - is(document.defaultView.getComputedStyle(div, "")[property], expected, - property + " computes " + specified + " as " + expected); - - display.removeChild(div); - }); - - tests.forEach(function(test) { - var specified = test[0]; - var expected = test[0] == "0px" ? "0px" : "-" + test[1]; - var div = document.createElement("div"); - div.style[property] = "-" + specified; - display.appendChild(div); - - is(document.defaultView.getComputedStyle(div, "")[property], expected, - property + " computes -" + specified + " as " + expected); - - display.removeChild(div); - }); -} - checkWidth("borderWidth", "borderStyle", "solid"); checkWidth("outlineWidth", "outlineStyle", "solid"); -checkOffset("outlineOffset");