W3C home > Mailing lists > Public > www-style@w3.org > January 2010

Re: [css3-selectors] Grouping

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Fri, 08 Jan 2010 12:50:12 -0500
Message-ID: <4B477054.40400@mit.edu>
To: Nikita Popov <privat@ni-po.com>
CC: news@terrainformatica.com, www-style list <www-style@w3.org>
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.

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

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:07:42 UTC