dumistoklus / svg-xsd-schema

XSD schema for svg
MIT License
14 stars 8 forks source link

Fixed font-size restrictions #1

Closed mnvx closed 6 years ago

mnvx commented 6 years ago

Let specify font-size="75%"

       <svg:tspan dy="4.5" font-size="75%">
        text
       </svg:tspan>
dumistoklus commented 6 years ago

fixed in https://github.com/dumistoklus/svg-xsd-schema/commit/6c72964aefcaf4668629d4f5a93562cda752d3f2

Thank you for finding a bug!

mnvx commented 6 years ago

And thank you for great schema. Your schema helps me very well.

But I still have same problem using font size with percentage. May be will be better to use regexp for strict validation? For example LengthType instead of decimal?

<xs:restriction base="LengthType"/>
dumistoklus commented 6 years ago

Yep! You are right!

I did change it in https://github.com/dumistoklus/svg-xsd-schema/commit/8490c82ba6863f2434fd1262f99598b5aca0a6c8

Thank you!