Re: [css3-selectors] Grouping

On 1/8/10 12:33 PM, Nikita Popov wrote:
> Which would lead to 3^4 = 81 rules. Hopefully nobody does it.

Sure they will.  That's just life.

On the other hand, it's not like stylesheets have small numbers of rules 
as it is.  gmail has several thousand, for example....

The biggest danger here, actually, as with any compression scheme, is 
being a vector for DOS attacks.  And honestly, those are just possible 
already: you could gzip-compress your stylesheet with lots of redundant 
rules and it would end up very small to transmit but huge to parse and such.

-Boris

Received on Friday, 8 January 2010 17:56:31 UTC