| Summary: | SVG zero-length subpath does not render as a square | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | kari.pihkala | ||||
| Component: | SVG | Assignee: | Nobody <webkit-unassigned> | ||||
| Status: | RESOLVED CONFIGURATION CHANGED | ||||||
| Severity: | Normal | CC: | bfulgham, nikos.andronikos, zimmermann | ||||
| Priority: | P2 | ||||||
| Version: | 528+ (Nightly build) | ||||||
| Hardware: | Unspecified | ||||||
| OS: | OS X 10.10 | ||||||
| Attachments: |
|
||||||
|
Description
kari.pihkala
2015-01-16 06:59:42 PST
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. |