summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-09-21 11:29:44 +0200
committerAndreas Kling <kling@serenityos.org>2021-09-21 12:33:15 +0200
commit56710fab34d0bb9786d8dc2abd414d886e8f3ee6 (patch)
tree22a6b46ec9abeea6ab46cf2c220eb936a2503191 /Userland
parent7ed49e954f9db90ff335978b3e265b2c078887e8 (diff)
downloadserenity-56710fab34d0bb9786d8dc2abd414d886e8f3ee6.zip
LibWeb: Include the "important" flag in CSS dumps
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Libraries/LibWeb/Dump.cpp5
1 files changed, 4 insertions, 1 deletions
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<CSS::PropertyOwningCSSStyleDeclaration>(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');
}
}