W3C home > Mailing lists > Public > public-css-archive@w3.org > December 2018

[csswg-drafts] [css-values] Limit nested pairs of parentheses in calc to 32 (#3462)

From: Gérard Talbot via GitHub <sysbot+gh@w3.org>
Date: Wed, 19 Dec 2018 23:31:29 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-392820821-1545262288-sysbot+gh@w3.org>
TalbotG has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-values] Limit nested pairs of parentheses in calc to 32 ==
[calc-errors.html test at line 68](https://trac.webkit.org/browser/webkit/trunk/LayoutTests/css3/calc/calc-errors.html#L68)

At line 68 of the test above, there is a calc() function with 128 nested parentheses. Firefox is able to support 128 pairs of nested parentheses. Blink supports 32 nested pairs of parentheses and then fails when trying 33 nested pairs of parentheses:

[trac-webkit-calc-errors.html with 33 nested pairs of parentheses](http://www.gtalbot.org/BrowserBugsSection/CSS3Values/trac-webkit-calc-errors.html)

128 nested pairs of parentheses seems outrageously extreme but there seems nothing in the CSS3 spec and CSS4 spec that indicate ceiling limit for nested parentheses.

**Proposal: CSS4 spec explicitly state a limit (ceiling) of support to 32 nested pairs of parentheses in calc() function.**

Then the test calc-errors.html should be adjusted accordingly before submitted to wpt.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3462 using your GitHub account
Received on Wednesday, 19 December 2018 23:31:30 UTC

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