From 56710fab34d0bb9786d8dc2abd414d886e8f3ee6 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 21 Sep 2021 11:29:44 +0200 Subject: [PATCH] LibWeb: Include the "important" flag in CSS dumps --- Userland/Libraries/LibWeb/Dump.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Userland/Libraries/LibWeb/Dump.cpp b/Userland/Libraries/LibWeb/Dump.cpp index 45f5bc3e9b..8f65c04b81 100644 --- a/Userland/Libraries/LibWeb/Dump.cpp +++ b/Userland/Libraries/LibWeb/Dump.cpp @@ -505,7 +505,10 @@ void dump_style_rule(StringBuilder& builder, CSS::CSSStyleRule const& rule) } builder.append(" Declarations:\n"); for (auto& property : verify_cast(rule.declaration()).properties()) { - builder.appendff(" {}: '{}'\n", CSS::string_from_property_id(property.property_id), property.value->to_string()); + builder.appendff(" {}: '{}'", CSS::string_from_property_id(property.property_id), property.value->to_string()); + if (property.important) + builder.append(" \033[31;1m!important\033[0m"); + builder.append('\n'); } }