View Full Version : svg error


curiousgeorge
12-03-2012, 04:38 PM
Ive gone through and through again but for some reason validation says this is wrong:


<svg xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
version="1.1"
width="410"
height="616"
viewBox="0 0 410 616"
preserveAspectRatio="none">
<image width="410" height="616" xlink:href="cover.jpeg"/>
</svg>



it fails for invalid preserveAspectRatio="none">. Ive written several variations and still nothing. Maybe another eye can tell me! :smack:

curiousgeorge
12-03-2012, 04:40 PM
If I remove preserveAspectRatio="none" it will validate. If I add anything in regards to |xMinYMin|xMidYMin|xMaxYMin|xMinYMid|xMidYMid|xMax YMid|xMinYMax|xMidYMax|xMaxYMax it works.

curiousgeorge
12-07-2012, 01:48 PM
ideas?

theducks
12-08-2012, 07:07 PM
ideas?

"xMinYMin meet" validates and works :thumbsup:

I think all those need a argument 'meet' is mine

:o meet is the default and supposed to be optional

rtmyers
12-14-2012, 07:33 AM
Which validator is complaining?

dgatwood
12-19-2012, 06:10 PM
I've filed several bugs about the SVG support in the W3C HTML validator. It's a known weak spot, and you can probably just ignore it. That said, you can also probably do explicit namespace prefixes. Or just include the SVG from a separate file using the <object> tag. That tends to be cleaner.

curiousgeorge
12-21-2012, 02:14 PM
After much searching I found the issue was within the google's validation:

preserveAspectRatio="none"
must be replaced as
preserveAspectRatio="none "

I have verified this and the validator will validate based on that.

the ebook still works regardless of "none" or "none "