Re: [csswg-drafts] [css-shapes-1] Degenerate polygons with positive shape-margin

@astearns  As far as identifying empty floats goes, it makes it easier, since you'd only need to check the shape's geometry if the `shape-margin` is 0.

I created a test case: https://codepen.io/AmeliaBR/pen/rJRyyw?editors=1100
Chrome and Safari both follow the current spec wording, and treat the straight-line polygon as an empty shape, so that the text runs completely over the first SVG. (Firefox and Edge do not support `shape-outside` at all; the second SVG is there to test basic support.)

I agree with @bradwerth that it would be preferable to apply the margin to a zero-area shape, in the same manner as stroking that shape with a stroke twice the margin's width.

In fact, for `shape-outside`, it would even make sense to still use a straight-line shape without the margin, because you're only filling in floated text on one side of the shape, anyway.  (In my demo, that would mean text starting from the middle of the diagonal line.)

-- 
GitHub Notification of comment by AmeliaBR
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2375#issuecomment-369777425 using your GitHub account

Received on Friday, 2 March 2018 00:19:54 UTC