Closed
Description
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 (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://www.sitepoint.com/css3-transform-background-image/ (a workaround to the lack of this feature)