diff --git a/Libraries/LibWeb/HTML/HTMLObjectElement.cpp b/Libraries/LibWeb/HTML/HTMLObjectElement.cpp index 9e8c58e714..bb81c5a03b 100644 --- a/Libraries/LibWeb/HTML/HTMLObjectElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLObjectElement.cpp @@ -88,7 +88,7 @@ void HTMLObjectElement::apply_presentational_hints(CSS::StyleProperties& style) 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 79d941ad1f..b6c7096be2 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,7 @@ Rerun Found 588 tests -576 Pass -12 Fail +588 Pass Details Result Test Name MessagePass