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

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