W3C home > Mailing lists > Public > public-css-archive@w3.org > March 2019

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

From: andruud via GitHub <sysbot+gh@w3.org>
Date: Fri, 15 Mar 2019 15:17:05 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-421569887-1552663024-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:45 UTC