Re: [csswg-drafts] [css-shapes] Consider adding shape-outside: line-box (#4003)

I agree there's a definite requirement here - `initial-letter-wrap: all` isn't going to help if you've got more than one line.

To me it this looks like yet another place where the requirement is "take a rendered DOM fragment and use the rendering as input to the layout or rendering of another DOM element". I listed a few of these in https://github.com/w3c/csswg-drafts/issues/1981, and as I suggested there, I'd personally like to see all these consolidated under the `url()` function.

This would mean `url(#foo)` means "the bitmap image of the stacking context #foo", when we want to treat it as an image (i.e. if referenced as a background-image or mask-image), or "the outline of the stacking context #foo" (if referenced as a clip-path or shape-outside)

In other words, I don't see any reason why you couldn't do this:

```html
<style>
#floated {
    shape-outside: url(#floated);
    float: left;
    width: 10em;
}
</style>
<div id="floated">Such a very strange odyssey indeed</div>
```

shape-outside doesn't affect the layout of the element it's set on, so there's no dependency loop here.

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


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

Received on Monday, 26 October 2020 17:04:45 UTC