Fix Bug 604000: Correctly remove overflow attributes on marker, pattern, svg

This commit is contained in:
Jeff Schiller 2010-07-11 11:18:26 -07:00
parent b661e479ea
commit c17c689ae4
7 changed files with 69 additions and 4 deletions

View file

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<defs>
<marker id="m1" style="overflow:visible">
<rect width="200" height="100"/>
</marker>
<marker id="m2" style="overflow:hidden">
<rect width="200" height="100"/>
</marker>
</defs>
<line x2="100" y2="100" style="marker-start:url(#m1);marker-end:url(#m2)" stroke="#000" />
</svg>

After

Width:  |  Height:  |  Size: 438 B

View file

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="overflow:visible">
<svg style="overflow:hidden">
<line x2="100" y2="100" stroke="#000" />
</svg>
<svg style="overflow:visible">
<line x2="100" y2="100" stroke="#000" />
</svg>
</svg>

After

Width:  |  Height:  |  Size: 344 B