Re: directional images

On 02/24/2011 09:20 AM, Tab Atkins Jr. wrote:
>
> [snip]
>> 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).

"only four".. so far! Note that a property has very different
cascading implications than an image() argument; be sure that's
what you want. (It also uses more memory, since it requires
extra storage per-element.)

> (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.)

Oh, but variables should solve this problem! ;)

~fantasai

Received on Thursday, 24 February 2011 17:49:23 UTC