RE: Mirror as background property

Tab Atkins Jr. wrote:
| What I want is the ability to take an image and specify a line to
| mirror it around.

The effect you want can be had from an optional 'background-flip' parameter.

'background-flip'
[ [ horizontal | vertical | both | none ] [ mirror ]? ]

Without 'mirror' it works as previously described.

'horizontal mirror' mirrors the left half onto the right half.

'vertical mirror' mirrors the top half onto the bottom half.

'both mirror' mirrors the left half onto the right half, then mirrors the top half onto the bottom half. Useful effects could be had using this on an angular gradient.

- davidp

Received on Saturday, 22 August 2009 00:06:03 UTC