diff --git a/Libraries/LibWeb/CSS/CSSStyleProperties.cpp b/Libraries/LibWeb/CSS/CSSStyleProperties.cpp index 3d0a880aa1a..075f6a8dad9 100644 --- a/Libraries/LibWeb/CSS/CSSStyleProperties.cpp +++ b/Libraries/LibWeb/CSS/CSSStyleProperties.cpp @@ -813,10 +813,6 @@ RefPtr CSSStyleProperties::style_value_for_computed_property(L return get_computed_value(property_id); } - case PropertyID::StrokeOpacity: { - auto opacity = layout_node.computed_values().stroke_opacity(); - return NumberStyleValue::create(opacity); - } case PropertyID::FloodOpacity: { auto opacity = layout_node.computed_values().flood_opacity(); return NumberStyleValue::create(opacity); diff --git a/Libraries/LibWeb/CSS/ComputedProperties.cpp b/Libraries/LibWeb/CSS/ComputedProperties.cpp index c83dfe0afb1..5f8f6c4f3d2 100644 --- a/Libraries/LibWeb/CSS/ComputedProperties.cpp +++ b/Libraries/LibWeb/CSS/ComputedProperties.cpp @@ -509,8 +509,7 @@ NumberOrCalculated ComputedProperties::stroke_miterlimit() const float ComputedProperties::stroke_opacity() const { - auto const& value = property(PropertyID::StrokeOpacity); - return resolve_opacity_value(value); + return property(PropertyID::StrokeOpacity).as_number().number(); } float ComputedProperties::stop_opacity() const diff --git a/Libraries/LibWeb/CSS/StyleComputer.cpp b/Libraries/LibWeb/CSS/StyleComputer.cpp index 5aee74fcd80..9048481ccc2 100644 --- a/Libraries/LibWeb/CSS/StyleComputer.cpp +++ b/Libraries/LibWeb/CSS/StyleComputer.cpp @@ -3286,6 +3286,7 @@ NonnullRefPtr StyleComputer::compute_value_of_property(Propert case PropertyID::FillOpacity: case PropertyID::Opacity: case PropertyID::StopOpacity: + case PropertyID::StrokeOpacity: return compute_opacity(specified_value, computation_context); default: // FIXME: We should replace this with a VERIFY_NOT_REACHED() once all properties have their own handling.