W3C home > Mailing lists > Public > www-style@w3.org > October 2008

Re: [css3-background] New Working Draft of CSS Backgrounds and Borders Level 3

From: Jordan OSETE <jordan.osete@laposte.net>
Date: Wed, 15 Oct 2008 21:05:07 +0200
Message-ID: <48F63EE3.1030404@laposte.net>
To: www-style@w3.org

Well, I don't think it is that much more complicated than the current
proposed syntax (as I outlined in my previous mail, actually I think it
is less ambiguous), but for example you could do a progressbar-like div
with the bg-image showing the progress :
    background: white url( my_image ) 100% 0 / 0 0;
This puts the top-right corner of the image at the top left of the div
(so making it fully invisible). Then the progress can very easily be
shown by changing the position relative to the div:
    background-position: 100% 0 / 10% 0;
    background-position: 100% 0 / 20% 0;
Up to:
    background-position: 100% 0 / 100% 0;
...when finished.
Of course it is just an example.

Regards,
Jordan OSETE

fantasai a écrit :
>
>
> Jordan OSETE wrote:
>>
>>> What did you want to accomplish with your proposal that can't be 
>>> done here?
>>
>> Exactly what Tab Atkins Jr. previously described:
>>> From what I can tell, the thing that this proposal brings to the 
>>> table is simply the ability to do percentage-based positioning based 
>>> on either the image or the element (as opposed to the current 
>>> method, which does both at once), correct?
>
> Yeah, but why would you want to do that? What common effects can
> you accomplish with such a capability that's worth complicating
> the syntax that much?
>
> ~fantasai
>
>
>
Received on Wednesday, 15 October 2008 19:05:42 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:55:15 GMT