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: Leandro RR via GitHub <sysbot+gh@w3.org>
Date: Mon, 08 Jun 2020 16:04:41 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-640722516-1591632279-sysbot+gh@w3.org>
in cases where we have backgrounds that we desire to rotate, we have to rotate the whole element through css transforms, but if we want add it to a <body> element, would be great if we could add a property: background-rotate so we can rotate the whole bg image easily like:

```html
<style>
   body {
     background-image: url(pattern.png);
     background-repeat: repeat-y;
     background-rotate: 180deg;
  }
</style>
```

this will avoid have to rotate the element and instead we only rotate the background.

also, about the comment of @Loirooriol i think a new property is still valid for specific cases, where if any developer needs add the property with javascript.

-- 
GitHub Notification of comment by leandroruel
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3183#issuecomment-640722516 using your GitHub account
Received on Monday, 8 June 2020 16:04:43 UTC

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