Skip to content

Commit

Permalink
allow decimal in font-size
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilya committed Nov 20, 2017
1 parent 678e2d5 commit 6c72964
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
19 changes: 19 additions & 0 deletions examples_valid/text.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions svg.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,9 @@
<xs:enumeration value="inherit"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType>
<xs:restriction base="xs:decimal"/>
</xs:simpleType>
</xs:union>
</xs:simpleType>
<xs:simpleType name="FontSizeAdjustValueType">
Expand Down
4 changes: 4 additions & 0 deletions test.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ function init($directoryValid, $directoryInvalid, $xsdPath)
$result = testFile($file, $xsdPath);
if ($result !== true) {
$errors[] = $file . ' is invalid';

foreach ($result as $error) {
echo $error->message;
}
}
}

Expand Down

0 comments on commit 6c72964

Please sign in to comment.