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(-) 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, } }; -- 2.41.0 _______________________________________________ netsurf-dev mailing list -- netsurf-dev@netsurf-browser.org To unsubscribe send an email to netsurf-dev-le...@netsurf-browser.org