Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<title>No crash on long flat math expression chains during parsing</title>
<div id="target"></div>
<script>
target.style.width = "calc(1px * 1px" + " * 2".repeat(200) + ")";
getComputedStyle(target).width;
target.style.width = "calc(1px + 1em" + " + 1em".repeat(200) + ")";
getComputedStyle(target).width;
</script>