-
Notifications
You must be signed in to change notification settings - Fork 757
Closed
Labels
Closed Accepted by CSSWG ResolutionCommenter SatisfiedCommenter has indicated satisfaction with the resolution / edits.Commenter has indicated satisfaction with the resolution / edits.css-backgrounds-4
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)
Metadata
Metadata
Assignees
Labels
Closed Accepted by CSSWG ResolutionCommenter SatisfiedCommenter has indicated satisfaction with the resolution / edits.Commenter has indicated satisfaction with the resolution / edits.css-backgrounds-4