When a svg <use> is in <symbol> webkit won't take offset into account. The following code should be rendered as a 100*100 green rectangle visually. Patch is coming soon... <?xml version="1.0" standalone="no"?> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.0" width="100" height="100"> <defs> <symbol id="s" viewBox="0 0 1 2"> <rect fill="green" width="1" height="2" /> </symbol> <symbol id="s1" viewBox="0 0 2 2"> <use xlink:href="#s" x="0" y="0" width="1" height="2" /> <use xlink:href="#s" x="1" y="0" width="1" height="2" /> </symbol> </defs> <use xlink:href="#s1" x="0" y="0" width="100" height="100" /> </svg>
Created attachment 87291 [details] Patch
Comment on attachment 87291 [details] Patch Why does it just affect symbol? what about svg or other elements?
Comment on attachment 87291 [details] Patch Great catch again! Dirk: SVGShadowTreeContainerElement is only used for symbols, thus that's the only way the bug can be triggered. Leo, does this affect Sierpinski carpet?
Comment on attachment 87291 [details] Patch Clearing flags on attachment: 87291 Committed r82242: <http://trac.webkit.org/changeset/82242>
All reviewed patches have been landed. Closing bug.
(In reply to comment #3) > (From update of attachment 87291 [details]) > Great catch again! Dirk: SVGShadowTreeContainerElement is only used for symbols, thus that's the only way the bug can be triggered. > Leo, does this affect Sierpinski carpet? Yes, webkit renders Sierpinski_carpet_6.svg fine with this patch.