Re: [csswg-drafts] [css-images] [css-gcpm] Overloaded definitions of element() (#1981)

Another solution would be to merge `element()` with `url()`, rather than with `image()`.

* SVG already uses `fill: url(#patternid)` to reference a `<pattern>` element.
* css-masking-1 uses `mask: url(#maskid)` to reference a `<mask>` element.
* [css-fill-stroke]( proposes a `fill-image` property which is to be the same as `background-image` - i.e. it takes a URL. For consistency with SVG this really has to allow a `url()` to a `<pattern>` element.

In all these cases the functionality is exactly the same as what's proposed with `element()`.

It seems weird that while I can `fill: url(#patternid)` in SVG, in CSS I would have to do `background-image: element(#patternid)` to achieve the same thing (as suggested by an example in css-images-4).

And what about `mask: element(#maskid)`? It's a synonym for `url(#maskid)`.

GitHub Notification of comment by faceless2
Please view or discuss this issue at using your GitHub account

Sent via github-notify-ml as configured in

Received on Friday, 2 October 2020 14:07:34 UTC