Gitweb links:
...log
http://git.netsurf-browser.org/libcss.git/shortlog/536334ab63a89cdf54cb6055391dffa94d6e3cf0
...commit
http://git.netsurf-browser.org/libcss.git/commit/536334ab63a89cdf54cb6055391dffa94d6e3cf0
...tree
http://git.netsurf-browser.org/libcss.git/tree/536334ab63a89cdf54cb6055391dffa94d6e3cf0
The branch, master has been updated
via 536334ab63a89cdf54cb6055391dffa94d6e3cf0 (commit)
from 76ccb5b60d67b5ff96d48bfe12aa04787c5b1f99 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commitdiff
http://git.netsurf-browser.org/libcss.git/commit/?id=536334ab63a89cdf54cb6055391dffa94d6e3cf0
commit 536334ab63a89cdf54cb6055391dffa94d6e3cf0
Author: Michael Orlitzky <[email protected]>
Commit: Michael Drake <[email protected]>
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.
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,
}
};
-----------------------------------------------------------------------
Summary of changes:
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,
}
};
--
Cascading Style Sheets library
_______________________________________________
netsurf-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]