diff --git a/Services/WebContent/ConnectionFromClient.cpp b/Services/WebContent/ConnectionFromClient.cpp index ed1a5cf6e0e..fb2ddf637d7 100644 --- a/Services/WebContent/ConnectionFromClient.cpp +++ b/Services/WebContent/ConnectionFromClient.cpp @@ -327,7 +327,7 @@ void ConnectionFromClient::debug_request(u64 page_id, ByteString request, ByteSt if (request == "dump-all-resolved-styles") { auto dump_style = [](String const& title, Web::CSS::ComputedProperties const& style, HashMap const& custom_properties) { dbgln("+ {}", title); - for (size_t i = 0; i < Web::CSS::ComputedProperties::number_of_properties; ++i) { + for (size_t i = to_underlying(Web::CSS::first_longhand_property_id); i < to_underlying(Web::CSS::last_longhand_property_id); ++i) { auto property = style.maybe_null_property(static_cast(i)); dbgln("| {} = {}", Web::CSS::string_from_property_id(static_cast(i)), property ? property->to_string(Web::CSS::SerializationMode::Normal) : ""_string); }