Bug 118625 - [CSS Shapes] zero-dimension shapes should be valid
Summary: [CSS Shapes] zero-dimension shapes should be valid
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Bear Travis
Keywords: InRadar
Depends on:
Blocks: 98664
  Show dependency treegraph
Reported: 2013-07-12 16:32 PDT by Alan Stearns
Modified: 2014-02-24 11:11 PST (History)
4 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
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
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.