Created attachment 244765 [details] Zero-length subpath as a star in Webkit nightly A zero-length subpath should render as a square, but it renders as a star. Here's a W3C test case: http://www.w3.org/Graphics/SVG/Test/20110816/harness/htmlSVGWeb/painting-stroke-10-t.html The attached screenshot shows how Webkit nightly renders it. Here's another example: http://mcc.id.au/temp/2008/zero-path.svg This is most likely related to bug 18356
Oops, looks like I attached an old screenshot. Only the lower one renders as a star in nightly.
I created a standalone test case on OS X using core graphics for http://mcc.id.au/temp/2008/zero-path.svg with the following code: CGMutablePathRef path = CGPathCreateMutable(); CGPathMoveToPoint(path, 0, 100, 100); CGPathCloseSubpath(path); CGContextBeginPath(context); CGContextAddPath(context, path); CGContextStrokePath(context); It looks like Core Graphics is rendering the path at a 45 degree angle and a square is being created by another workaround in the WebKit code - therefore causing a star to be rendered.
Safari, Chrome, and Firefox all agree on rendering for this test case. I don't believe there is any remaining compatibility issue.