W3C home > Mailing lists > Public > www-style@w3.org > June 2012

Re: [css-background] Order of properties in background shorthand

From: Sebastian Zartner <sebastianzartner@gmx.de>
Date: Fri, 01 Jun 2012 18:22:50 +0200
Cc: www-style@w3.org
Message-ID: <20120601162250.115290@gmx.net>
To: Boris Zbarsky <bzbarsky@MIT.EDU>
> > and UAs like Firefox make the efforts to change the order when it's not
> > necessary
> 
> You're confusing "make efforts to change the order" and "don't make 
> efforts to preserve the order".
> 
> Let's take a simple example: background.  Internally this is stored as 
> values for background-position, background-image, etc, with no 
> particular ordering imposed on them (they're just members of a struct). 
>   The original string is not stored anywhere, since it's not needed for 
> normal operation and would take up extra memory.  When asked for 
> .background, Gecko just serializes this unordered representation, which 
> implies picking an arbitrary order at that point.
What I meant with "make efforts to change the order" was, that it was working different in earlier versions of Firefox. I.e. somebody must have changed the serialization code so that the order we previously had in Firefox has now changed.

Sebastian
-- 
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de
Received on Friday, 1 June 2012 16:23:21 GMT

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