1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-21 16:05:07 +00:00

LibWeb: Fix opacity ComputedCSSStyleDeclaration

There was a classic copy&paste error, opacity wasn't getting the right
computed value to convert.
This commit is contained in:
Tobias Christiansen 2021-09-13 21:08:37 +02:00 committed by Andreas Kling
parent 102d345a8f
commit 4c1da4d43a

View file

@ -495,7 +495,7 @@ Optional<StyleProperty> ComputedCSSStyleDeclaration::property(PropertyID propert
};
}
case CSS::PropertyID::Opacity: {
auto maybe_opacity = layout_node.computed_values().flex_grow_factor();
auto maybe_opacity = layout_node.computed_values().opacity();
if (!maybe_opacity.has_value())
return {};