Is there some sort of `shape-outside: self;` in CSS, to use an image as it's own shape? 🤔

I couldn't find it in any docs, but it would be really useful to not declare the same URL twice.

nho.io/n/2021/01/19/1/

Follow

I guess an idea could be to use CSS3 `attr()` with the `url` type:
drafts.csswg.org/css-values-4/

But it's not supported anywhere… 😥
caniuse.com/css3-attr

· · Web · 1 · 0 · 0

BTW, in CSS Values and Units Module Level 4:
drafts.csswg.org/css-values-4/:

> Note: If `url()` was syntactically capable of containing functions, `attr(foo url)` would be identical to `url(attr(foo string))`.

Sign in to participate in the conversation
La Quadrature du Net - Mastodon - Media Fédéré

Mamot.fr est un serveur Mastodon francophone, géré par La Quadrature du Net.