From 4c1da4d43a9b350355985653d5a0350013fb479c Mon Sep 17 00:00:00 2001 From: Tobias Christiansen Date: Mon, 13 Sep 2021 21:08:37 +0200 Subject: [PATCH] LibWeb: Fix opacity ComputedCSSStyleDeclaration There was a classic copy&paste error, opacity wasn't getting the right computed value to convert. --- Userland/Libraries/LibWeb/CSS/ComputedCSSStyleDeclaration.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 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 {};