Fix Bug 541889: Properly parse polygon/polyline points missing whitespace/comma for negative attributes
4
unittests/polygon-coord-neg.svg
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg">
|
||||
<polygon points="100,-100,100-100,100-100-100,-100-100,200" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 155 B |
|
|
@ -1,4 +1,4 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg">
|
||||
<polygon fill="blue" points="10000,-50" />
|
||||
<polygon fill="blue" points="10000,50" />
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 146 B After Width: | Height: | Size: 145 B |
4
unittests/polyline-coord-neg.svg
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg">
|
||||
<polyline points="100,-100,100-100,100-100-100,-100-100,200" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 156 B |
|
|
@ -1,4 +1,4 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg">
|
||||
<polyline fill="blue" points="10000,-50" />
|
||||
<polyline fill="blue" points="10000,50" />
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 147 B After Width: | Height: | Size: 146 B |
8
unittests/refs-in-defs.svg
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<defs>
|
||||
<path id="L" stroke="#000000" d="M0,0 100,100"/>
|
||||
<g id="G"><use xlink:href="#L"/> <path stroke="#000000" d="M0,100 100,0"/></g>
|
||||
</defs>
|
||||
<use xlink:href="#G"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 345 B |