Tim Gummer Posted July 14, 2016 Share Posted July 14, 2016 I hit a bug with IE9-11 browsers which need their svg backgrounds to have elements with explicit dimensions EG: <?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svgwidth="1446px" height="1397px" viewBox="0 0 2600 1397" rather than <?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svgwidth="100%" height="100%" viewBox="0 0 2600 1397" which it currently produces. Is there a way to do this currently, or could that be added in soon? IT's a real headache to have to hand code a whole bunch of (multi breakpoint) output files, after every slice output - eg on this project there's about 16 to do each time. FYI the source on the IE bug is at here on stackexchange. Thanks! Quote one planet, one chance Link to comment Share on other sites More sharing options...
Dave Harris Posted July 14, 2016 Share Posted July 14, 2016 Your two example lines look the same to me. Have you tried changing File > Export SVG > More > Set viewBox ? Quote Link to comment Share on other sites More sharing options...
Tim Gummer Posted July 14, 2016 Author Share Posted July 14, 2016 oops thanks Dave - my mistake now corrected by edit within the original post. To clarify - AD is outputting element width and height of 100% Quote one planet, one chance Link to comment Share on other sites More sharing options...
Dave Harris Posted July 14, 2016 Share Posted July 14, 2016 Unchecking the Set viewBox option should prevent that. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.