[csswg-drafts] [css-variables] Token sequence size limit (#3733)

andruud has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-variables] Token sequence size limit ==
Should we add a size/complexity limit on the token sequence produced by var()-references?

@emilio created [a test](https://github.com/web-platform-tests/wpt/blob/master/css/css-variables/variable-exponential-blowup.html) which (if allowed to complete) would spend 30GB+ (IIRC). This test uses JS, but it's easy to achieve the same with just manually typing 30ish lines of CSS.

Sidenote: Mozilla [already added](https://hg.mozilla.org/integration/autoland/rev/3e5ea9da2cbb) a 1MB limit. 

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3733 using your GitHub account

Received on Friday, 15 March 2019 15:17:37 UTC