diff --git a/Libraries/LibWeb/HTML/HTMLInputElement.cpp b/Libraries/LibWeb/HTML/HTMLInputElement.cpp
index 0b6ef85e02a..0032d636804 100644
--- a/Libraries/LibWeb/HTML/HTMLInputElement.cpp
+++ b/Libraries/LibWeb/HTML/HTMLInputElement.cpp
@@ -1610,7 +1610,7 @@ void HTMLInputElement::apply_presentational_hints(CSS::StyleProperties& style) c
else if (value.equals_ignoring_ascii_case("middle"sv))
style.set_property(CSS::PropertyID::TextAlign, CSS::CSSKeywordValue::create(CSS::Keyword::Middle));
} else if (name == HTML::AttributeNames::border) {
- if (auto parsed_value = parse_non_negative_integer(value); parsed_value.has_value() && *parsed_value > 0) {
+ if (auto parsed_value = parse_non_negative_integer(value); parsed_value.has_value()) {
auto width_style_value = CSS::LengthStyleValue::create(CSS::Length::make_px(*parsed_value));
style.set_property(CSS::PropertyID::BorderTopWidth, width_style_value);
style.set_property(CSS::PropertyID::BorderRightWidth, width_style_value);
diff --git a/Tests/LibWeb/Text/expected/wpt-import/html/rendering/pixel-length-attributes.txt b/Tests/LibWeb/Text/expected/wpt-import/html/rendering/pixel-length-attributes.txt
index 80cb3456aa4..79d941ad1fe 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/html/rendering/pixel-length-attributes.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/html/rendering/pixel-length-attributes.txt
@@ -6,8 +6,8 @@ Rerun
Found 588 tests
-564 Pass
-24 Fail
+576 Pass
+12 Fail
Details
Result Test Name MessagePass