W3C home > Mailing lists > Public > public-css-archive@w3.org > February 2018

[csswg-drafts] [css-backgrounds-4] Transformation of background images

From: Fuqiao Xue via GitHub <sysbot+gh@w3.org>
Date: Tue, 27 Feb 2018 07:43:34 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-300523508-1519717413-sysbot+gh@w3.org>
xfq has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-backgrounds-4] Transformation of background images ==
Spec: https://drafts.csswg.org/css-backgrounds-4/

Currently, there is no way to rotate or skew the background image(s) of an element with CSS, so web developers can only transform the whole element. With this feature added to CSS (by adding a `background-transform` property, for example), backgrounds like [1] might only need one small image (instead of four different ones, or a large one) and thus save some bytes.

Tagging css-backgrounds-4 for now. Feel free to change it to css-transforms if it's more appropriate.

[1] https://codepen.io/chriscoyier/pen/jZBLrN

* * *

See also:

* https://stackoverflow.com/questions/5768998/how-to-flip-background-image-using-css (related question on Stack Overflow)
* https://stackoverflow.com/questions/5768998/how-to-flip-background-image-using-css (a workaround to the lack of this feature)

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2364 using your GitHub account
Received on Tuesday, 27 February 2018 07:46:14 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:24 UTC