forked from swc-project/swc
-
Notifications
You must be signed in to change notification settings - Fork 1
/
input.css
77 lines (61 loc) · 1.25 KB
/
input.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
.class {
width: calc(20px + 40px);
}
.class {
margin: calc(5% + 5px) calc(10% + 10px);
}
div {
background-size: calc(20px);
}
.basic {
opacity: calc(1 + calc(2 * 2));
}
.mixed-casing {
width: calc(1 + cAlC(2 * 2));
}
.multi-line {
width: calc(1 +
calc(2 * 2)
);
}
.multiple-nested {
width: calc(2 + calc(2 * 2) + calc(2 * 2));
}
.triple-nested {
width: calc(3 + calc(2 * calc(2 * 2)));
}
.triple-nested-in-other-func {
width: var(--foo, calc(4 + calc(2 * calc(2 * 2))));
}
.complex {
width: calc(5 + calc(2 * calc(
2 * var(
--foo,
calc(6 + calc(2 * calc(2 * 2)))))
)
);
}
.ignore {
width: calc(1 + var(--foo, calc(2 * 2)));
}
.custom-props {
--order: calc(1 + calc(2 * 2));
}
.foo {
width: calc((1 + calc(2 * 2)) * 10px);
width: CALC((1 + CALC(2 * 2)) * 10px);
padding: calc((1 + calc(2 * 2)) * 10px) calc((1 + calc(2 * 2)) * 10px);
padding: calc((1 + -webkit-calc(2 * 2)) * 10px);
}
.bar {
padding: -webkit-calc((1 + calc(2 * 2)) * 10px);
}
.baz {
padding: -webkit-calc((1 + -webkit-calc(2 * 2)) * 10px);
}
.foo1 {
padding: -webkit-calc((1 + (2 * 2)) * 10px);
}
.foo2 {
padding: var(--foo, calc((1 + calc(2 * 2)) * 10px));
}