Re: [csswg-drafts] [css-backgrounds-4] Transformation of background images (#2364)

This use case will be covered by the image manipulation at-rule discussed in #6807.

With that rule and the related function (names still need to be discussed) the example from above would look like this:

```css
@image-manipulation --rotate-90deg { rotate: 90deg; }
@image-manipulation --rotate-180deg { rotate: 180deg; }
@image-manipulation --rotate-270deg { rotate: 270deg; }

background-image:
    url("https://my.super/fancy/corner-image.svg"),
    manipulate-image(url("https://my.super/fancy/corner-image.svg"), --rotate-90deg),
    manipulate-image(url("https://my.super/fancy/corner-image.svg"), --rotate-180deg),
    manipulate-image(url("https://my.super/fancy/corner-image.svg"), --rotate-270deg);
```

Sebastian

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


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

Received on Wednesday, 31 August 2022 11:27:19 UTC