]> granicus.if.org Git - graphviz/commit
Use "none" instead of "transparent" when painting in SVG
authorRoger Nesbitt <roger@seriousorange.com>
Wed, 23 Feb 2022 16:42:25 +0000 (05:42 +1300)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 13 Aug 2022 15:22:50 +0000 (08:22 -0700)
commitdcb9d4e6128831f8c9c88e79e5631430482f86bd
tree41b48db1c3f3f14193b77a8c9e02e922b0531b3a
parent41c827ce75d1ba396cf05f7599bf371c79e1c0f3
Use "none" instead of "transparent" when painting in SVG

The SVG 1.1 spec, which SVGs generated by gvrender_core_svg.c are
labeled as, does not have the color "transparent" available which is
causing issues with SVG 1.1 parsers.

When specifying paint in the fill or stroke attributes, use "none"
instead of "transparent".  When specifying a gradient color that has
zero opacity, use that color at zero opacity instead of "transparent".
When specifying a gradient with the graphviz transparent color, use
a zero-opacity black as this is how SVG interprets "transparent" in
gradients in SVG 2.0.
77 files changed:
CHANGELOG.md
plugin/core/gvrender_core_svg.c
tests/linux.x86/grdangles_dot.svg
tests/linux.x86/grdcluster_dot.svg
tests/linux.x86/grdcolors_dot.svg
tests/linux.x86/grdfillcolor_dot.svg
tests/linux.x86/grdlinear_angle_dot.svg
tests/linux.x86/grdlinear_dot.svg
tests/linux.x86/grdlinear_node_dot.svg
tests/linux.x86/grdradial_angle_dot.svg
tests/linux.x86/grdradial_dot.svg
tests/linux.x86/grdradial_node_dot.svg
tests/linux.x86/grdshapes_dot.svg
tests/linux.x86/html2_dot.svg
tests/linux.x86/url_dot.svg
tests/nshare/html2_dot.svg
tests/nshare/url_dot.svg
tests/regression_tests/shapes/reference/Mcircle.svg
tests/regression_tests/shapes/reference/Mdiamond.svg
tests/regression_tests/shapes/reference/Msquare.svg
tests/regression_tests/shapes/reference/assembly.svg
tests/regression_tests/shapes/reference/box.svg
tests/regression_tests/shapes/reference/box3d.svg
tests/regression_tests/shapes/reference/cds.svg
tests/regression_tests/shapes/reference/circle.svg
tests/regression_tests/shapes/reference/component.svg
tests/regression_tests/shapes/reference/cylinder.svg
tests/regression_tests/shapes/reference/diamond.svg
tests/regression_tests/shapes/reference/doublecircle.svg
tests/regression_tests/shapes/reference/doubleoctagon.svg
tests/regression_tests/shapes/reference/egg.svg
tests/regression_tests/shapes/reference/ellipse.svg
tests/regression_tests/shapes/reference/fivepoverhang.svg
tests/regression_tests/shapes/reference/folder.svg
tests/regression_tests/shapes/reference/hexagon.svg
tests/regression_tests/shapes/reference/house.svg
tests/regression_tests/shapes/reference/insulator.svg
tests/regression_tests/shapes/reference/invhouse.svg
tests/regression_tests/shapes/reference/invtrapezium.svg
tests/regression_tests/shapes/reference/invtriangle.svg
tests/regression_tests/shapes/reference/larrow.svg
tests/regression_tests/shapes/reference/lpromoter.svg
tests/regression_tests/shapes/reference/none.svg
tests/regression_tests/shapes/reference/note.svg
tests/regression_tests/shapes/reference/noverhang.svg
tests/regression_tests/shapes/reference/octagon.svg
tests/regression_tests/shapes/reference/oval.svg
tests/regression_tests/shapes/reference/parallelogram.svg
tests/regression_tests/shapes/reference/pentagon.svg
tests/regression_tests/shapes/reference/plain.svg
tests/regression_tests/shapes/reference/plaintext.svg
tests/regression_tests/shapes/reference/point.svg
tests/regression_tests/shapes/reference/polygon.svg
tests/regression_tests/shapes/reference/primersite.svg
tests/regression_tests/shapes/reference/promoter.svg
tests/regression_tests/shapes/reference/proteasesite.svg
tests/regression_tests/shapes/reference/proteinstab.svg
tests/regression_tests/shapes/reference/rarrow.svg
tests/regression_tests/shapes/reference/rect.svg
tests/regression_tests/shapes/reference/rectangle.svg
tests/regression_tests/shapes/reference/restrictionsite.svg
tests/regression_tests/shapes/reference/ribosite.svg
tests/regression_tests/shapes/reference/rnastab.svg
tests/regression_tests/shapes/reference/rpromoter.svg
tests/regression_tests/shapes/reference/septagon.svg
tests/regression_tests/shapes/reference/signature.svg
tests/regression_tests/shapes/reference/square.svg
tests/regression_tests/shapes/reference/star.svg
tests/regression_tests/shapes/reference/tab.svg
tests/regression_tests/shapes/reference/terminator.svg
tests/regression_tests/shapes/reference/threepoverhang.svg
tests/regression_tests/shapes/reference/trapezium.svg
tests/regression_tests/shapes/reference/triangle.svg
tests/regression_tests/shapes/reference/tripleoctagon.svg
tests/regression_tests/shapes/reference/underline.svg
tests/regression_tests/shapes/reference/utr.svg
tests/usershape.svg