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

Re: Mirror as background property

From: François REMY <fremycompany_pub@yahoo.fr>
Date: Sat, 22 Aug 2009 14:02:41 +0200
Message-ID: <088A2EE367F647EDB8E6561F33C2D39C@FREMYCOMPANY>
To: "David Perrell" <davidp@hpaa.com>, <www-style@w3.org>
From: "David Perrell" <davidp@hpaa.com>
> More thoughts on this...
>
> Mirror could be incorporated into background-repeat:
>
>  'mirror no-repeat' mirrors to the right.
>  'no-repeat mirror' mirrors downward.
>  'mirror' or 'mirror mirror' mirrors to the right, then mirrors both 
> images downwards, giving you what would be a seamless pattern from any 
> image.
>
> The problem with that is that once you have that potentially-seamless 
> pattern, you can't tile it.

The best would then be :

background-repeat: <repeat-value> (<mirror-style>)?
    <repeapt-value> : 'repeat' | 'repeat-x' | 'repeat-y' | 'no-repeat'
    <mirror-style> : 'no-mirror' | 'mirror' | 'mirror-x' | 'mirror-y'

>
> [...]
>

To solve the problem of the mirrored gradient, we can create a function like

<image> : ... | <seamless>
    <seamless> :  'seamless(' <image> ', ' <mirror-style> ')'

So we could have seamless(x-gradient(...), mirror) to have a seamless 
gradient 
Received on Saturday, 22 August 2009 12:03:21 GMT

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