Skip to content

Commit

Permalink
allow percentage in font-size
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilya committed Nov 28, 2017
1 parent 6c72964 commit 8490c82
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 8 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2017 Ilia Goldfarb (dumisotklus)
Copyright (c) 2017 Ilia Goldfarb (dumistoklus)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
15 changes: 15 additions & 0 deletions examples_valid/textPercent.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 2 additions & 7 deletions svg.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -264,22 +264,17 @@
<xs:simpleType name="FontSizeValueType">
<xs:annotation>
<xs:documentation>'font-size' property/attribute value</xs:documentation>
<xs:documentation>&lt;absolute-size&gt; | &lt;relative-size&gt; | &lt;length&gt; | &lt;percentage&gt; |
inherit
<xs:documentation>&lt;absolute-size&gt; | &lt;relative-size&gt; | &lt;length&gt; | &lt;percentage&gt; | inherit
</xs:documentation>
</xs:annotation>
<xs:union>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="absolute-size"/>
<xs:enumeration value="relative-size"/>
<xs:enumeration value="length"/>
<xs:enumeration value="percentage"/>
<xs:enumeration value="inherit"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType>
<xs:restriction base="xs:decimal"/>
<xs:restriction base="LengthType"/>
</xs:simpleType>
</xs:union>
</xs:simpleType>
Expand Down

0 comments on commit 8490c82

Please sign in to comment.