Re: [csswg-drafts] [css-selectors] Actually change the shape of the element and not just visually. (#12379)

To an extent, this is what [`shape-inside`](https://drafts.csswg.org/css-shapes-2/#shape-inside-property) is for - reshaping the *interior* of an element to be a particular shape, so text can flow properly inside the visible shape (of a background/etc).

For the outer shape, tho we do have [`shape-outside`](https://www.w3.org/TR/css-shapes/#shape-outside-property) to allow floats and `initial-letter` boxes to change how surrounding text boxes react to them, the more general problem of doing layout with non-rectangles is hard. In fact, it's unsolvable without providing a lot more details, because there are *lots* of ways that two shapes can be fitted against each other.

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 20 June 2025 22:59:38 UTC