/
css.js.snap
192 lines (163 loc) Β· 2.55 KB
/
css.js.snap
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`applies class when css prop is set to nil on wrapper component 1`] = `
Array [
.emotion-0 {
color: hotpink;
}
<button
className="emotion-0"
>
I'm hotpink!
</button>,
.emotion-0 {
color: hotpink;
}
<button
className="emotion-0"
>
I'm hotpink too!
</button>,
]
`;
exports[`array fallback (using camelCased property) 1`] = `
.emotion-0 {
background-color: green;
background-color: hotpink;
}
<div>
<div
className="emotion-0"
>
something
</div>
</div>
`;
exports[`array fallback 1`] = `
.emotion-0 {
color: green;
color: hotpink;
}
<div>
<div
className="emotion-0"
>
something
</div>
</div>
`;
exports[`child selector array 1`] = `
.emotion-0:hover {
color: green;
background-color: yellow;
}
<div
className="emotion-0"
/>
`;
exports[`css call composition 1`] = `
.emotion-0:hover {
color: hotpink;
}
<div
className="emotion-0"
/>
`;
exports[`handles camelCased custom properties in object styles properly 1`] = `
.emotion-0 {
--textColor: green;
color: var(--textColor);
}
<div
className="emotion-0"
/>
`;
exports[`handles composition of styles without a final semi in a declaration block 1`] = `
.emotion-0 {
color: hotpink;
background-color: green;
}
<div
className="emotion-0"
>
I'm hotpink on the green background.
</div>
`;
exports[`label in css call 1`] = `
.emotion-0 {
color: hotpink;
}
<div>
<div
className="emotion-0"
>
something
</div>
</div>
`;
exports[`nested at rule 1`] = `
@media (min-width:980px) {
.emotion-0 {
background-color: blue;
}
@supports (width:100vw) {
.emotion-0 {
background-color: red;
}
}
}
<div
className="emotion-0"
>
something
</div>
`;
exports[`object with false 1`] = `
.emotion-0 {
color: hotpink;
}
<div>
<div
className="emotion-0"
>
something
</div>
</div>
`;
exports[`overwrite styles from parent 1`] = `
.emotion-0 {
color: green;
background-color: yellow;
color: hotpink;
}
<div
className="emotion-0"
/>
`;
exports[`string as css prop throws 1`] = `
"Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/css' like this: css\`
color: hotpink;
\`"
`;
exports[`theming with the css prop 1`] = `
.emotion-0 {
color: hotpink;
}
<div
className="emotion-0"
/>
`;
exports[`thing 1`] = `
.emotion-0 {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
}
<div>
<div
className="emotion-0"
>
something
</div>
</div>
`;