On 2010-10-31, at 10:05, Henry Minsky wrote:

> I can't think of a more efficient mechanism right now than the one that Max
> put in, and I am also concerned about the efficiency if we did this with a
> lot of properties, but
> I will think about it some more.

One idea:

Don't add any more inheriting of properties in the LFC.  Only allow CSS-able 
properties to inherit.  That way we can use the (more efficient) CSS mechanism 
for inheritance going forward.  Obviously, this depends on fixing all the CSS 
inherit bugs that I just filed.  But I think the advantage is that we don't 
have to write a hand-coded 'cascade setter' for every inherited attribute -- it 
will just be a standard mechanism in the CSS machinery that you enable by 
declaring the CSS property to be an inherited property.

Eventually, we could phase out the few properties whose inheritance is defined 
by hand in the LFC.

Reply via email to