W3C home > Mailing lists > Public > public-css-archive@w3.org > June 2020

Re: [csswg-drafts] Add background-rotate property that we just have to rotate the background without affecting the text and only one layer (#3183)

From: Oriol Brufau via GitHub <sysbot+gh@w3.org>
Date: Mon, 08 Jun 2020 12:40:45 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-640577957-1591620044-sysbot+gh@w3.org>
#4706 was analogous, it proposed a `background-filter` property, but it was rejected in favor of `filter()`.

For consistency, maybe CSS Transforms should define a `transform()` or `rotate()` function that can be used anywhere an `<image>` is expected, rather than adding more `background-*` properties. Like

```css
background-image: transform(url(background.jpg), rotate(180deg));
```

This would allow to transform images not just for backgrounds but also for things like border images or maybe cursors.

-- 
GitHub Notification of comment by Loirooriol
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3183#issuecomment-640577957 using your GitHub account
Received on Monday, 8 June 2020 12:40:47 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 19 October 2021 01:31:27 UTC