summaryrefslogtreecommitdiff
path: root/src/select
diff options
context:
space:
mode:
authorMichael Orlitzky <michael@orlitzky.com>2023-11-19 20:43:26 -0500
committerMichael Drake <tlsa@netsurf-browser.org>2023-12-16 16:54:19 +0000
commit536334ab63a89cdf54cb6055391dffa94d6e3cf0 (patch)
tree1e50a4e4584577192349d4afa9cb7a62611e7772 /src/select
parent76ccb5b60d67b5ff96d48bfe12aa04787c5b1f99 (diff)
downloadlibcss-536334ab63a89cdf54cb6055391dffa94d6e3cf0.tar.gz
libcss-536334ab63a89cdf54cb6055391dffa94d6e3cf0.tar.bz2
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.
Diffstat (limited to 'src/select')
-rw-r--r--src/select/dispatch.c4
1 files 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,
}
};