mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:07:34 +00:00
LibWeb: Include the "important" flag in CSS dumps
This commit is contained in:
parent
7ed49e954f
commit
56710fab34
1 changed files with 4 additions and 1 deletions
|
@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue