summaryrefslogtreecommitdiff
path: root/src/select/computed.c
diff options
context:
space:
mode:
authorMichael Orlitzky <michael@orlitzky.com>2023-09-18 15:04:24 -0400
committerJohn-Mark Bell <jmb@netsurf-browser.org>2023-10-01 10:47:44 +0100
commit76ccb5b60d67b5ff96d48bfe12aa04787c5b1f99 (patch)
treeae7fad2975d23e4c0c307117bd2fb0617e244802 /src/select/computed.c
parentd6e9f636d693fb129b373862d69ae85c861049f0 (diff)
downloadlibcss-76ccb5b60d67b5ff96d48bfe12aa04787c5b1f99.tar.gz
libcss-76ccb5b60d67b5ff96d48bfe12aa04787c5b1f99.tar.bz2
Add support for SVG stroke-opacity property
https://www.w3.org/TR/SVGTiny12/painting.html#StrokeOpacityProperty This property is unique to SVG documents, but is otherwise analogous to the usual CSS "opacity" property (and the recently-added SVG fill-opacity property).
Diffstat (limited to 'src/select/computed.c')
-rw-r--r--src/select/computed.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/select/computed.c b/src/select/computed.c
index a0c92bb..78f3b80 100644
--- a/src/select/computed.c
+++ b/src/select/computed.c
@@ -816,6 +816,12 @@ uint8_t css_computed_fill_opacity(const css_computed_style *style,
return get_fill_opacity(style, fill_opacity);
}
+uint8_t css_computed_stroke_opacity(const css_computed_style *style,
+ css_fixed *stroke_opacity)
+{
+ return get_stroke_opacity(style, stroke_opacity);
+}
+
uint8_t css_computed_text_transform(const css_computed_style *style)
{
return get_text_transform(style);