Re: directional images

On Feb 24, 2011, at 9:20 AM, Tab Atkins Jr. wrote:

>> ul:rtl {
>>  list-style-image-transform: reflect(0deg);
>> }  /* or, transformation is automatic for directions not specified by author */
> 
> This last one works for me too.  There are only four image properties
> in CSS, so having a separate transform property for them wouldn't be
> onerous, I would think.  We've talked about the usefulness of
> transforming images before, too (rotation/scaling/skewing of
> background images, particularly tiled ones, for example).
> 
> (While I'm usually in favor of image manipulation happening at the
> <image> level rather than the property level, in this case it would
> require repeating an image, which is fragile.  Better for the author
> to have transforms directly.)

This one also has the advantage of being more backwards-compatible, if you author a rule like this for :rtl and don't use a :rtl on the default version.

Received on Thursday, 24 February 2011 17:40:29 UTC