- From: Tab Atkins Jr. <jackalmage@gmail.com>
- Date: Wed, 26 Mar 2014 12:47:17 -0700
- To: Simon Sapin <simon.sapin@exyr.org>
- Cc: www-style list <www-style@w3.org>
On Wed, Mar 26, 2014 at 4:27 AM, Simon Sapin <simon.sapin@exyr.org> wrote: > CSS Counter Styles allows UAs to take precautions against small stylesheets > that could cause high memory usage: > >> Some values of system (symbolic, additive) and some descriptors (pad) >> can generate representations with size linear to an author-supplied >> number. This can potentially be abused to generate excessively large >> representations and consume undue amounts of the user’s memory or >> even hang their browser. User agents must support representations at >> least 60 Unicode codepoints long, but they may choose to instead use >> the fallback style for representations that would be longer than 60 >> codepoints. > > > > CSS Grid should do the same with the repeat() function. Something like: when > the number of repetitions is more than 1000 (or some other number), use 1000 > instead. > > Mozilla bug on this topic: > https://bugzilla.mozilla.org/show_bug.cgi?id=978478#c1 Makes sense. Per the discussion on the bug, I've set the required minimum to 10k. ~TJ
Received on Wednesday, 26 March 2014 19:48:04 UTC