Bug 118625

Summary: [CSS Shapes] zero-dimension shapes should be valid
Product: WebKit Reporter: Alan Stearns <stearns>
Component: CSSAssignee: Bear Travis <betravis>
Status: RESOLVED WORKSFORME    
Severity: Normal CC: bjonesbe, dino, webkit-bug-importer, zoltan
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 98664    

Description Alan Stearns 2013-07-12 16:32:18 PDT
Currently, it appears that zero-dimension shapes used in shape-outside and clip-path are deemed invalid and not used. Try a rectangle(0,0,0px,0px) as either a shape-outside or clip-path to see that the float area and clip area remain unchanged.

The spec says that negative lengths are invalid, which means that zero should be OK. It should be useful to be able to use a zero-extent clip area in an irising transition.
Comment 1 Radar WebKit Bug Importer 2014-01-31 11:07:09 PST
<rdar://problem/15958620>
Comment 2 Bem Jones-Bey 2014-02-24 11:11:50 PST
As far as I can tell, this has already been fixed. rectangle() is slated for removal, but your example works just fine in the latest nightly. I also tried: circle(0), ellipse(0), and polygon(0 0), all of which properly gave a zero extent shape.