More issues with Export to svg
Found another issue with Export to svg in recent updates which means my svg's don't work down stream. Previuosly the first few lines of the svg read as
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="11030.35" height="1557.3" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 11030.35 1557.3">
<defs>
<style>
.cls-1 {
fill: #009540;
}
but now the svg output has changed and the svg xmlns entry has changed format and some stroke-dasharray stuff has replaced the fill line, as below
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 11030.35 1557.3">
<defs>
<style>
.cls-1 {
stroke-dasharray: 0 0 1.86 1.86;
}
This means that the svg as exported doesn't work in my down-stream app when until last week it was fine. I now have to edit the svg in Notepad so that the first few lines read as they did before to get it to work down-stream.
What is going-on here and how do I get it to export in the original correct format again please? Thanks.
-
Dirk Schulze commented
Hi Richard,
Dirk from Illustrator here. I can't comment on the changes to the CSS output. We did have a small change where we accidentally wrote fill values that were set to the default (#000). It could have affected the way we format the CSS output to make the size of the SVG file smaller. I'd need the .ai file to compare the outputs.
However, the issue you report about the attribute order on the SVG tag is due to your SVG Options settings. It seems like you changed the settings for "Responsive". Change it back and height and width will disappear again.