[css-counter-styles] length of prefix, suffix, and negative should be limited

Hi,

Since the string in such descriptors will be multipled by the number
of ordinals to be displayed, it could be easy to consume a large
amount of memory and time even when the total page size is not too
large. For example, if prefix is a string of 100,000 characters, and
there is 25,000 numbers to be displayed. The size of page is just
several hundred kilobytes, but could consume 2GB memory to compute it.

Hence I propose that the length of all these fields should be limited.
A too long string for them could be dropped directly in parsing stage.

Regards,
Xidorn Quan

Received on Sunday, 9 March 2014 10:03:30 UTC