mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-02 14:19:48 +00:00
LibWeb: Expand background:none into background-color:transparent
This commit is contained in:
parent
3bba163574
commit
0e65fc3a6d
Notes:
sideshowbarker
2024-07-19 05:39:49 +09:00
Author: https://github.com/awesomekling
Commit: 0e65fc3a6d
1 changed files with 4 additions and 0 deletions
|
@ -344,6 +344,10 @@ static void set_property_expanding_shorthands(StyleProperties& style, CSS::Prope
|
||||||
}
|
}
|
||||||
|
|
||||||
if (property_id == CSS::PropertyID::Background) {
|
if (property_id == CSS::PropertyID::Background) {
|
||||||
|
if (value.to_string() == "none") {
|
||||||
|
style.set_property(CSS::PropertyID::BackgroundColor, ColorStyleValue::create(Color::Transparent));
|
||||||
|
return;
|
||||||
|
}
|
||||||
auto parts = split_on_whitespace(value.to_string());
|
auto parts = split_on_whitespace(value.to_string());
|
||||||
NonnullRefPtrVector<StyleValue> values;
|
NonnullRefPtrVector<StyleValue> values;
|
||||||
for (auto& part : parts) {
|
for (auto& part : parts) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue