Skip to content

Commit

Permalink
Fix input-text-size.html rounding error (#46403)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukewarlow committed May 21, 2024
1 parent d437c3d commit a367d81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion html/rendering/widgets/input-text-size.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
test(() => {
const computedString = getComputedStyle(computed).width;
assert_equals(computed.offsetWidth,
parseInt(computedString.substring(0, computedString.length - 2)));
Math.round(computedString.substring(0, computedString.length - 2)));
}, 'Size attribute value affects layout-dependent computed style');

test(() => {
Expand Down

0 comments on commit a367d81

Please sign in to comment.