W3C home > Mailing lists > Public > www-style@w3.org > August 2009

RE: Mirror as background property

From: David Perrell <davidp@hpaa.com>
Date: Sat, 22 Aug 2009 12:50:20 -0700
To: <www-style@w3.org>
Message-ID: <HIEDLECHAFDEPLGKECDDCEPLAMAB.davidp@hpaa.com>
Paul wrote:
| I suggest using the verb 'flip' rather than 'mirror' since it's shorter 
| and the preferred term used in many leading graphics packages such as 
| Photoshop.

I'm inclined to agree because there's not much need for both flip and mirror to apply to a single background image. But I don't like my initial suggestion as to how it would work. Using the background-repeat syntax is better:

 Name:       background-flip
 Value:      [ <flip> [ , <flip> ]*
 Initial:    no-flip
 Applies to: all elements 

Where <flip> means:

 flip-x | flip-y | mirror-x | mirror-y |[flip | mirror | no-flip]{1,2}

Specifying

 background-flip: mirror-x;

to mirror the left half onto the right seems easy enough to understand and remember.

- davidp
Received on Saturday, 22 August 2009 19:51:05 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:20 GMT