Re: [CSS] Rules for parsing and compatibility

Mikko Rantalainen wrote:

> If rules for multiple elements are tied together and one of them is 
> changed via DOM I'd expect that calculating computed style could take 
> serious CPU hit in some cases. This is because setting property to 
> unsupported value could invalidate entire rule set and invalidating that 
> could cause further chain effect when "unhidden" rules cause other @ties 
> to invalidate (if nesting is allowed). I'm just guessing about possible 
> problems, really.
>
> As I think it further it seems reasonable to implement every @tie as it 
> was a separate style sheet and simply toggle that on and off as required 
> -- that is, on if every rule is implemented, off if any rule cannot be 
> implemented. That way, existing styling code can be maximally reused 
> (and stuff like !important Just Works).

Yes, until there is somewhat implementation as base we could only 
speculate on the correct approach.

> [Did my previous posting get to the mailing list or is my UA simply 
> broken?]

No, it's my fault - seems I've pushed the "Reply" and not the "Reply 
All" button, sorry.

-- 
Stanimir

Received on Thursday, 1 January 2004 05:21:20 UTC