Quote:
Originally Posted by DiapDealer
EDIT:... Everything works fine if the svg attributes are cased properly to begin with, but not if they're already improperly cased in the source.
|
I don't think this is correct. If you use the
Tools - Add Cover option, the generated SVG code will have correctly-cased attributes. Running the plugin directly afterwards will mess-up the casing.
I believe the problem has something to do with the fact that the 'Add Cover' option creates
Code:
preserveAspectRatio="...">
on a new line. I tested this theory by changing the standard code so that
was also on a new line. Ater re-running the plugin both
preserveAspectRatio and
viewBox had changed to
preserveaspectratio and
viewbox.
Running Beautify before running the plugin removes the new lines.
Quote:
Originally Posted by DiapDealer
It's weird that no one noticed until now...
|
My best guess is that a defective preserveAspectRatio attribute results in a default being used and perhaps the default is to assume preserveAspectRatio="xMidYMid meet", which is what most people would have set it to anyway. I only noticed the problem because I'm one of the Philistines who prefers preserveAspectRatio="none" for my covers