Bug 118485 - [CSS Shapes] Content isn't wrapping tightly to zero-width shape segment
Summary: [CSS Shapes] Content isn't wrapping tightly to zero-width shape segment
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Hans Muller
URL:
Keywords: InRadar
Depends on:
Blocks: 98664
  Show dependency treegraph
 
Reported: 2013-07-08 14:47 PDT by Alan Stearns
Modified: 2014-04-04 14:39 PDT (History)
4 users (show)

See Also:


Attachments
reftest for Roman writing mode (978 bytes, application/zip)
2013-07-08 14:47 PDT, Alan Stearns
no flags Details
additional reftest (1.54 KB, application/zip)
2013-07-08 17:16 PDT, Alan Stearns
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alan Stearns 2013-07-08 14:47:23 PDT
Created attachment 206272 [details]
reftest for Roman writing mode

If a polygon is defined to have a zero-width segment - such as polygon(0% 0%, 0% 51%, 100% 100%, 0 100%) - then content that intersects with that segment wraps around the bounding box of the shape instead of up against the shape segment.
Comment 1 Alan Stearns 2013-07-08 17:16:04 PDT
Created attachment 206284 [details]
additional reftest

The latest nightly appears to ignore empty shape segments, so the original reftest now passes. I've attached a new reftest that moves the empty segment to the midpoint of the float. Here I'd expect the inline content to start at that midline.
Comment 2 Radar WebKit Bug Importer 2014-01-31 11:22:20 PST
<rdar://problem/15958849>
Comment 3 Jon Lee 2014-03-04 21:56:27 PST
What's the latest on this?
Comment 4 Alan Stearns 2014-03-04 22:21:49 PST
We're discussing whether this is a bug in the implementation or a bug in the spec. In either case, I think it's very low-priority - you have to create a fairly degenerate polygon in order to reproduce the problem.
Comment 5 Hans Muller 2014-04-04 14:39:52 PDT
As of the patch for https://bugs.webkit.org/show_bug.cgi?id=130975 we've addressed this issue.  More about the zero-width segment case and the semantics of self-intersecting polygonal shapes can be found here: http://hansmuller-webkit.blogspot.com/2014/03/a-simpler-algorithm-for-css-shapes.html