diff options
author | Tobias Christiansen <tobyase@serenityos.org> | 2021-09-13 21:08:37 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-09-13 21:26:31 +0200 |
commit | 4c1da4d43a9b350355985653d5a0350013fb479c (patch) | |
tree | 426a6ea9c2cef3fe4395217368f69a0af8b777e1 /Userland/Libraries/LibWeb | |
parent | 102d345a8fde33be1e814f0a5e848bd40015bf84 (diff) | |
download | serenity-4c1da4d43a9b350355985653d5a0350013fb479c.zip |
LibWeb: Fix opacity ComputedCSSStyleDeclaration
There was a classic copy&paste error, opacity wasn't getting the right
computed value to convert.
Diffstat (limited to 'Userland/Libraries/LibWeb')
-rw-r--r-- | Userland/Libraries/LibWeb/CSS/ComputedCSSStyleDeclaration.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/ComputedCSSStyleDeclaration.cpp b/Userland/Libraries/LibWeb/CSS/ComputedCSSStyleDeclaration.cpp index 840efe6a01..a48964062c 100644 --- a/Userland/Libraries/LibWeb/CSS/ComputedCSSStyleDeclaration.cpp +++ b/Userland/Libraries/LibWeb/CSS/ComputedCSSStyleDeclaration.cpp @@ -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 {}; |