OLD | NEW |
1 This tests parse time simplification in calc() | 1 This tests parse time simplification in calc() |
2 | 2 |
3 100px * (25 + 5) => calc(3000px) | 3 100px * (25 + 5) => calc(3000px) |
4 100em * (25 - 5) => calc(2000em) | 4 100em * (25 - 5) => calc(2000em) |
5 100ex * (2 * 5 - 5) => calc(500ex) | 5 100ex * (2 * 5 - 5) => calc(500ex) |
6 100cm * (5 - 4 / 5) => calc(420cm) | 6 100cm * (5 - 4 / 5) => calc(420cm) |
7 100mm * (2.4 * 5 - 8 / 5) => calc(1040mm) | 7 100mm * (2.4 * 5 - 8 / 5) => calc(1040mm) |
8 100in * (6 * (5 - 4) / 8) => calc(75in) | 8 100in * (6 * (5 - 4) / 8) => calc(75in) |
9 1px * (3 + 1/(7 + 1/(15 + 1/(1 + 1/(292 + 1/(1 + 1/(1 + 1/(1 + 1)))))))) => calc
(3.1415926535583574px) | 9 1px * (3 + 1/(7 + 1/(15 + 1/(1 + 1/(292 + 1/(1 + 1/(1 + 1/(1 + 1)))))))) => calc
(3.14159265355836px) |
10 100pc * 20 + 100rem * 10 - 100ch * 5 + 100pc => calc(((2000pc + 1000rem) - 500ch
) + 100pc) | 10 100pc * 20 + 100rem * 10 - 100ch * 5 + 100pc => calc(((2000pc + 1000rem) - 500ch
) + 100pc) |
11 ((100px + 20 * 5px) * 10 - 5 * (10em * 5 + 10em)) * 2 => calc((2000px - 300em) *
2) | 11 ((100px + 20 * 5px) * 10 - 5 * (10em * 5 + 10em)) * 2 => calc((2000px - 300em) *
2) |
12 100px + 1in => calc(196px) | 12 100px + 1in => calc(196px) |
13 10 * 10px + 0.5 * 2in => calc(196px) | 13 10 * 10px + 0.5 * 2in => calc(196px) |
14 100px + 1in + 10% => calc(196px + 10%) | 14 100px + 1in + 10% => calc(196px + 10%) |
15 100px - 1in => calc(4px) | 15 100px - 1in => calc(4px) |
16 50cm + 50cm => calc(100cm) | 16 50cm + 50cm => calc(100cm) |
17 50cm + 10in + 100mm => calc(3227.7165354330705px) | 17 50cm + 10in + 100mm => calc(3227.71653543307px) |
18 100px + 1em => calc(100px + 1em) | 18 100px + 1em => calc(100px + 1em) |
19 100px + 1em + 100px => calc((100px + 1em) + 100px) | 19 100px + 1em + 100px => calc((100px + 1em) + 100px) |
20 1em + 1rem => calc(1em + 1rem) | 20 1em + 1rem => calc(1em + 1rem) |
21 | 21 |
OLD | NEW |