-
Notifications
You must be signed in to change notification settings - Fork 93
Creates W3C errors #236
Comments
@Jonteemil Can you provide the image before optimization? I might have been invalid before, but not recognized by the validator. Generally you should not care about Validation that much, see https://commons.wikimedia.org/wiki/User:JoKalliauer/Optimization#why_validation_is_generally_not_desired . |
@Jonteemil : You could e.g. use Minimal working example:Input:<?xml version="1.0" encoding="UTF-8"?>
<svg height="114.51" viewBox="0 0 31.512 30.297" width="119.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<defs>
<clipPath id="a">
<use height="100%" width="100%" xlink:href="#b"/>
</clipPath>
<path id="b" d="m0 0h118.2v113.6h-118.2z"/>
</defs>
<path clip-path="url(#a)" d="m1 1 1 1" fill="#0e2050"/>
</svg> Output with --resolve-use yes<?xml version="1.0" encoding="UTF-8"?>
<svg height="114.51" viewBox="0 0 31.512 30.297" width="119.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<clipPath id="a">
<path d="m0 0h118.2v113.6h-118.2z" height="100%" width="100%"/>
</clipPath>
<path clip-path="url(#a)" d="m1 1 1 1" fill="#0e2050"/>
</svg> PS: I'm not a contributor (just did once a linkfix), I'm just an ordinary user. |
@JoKalliauer Hello! The bot is not mine, I just reported the error. Thanks anyway for the info regarding validation and such! |
Hello!
On https://en.wikipedia.org/wiki/File:UEFA_Champions_League_logo_2.svg svgcleaner, which is incorporated in the bot that uploaded the newest version, created two W3C errors. I thought I should report it so here I am.
The text was updated successfully, but these errors were encountered: