bugs with nested svg elements
Things seem to go wrong when you have nested svg elements in inkscape. The following file shows an odd bounding box bug:
<svg xmlns="http://www.w3.org/2000/svg" x="0" y="0" width="384.45239000000004" height="314.24681000000004"> <svg x="0" y="0" width="251.33313" height="119.18141"> <rect width="249.33313" height="117.18141" x="0.99999917" y="0.99999452" style="color:black;fill:#ccb10e;fill-opacity:1;stroke:black;stroke-width:2"></rect> <path d="M 125.66639,20.551222 L 103.86753,73.531393 L 147.54482,73.531393 L 125.66639,20.551222 M 116.59678,6.3613066 L 134.81557,6.3613066 L 180.08392,112.82096 L 163.37689,112.82096 L 152.55696,85.510834 L 99.014529,85.510834 L 88.194731,112.82096 L 71.248871,112.82096 L 116.59678,6.3613066"></path> </svg> <svg x="50" y="50" width="133.11926000000003" height="195.06540000000004"> <rect style="color:black;fill:#3521b0;fill-opacity:1;stroke:black;stroke-width:1.99999988" y="0.99998748" x="0.99999869" height="193.0654" width="131.11926"></rect> <path d="M 40.50448,99.92175 L 40.50448,138.92595 L 66.28125,138.92595 C 74.92641,138.92595 81.31752,137.33357 85.45456,134.14856 C 89.64455,130.91596 91.73962,125.99594 91.73975,119.38813 C 91.73962,112.73298 89.64455,107.83669 85.45456,104.69915 C 81.31752,101.51426 74.92641,99.92175 66.28125,99.92175 L 40.50448,99.92175 M 40.50448,56.13992 L 40.50448,88.22756 L 64.29223,88.22756 C 72.14186,88.22756 77.97614,86.92031 81.79492,84.30569 C 85.66665,81.64373 87.60258,77.60308 87.60271,72.18374 C 87.60258,66.81211 85.66665,62.79519 81.79492,60.13299 C 77.97614,57.47102 72.14186,56.14004 64.29223,56.13992 L 40.50448,56.13992 M 24.43371,44.30311 L 65.48559,44.30311 C 77.73744,44.30323 87.17827,46.58502 93.80821,51.14847 C 100.43787,55.71216 103.75278,62.20096 103.75291,70.61497 C 103.75278,77.12761 102.05554,82.30928 98.66121,86.15972 C 95.26661,90.01028 90.28108,92.41084 83.70437,93.36152 C 91.60696,94.88284 97.73303,98.06785 102.08215,102.91655 C 106.48437,107.7178 108.68548,113.73125 108.68548,120.95691 C 108.68548,130.46435 105.07879,137.80891 97.86568,142.99045 C 90.6523,148.17199 80.38933,150.76276 67.07678,150.76276 L 24.43371,150.76276 L 24.43371,44.30311"></path> </svg> </svg>
and the following file shows a different bug where some nested svg elements are not show and others are shown in incorrect places:
<svg width="350.0" height="16.0" x="0" y="0" xmlns="http://www.w3.org/2000/svg"> <rect width="55" height="5" x="0" y="0" style="fill:orange;stroke:black;stroke-width:2;"/> <svg width="295.0" height="16.0" x="0" y="0" style="" transform="translate(55,0)"> <rect width="30" height="13" x="0" y="0" style="fill:yellow;stroke:black;stroke-width:2;"/> <svg width="265.0" height="16.0" x="0" y="0" style="" transform="translate(30,0)"> <rect width="75" height="16" x="0" y="0" style="fill:green;stroke:black;stroke-width:2;"/> <svg width="190.0" height="10.0" x="0" y="0" style="" transform="translate(75,0)"> <rect width="90" height="8" x="0" y="0" style="fill:red;stroke:black;stroke-width:2;"/> <svg width="100" height="10.0" x="0" y="0" style="" transform="translate(90,0)"> <rect width="100" height="10" x="0" y="0" style="fill:blue;stroke:black;stroke-width:2;"/> <svg width="0.0" height="0.0" x="0.0" y="0.0" style="" transform="translate(100,0)"/> </svg> </svg> </svg> </svg> </svg>
participants (1)
-
Alex Mac