Post

This honestly feels like the biggest revolution in web browsers since mosaic to me... true non-rectangular elements? Sure we had ways to do clipping and rounded corners and such, but in the end they were always just rectangles

There are still rectangles considering the flow and their content but at least the decoration is now following the non-rectangular shape.

0 reposts2 likes

There is a half-spec for it but it's really problematic in terms of overflow (what's the right way to overflow from a heart shaped text?), and in general for readability you mostly want to pad your text rather than shape it like the decoration around it.

Interesting. I figured that the behavior would be similar to an element with two `shape-outside` floats on the left and right mirroring the outer shape. In fact I was just thinking earlier to prototype that using a `::before` and `::after`. But that's probably too naive (e.g. overflow/scroll).

yea you can achieve some shape-inside-ish things using inverse shape-outside. I think it gives a more honest result because it's clear where the overflow ends up.