premasagar / pablo

Pablo is a lightweight, expressive JavaScript SVG library. Pablo creates interactive drawings with SVG (Scalable Vector Graphics), giving access to all of SVG's granularity and power.
https://pablojs.com
MIT License
413 stars 16 forks source link

crop(): cropping when in the DOM gives inconsistent results in Safari 6.0.5 #89

Closed premasagar closed 10 years ago

premasagar commented 10 years ago
var body = Pablo('body').empty();
            var svg = Pablo.svg({width: 500, height:500})
                           .css({border:'1px solid green'});
            svg.circle({cx:100, cy:100, r:10});
            svg.rect({x:200, y:100, width:50, height:90});

            // swap the order of the following two lines; they
            // produce different results
            svg.crop();
            body.append(svg);

(Safari 6.0.5 on Mountain Lion)