From 536334ab63a89cdf54cb6055391dffa94d6e3cf0 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Sun, 19 Nov 2023 20:43:26 -0500 Subject: src/select/dispatch.c: fill-opacity and stroke-opacity are inherited These two SVG properties were copied from the CSS4 "opacity" property that is not inherited: https://www.w3.org/TR/css-color-4/#transparency However, both fill-opacity and stroke-opacity _are_ inherited: https://www.w3.org/TR/SVG2/painting.html#FillOpacity https://www.w3.org/TR/SVG2/painting.html#StrokeOpacity To fix the copy-paste error, this commit toggles the "inherited" bit in the dispatch table for those two properties. --- src/select/dispatch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/select/dispatch.c') diff --git a/src/select/dispatch.c b/src/select/dispatch.c index 74bc6ed..cee9335 100644 --- a/src/select/dispatch.c +++ b/src/select/dispatch.c @@ -517,10 +517,10 @@ struct prop_table prop_dispatch[CSS_N_PROPERTIES] = { }, { PROPERTY_FUNCS(fill_opacity), - 0, + 1, }, { PROPERTY_FUNCS(stroke_opacity), - 0, + 1, } }; -- cgit v1.2.3