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

Re: [css3-gcpm] Incompatibilities with css3-content

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Mon, 09 Feb 2009 15:32:59 -0500
Message-ID: <499092FB.50009@mit.edu>
To: Giovanni Campagna <scampa.giovanni@gmail.com>
CC: Håkon Wium Lie <howcome@opera.com>, www-style@w3.org

Giovanni Campagna wrote:
> How much memory does a new property need?

In a naive implementation, for each property, for each element you need 
to store the specified, computed, and used value.  An obvious 
optimization is to not store specified values for properties that are 
not actually specified, and to collapse computed and used values for all 
properties where the two do not differ (e.g. float would fall in this 

For this particular case, the value seems to be able to fit into an 
integer of some sort without too much trouble, so the answer would seem 
to be "a few bytes per node", modulo optimizations involving sharing 
style data across nodes.

Received on Monday, 9 February 2009 20:34:07 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:24 UTC