How to make an SVG element transparent (using SVGweb)

In an SVG document, I want to make a transparent <path> element transparent. I tried <path fill="transparent />" but it gives me a black surface in ie8 (which is the default color for unknown values). I am using SVGweb to display SVG in ie8. How to make it transparent in ie8?

EDIT:

According to SVG-SPEC ( http://www.w3.org/TR/SVG/painting.html#SpecifyingPaint ), the fill attribute accepts a value of type <paint> . currentColor value works in ie8, but it is not supported by ff and chrome.

So, I would like to change my question: How to make it transparent in ff, chrome and ie8 at the same time?

+6
source share
1 answer
 fill="none" 

Or you can cheat (and hurt performance):

 fill-opacity="0" 
+9
source

Source: https://habr.com/ru/post/901052/


All Articles