blob: 061a3afaa8aa134e57d19504c53c0b8d999f2fd0 [file] [log] [blame]
This tests parse time simplification in calc()
100px * (25 + 5) => calc(3000px)
100em * (25 - 5) => calc(2000em)
100ex * (2 * 5 - 5) => calc(500ex)
100cm * (5 - 4 / 5) => calc(420cm)
100mm * (2.4 * 5 - 8 / 5) => calc(1040mm)
100in * (6 * (5 - 4) / 8) => calc(75in)
1px * (3 + 1/(7 + 1/(15 + 1/(1 + 1/(292 + 1/(1 + 1/(1 + 1/(1 + 1)))))))) => calc(3.14159px)
100pc * 20 + 100rem * 10 - 100ch * 5 + 100pc => calc(((2000pc + 1000rem) - 500ch) + 100pc)
((100px + 20 * 5px) * 10 - 5 * (10em * 5 + 10em)) * 2 => calc((2000px - 300em) * 2)
100px + 1in => calc(196px)
10 * 10px + 0.5 * 2in => calc(196px)
100px + 1in + 10% => calc(196px + 10%)
100px - 1in => calc(4px)
50cm + 50cm => calc(100cm)
50cm + 10in + 100mm => calc(3227.72px)
100px + 1em => calc(100px + 1em)
100px + 1em + 100px => calc((100px + 1em) + 100px)
1em + 1rem => calc(1em + 1rem)
1q + 10q => calc(11q)
100q * (10 + 5) => calc(1500q)