mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 20:15:17 +00:00
LibWeb: Make CSS "background: none" work again
This broke since "none" is now always going to be an identifier value.
This commit is contained in:
parent
d8c533f588
commit
7e78e4b232
Notes:
sideshowbarker
2024-07-19 00:49:04 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/7e78e4b2323
1 changed files with 1 additions and 1 deletions
|
@ -382,7 +382,7 @@ static void set_property_expanding_shorthands(StyleProperties& style, CSS::Prope
|
|||
}
|
||||
|
||||
if (property_id == CSS::PropertyID::Background) {
|
||||
if (value.to_string() == "none") {
|
||||
if (value.is_identifier() && static_cast<const IdentifierStyleValue&>(value).id() == CSS::ValueID::None) {
|
||||
style.set_property(CSS::PropertyID::BackgroundColor, ColorStyleValue::create(Color::Transparent));
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue