@colimuca123/nativewind 4.2.2-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.OpenSource +11 -0
- package/babel.js +1 -0
- package/dist/doctor.d.ts +1 -0
- package/dist/doctor.js +21 -0
- package/dist/doctor.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +20 -0
- package/dist/index.js.map +1 -0
- package/dist/metro/common.d.ts +4 -0
- package/dist/metro/common.js +8 -0
- package/dist/metro/common.js.map +1 -0
- package/dist/metro/index.d.ts +15 -0
- package/dist/metro/index.js +47 -0
- package/dist/metro/index.js.map +1 -0
- package/dist/metro/picocolors.d.ts +26 -0
- package/dist/metro/picocolors.js +53 -0
- package/dist/metro/picocolors.js.map +1 -0
- package/dist/metro/tailwind/index.d.ts +5 -0
- package/dist/metro/tailwind/index.js +25 -0
- package/dist/metro/tailwind/index.js.map +1 -0
- package/dist/metro/tailwind/types.d.ts +8 -0
- package/dist/metro/tailwind/types.js +3 -0
- package/dist/metro/tailwind/types.js.map +1 -0
- package/dist/metro/tailwind/v3/child.d.ts +0 -0
- package/dist/metro/tailwind/v3/child.js +45 -0
- package/dist/metro/tailwind/v3/child.js.map +1 -0
- package/dist/metro/tailwind/v3/index.d.ts +6 -0
- package/dist/metro/tailwind/v3/index.js +81 -0
- package/dist/metro/tailwind/v3/index.js.map +1 -0
- package/dist/metro/typescript.d.ts +1 -0
- package/dist/metro/typescript.js +46 -0
- package/dist/metro/typescript.js.map +1 -0
- package/dist/stylesheet.d.ts +5 -0
- package/dist/stylesheet.js +25 -0
- package/dist/stylesheet.js.map +1 -0
- package/dist/tailwind/color.d.ts +4 -0
- package/dist/tailwind/color.js +25 -0
- package/dist/tailwind/color.js.map +1 -0
- package/dist/tailwind/common.d.ts +2 -0
- package/dist/tailwind/common.js +24 -0
- package/dist/tailwind/common.js.map +1 -0
- package/dist/tailwind/dark-mode.d.ts +4 -0
- package/dist/tailwind/dark-mode.js +48 -0
- package/dist/tailwind/dark-mode.js.map +1 -0
- package/dist/tailwind/index.d.ts +0 -0
- package/dist/tailwind/index.js +13 -0
- package/dist/tailwind/index.js.map +1 -0
- package/dist/tailwind/native.d.ts +3 -0
- package/dist/tailwind/native.js +265 -0
- package/dist/tailwind/native.js.map +1 -0
- package/dist/tailwind/prop-modifier.d.ts +4 -0
- package/dist/tailwind/prop-modifier.js +13 -0
- package/dist/tailwind/prop-modifier.js.map +1 -0
- package/dist/tailwind/safe-area.d.ts +4 -0
- package/dist/tailwind/safe-area.js +216 -0
- package/dist/tailwind/safe-area.js.map +1 -0
- package/dist/tailwind/shadows.d.ts +4 -0
- package/dist/tailwind/shadows.js +79 -0
- package/dist/tailwind/shadows.js.map +1 -0
- package/dist/tailwind/switch.d.ts +8 -0
- package/dist/tailwind/switch.js +51 -0
- package/dist/tailwind/switch.js.map +1 -0
- package/dist/tailwind/translate.d.ts +2 -0
- package/dist/tailwind/translate.js +40 -0
- package/dist/tailwind/translate.js.map +1 -0
- package/dist/tailwind/verify.d.ts +4 -0
- package/dist/tailwind/verify.js +22 -0
- package/dist/tailwind/verify.js.map +1 -0
- package/dist/tailwind/web.d.ts +3 -0
- package/dist/tailwind/web.js +40 -0
- package/dist/tailwind/web.js.map +1 -0
- package/dist/test.d.ts +373 -0
- package/dist/test.js +161 -0
- package/dist/test.js.map +1 -0
- package/dist/theme.d.ts +1 -0
- package/dist/theme.js +9 -0
- package/dist/theme.js.map +1 -0
- package/expo-snack.js +71 -0
- package/jsx-dev-runtime/index.d.ts +1 -0
- package/jsx-dev-runtime/index.js +1 -0
- package/jsx-runtime/index.d.ts +1 -0
- package/jsx-runtime/index.js +1 -0
- package/metro/package.json +1 -0
- package/package.json +75 -0
- package/preset/package.json +3 -0
- package/src/__tests__/README.md +3 -0
- package/src/__tests__/accessibility.tsx +41 -0
- package/src/__tests__/backgrounds.tsx +239 -0
- package/src/__tests__/borders.tsx +355 -0
- package/src/__tests__/container-queries.tsx +59 -0
- package/src/__tests__/custom-theme.tsx +45 -0
- package/src/__tests__/custom.tsx +17 -0
- package/src/__tests__/dark-mode.ios.tsx +251 -0
- package/src/__tests__/doctor.tsx +13 -0
- package/src/__tests__/effects.ios.tsx +230 -0
- package/src/__tests__/elevation.tsx +22 -0
- package/src/__tests__/filters.tsx +201 -0
- package/src/__tests__/flexbox-grid.tsx +670 -0
- package/src/__tests__/groups.tsx +134 -0
- package/src/__tests__/interactivity.tsx +547 -0
- package/src/__tests__/layout.tsx +854 -0
- package/src/__tests__/modifier-{}.tsx +71 -0
- package/src/__tests__/platform-modifiers-test.ios.tsx +34 -0
- package/src/__tests__/preset.tsx +9 -0
- package/src/__tests__/reusing-styles.tsx +44 -0
- package/src/__tests__/safe-area.test.ios.tsx +427 -0
- package/src/__tests__/sizing.tsx +241 -0
- package/src/__tests__/spacing.tsx +106 -0
- package/src/__tests__/states.tsx +145 -0
- package/src/__tests__/svg.tsx +25 -0
- package/src/__tests__/tables.tsx +103 -0
- package/src/__tests__/theme.tsx +245 -0
- package/src/__tests__/transforms.tsx +509 -0
- package/src/__tests__/transition-animations.tsx +254 -0
- package/src/__tests__/typography.tsx +657 -0
- package/src/__tests__/unofficial-plugins.test.ios.tsx +171 -0
- package/src/doctor.ts +28 -0
- package/src/index.tsx +16 -0
- package/src/metro/common.ts +11 -0
- package/src/metro/index.ts +77 -0
- package/src/metro/picocolors.ts +76 -0
- package/src/metro/tailwind/index.ts +22 -0
- package/src/metro/tailwind/types.ts +9 -0
- package/src/metro/tailwind/v3/child.ts +61 -0
- package/src/metro/tailwind/v3/index.ts +103 -0
- package/src/metro/typescript.ts +69 -0
- package/src/stylesheet.ts +31 -0
- package/src/tailwind/color.ts +23 -0
- package/src/tailwind/common.ts +26 -0
- package/src/tailwind/dark-mode.ts +46 -0
- package/src/tailwind/index.ts +15 -0
- package/src/tailwind/native.ts +374 -0
- package/src/tailwind/prop-modifier.ts +7 -0
- package/src/tailwind/safe-area.ts +262 -0
- package/src/tailwind/shadows.ts +100 -0
- package/src/tailwind/switch.ts +59 -0
- package/src/tailwind/translate.ts +51 -0
- package/src/tailwind/verify.ts +16 -0
- package/src/tailwind/web.ts +38 -0
- package/src/tailwindcss-internals.d.ts +7 -0
- package/src/test.tsx +224 -0
- package/src/theme.ts +15 -0
- package/test/package.json +4 -0
- package/theme/package.json +3 -0
- package/types.d.ts +1 -0
|
@@ -0,0 +1,854 @@
|
|
|
1
|
+
import { renderCurrentTest } from "../test";
|
|
2
|
+
|
|
3
|
+
describe("Layout - Aspect Ratio", () => {
|
|
4
|
+
test("aspect-square", async () => {
|
|
5
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
6
|
+
props: { style: { aspectRatio: 1 } },
|
|
7
|
+
});
|
|
8
|
+
});
|
|
9
|
+
test("aspect-video", async () => {
|
|
10
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
11
|
+
props: { style: { aspectRatio: "16 / 9" } },
|
|
12
|
+
});
|
|
13
|
+
});
|
|
14
|
+
test("aspect-[4/3]", async () => {
|
|
15
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
16
|
+
props: { style: { aspectRatio: "4 / 3" } },
|
|
17
|
+
});
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
describe("Layout - Container", () => {
|
|
22
|
+
test("container", async () => {
|
|
23
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
24
|
+
props: { style: { maxWidth: 640, width: "100%" } },
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
describe("Layout - Columns", () => {
|
|
30
|
+
test("columns-1", async () => {
|
|
31
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
32
|
+
props: {},
|
|
33
|
+
invalid: { properties: ["columns"] },
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
test("columns-2", async () => {
|
|
37
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
38
|
+
props: {},
|
|
39
|
+
invalid: { properties: ["columns"] },
|
|
40
|
+
});
|
|
41
|
+
});
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
describe("Layout - Break After", () => {
|
|
45
|
+
test("break-after-auto", async () => {
|
|
46
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
47
|
+
props: {},
|
|
48
|
+
invalid: { properties: ["break-after"] },
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
test("break-after-avoid", async () => {
|
|
52
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
53
|
+
props: {},
|
|
54
|
+
invalid: { properties: ["break-after"] },
|
|
55
|
+
});
|
|
56
|
+
});
|
|
57
|
+
test("break-after-all", async () => {
|
|
58
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
59
|
+
props: {},
|
|
60
|
+
invalid: { properties: ["break-after"] },
|
|
61
|
+
});
|
|
62
|
+
});
|
|
63
|
+
test("break-after-avoid-page", async () => {
|
|
64
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
65
|
+
props: {},
|
|
66
|
+
invalid: { properties: ["break-after"] },
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
test("break-after-page", async () => {
|
|
70
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
71
|
+
props: {},
|
|
72
|
+
invalid: { properties: ["break-after"] },
|
|
73
|
+
});
|
|
74
|
+
});
|
|
75
|
+
test("break-after-left", async () => {
|
|
76
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
77
|
+
props: {},
|
|
78
|
+
invalid: { properties: ["break-after"] },
|
|
79
|
+
});
|
|
80
|
+
});
|
|
81
|
+
test("break-after-right", async () => {
|
|
82
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
83
|
+
props: {},
|
|
84
|
+
invalid: { properties: ["break-after"] },
|
|
85
|
+
});
|
|
86
|
+
});
|
|
87
|
+
test("break-after-column", async () => {
|
|
88
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
89
|
+
props: {},
|
|
90
|
+
invalid: { properties: ["break-after"] },
|
|
91
|
+
});
|
|
92
|
+
});
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
describe("Layout - Break Before", () => {
|
|
96
|
+
test("break-before-auto", async () => {
|
|
97
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
98
|
+
props: {},
|
|
99
|
+
invalid: { properties: ["break-before"] },
|
|
100
|
+
});
|
|
101
|
+
});
|
|
102
|
+
test("break-before-avoid", async () => {
|
|
103
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
104
|
+
props: {},
|
|
105
|
+
invalid: { properties: ["break-before"] },
|
|
106
|
+
});
|
|
107
|
+
});
|
|
108
|
+
test("break-before-all", async () => {
|
|
109
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
110
|
+
props: {},
|
|
111
|
+
invalid: { properties: ["break-before"] },
|
|
112
|
+
});
|
|
113
|
+
});
|
|
114
|
+
test("break-before-avoid-page", async () => {
|
|
115
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
116
|
+
props: {},
|
|
117
|
+
invalid: { properties: ["break-before"] },
|
|
118
|
+
});
|
|
119
|
+
});
|
|
120
|
+
test("break-before-page", async () => {
|
|
121
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
122
|
+
props: {},
|
|
123
|
+
invalid: { properties: ["break-before"] },
|
|
124
|
+
});
|
|
125
|
+
});
|
|
126
|
+
test("break-before-left", async () => {
|
|
127
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
128
|
+
props: {},
|
|
129
|
+
invalid: { properties: ["break-before"] },
|
|
130
|
+
});
|
|
131
|
+
});
|
|
132
|
+
test("break-before-right", async () => {
|
|
133
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
134
|
+
props: {},
|
|
135
|
+
invalid: { properties: ["break-before"] },
|
|
136
|
+
});
|
|
137
|
+
});
|
|
138
|
+
test("break-before-column", async () => {
|
|
139
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
140
|
+
props: {},
|
|
141
|
+
invalid: { properties: ["break-before"] },
|
|
142
|
+
});
|
|
143
|
+
});
|
|
144
|
+
});
|
|
145
|
+
|
|
146
|
+
describe("Layout - Break Inside", () => {
|
|
147
|
+
test("break-inside-auto", async () => {
|
|
148
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
149
|
+
props: {},
|
|
150
|
+
invalid: { properties: ["break-inside"] },
|
|
151
|
+
});
|
|
152
|
+
});
|
|
153
|
+
test("break-inside-avoid", async () => {
|
|
154
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
155
|
+
props: {},
|
|
156
|
+
invalid: { properties: ["break-inside"] },
|
|
157
|
+
});
|
|
158
|
+
});
|
|
159
|
+
test("break-inside-avoid-page", async () => {
|
|
160
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
161
|
+
props: {},
|
|
162
|
+
invalid: { properties: ["break-inside"] },
|
|
163
|
+
});
|
|
164
|
+
});
|
|
165
|
+
test("break-inside-avoid-column", async () => {
|
|
166
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
167
|
+
props: {},
|
|
168
|
+
invalid: { properties: ["break-inside"] },
|
|
169
|
+
});
|
|
170
|
+
});
|
|
171
|
+
});
|
|
172
|
+
|
|
173
|
+
describe("Layout - Box Decoration Break", () => {
|
|
174
|
+
test("box-decoration-clone", async () => {
|
|
175
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
176
|
+
props: {},
|
|
177
|
+
invalid: { properties: ["box-decoration-break"] },
|
|
178
|
+
});
|
|
179
|
+
});
|
|
180
|
+
test("box-decoration-slice", async () => {
|
|
181
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
182
|
+
props: {},
|
|
183
|
+
invalid: { properties: ["box-decoration-break"] },
|
|
184
|
+
});
|
|
185
|
+
});
|
|
186
|
+
});
|
|
187
|
+
|
|
188
|
+
describe("Layout - Box Sizing", () => {
|
|
189
|
+
test("box-border", async () => {
|
|
190
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
191
|
+
props: {},
|
|
192
|
+
invalid: { properties: ["box-sizing"] },
|
|
193
|
+
});
|
|
194
|
+
});
|
|
195
|
+
test("box-content", async () => {
|
|
196
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
197
|
+
props: {},
|
|
198
|
+
invalid: { properties: ["box-sizing"] },
|
|
199
|
+
});
|
|
200
|
+
});
|
|
201
|
+
});
|
|
202
|
+
|
|
203
|
+
describe("Layout - Display", () => {
|
|
204
|
+
test("flex", async () => {
|
|
205
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
206
|
+
props: { style: { display: "flex" } },
|
|
207
|
+
});
|
|
208
|
+
});
|
|
209
|
+
test("hidden", async () => {
|
|
210
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
211
|
+
props: { style: { display: "none" } },
|
|
212
|
+
});
|
|
213
|
+
});
|
|
214
|
+
test("block", async () => {
|
|
215
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
216
|
+
props: {},
|
|
217
|
+
invalid: { style: { display: "block" } },
|
|
218
|
+
});
|
|
219
|
+
});
|
|
220
|
+
test("inline-block", async () => {
|
|
221
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
222
|
+
props: {},
|
|
223
|
+
invalid: { style: { display: "inline-block" } },
|
|
224
|
+
});
|
|
225
|
+
});
|
|
226
|
+
test("inline", async () => {
|
|
227
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
228
|
+
props: {},
|
|
229
|
+
invalid: { style: { display: "inline" } },
|
|
230
|
+
});
|
|
231
|
+
});
|
|
232
|
+
test("inline-flex", async () => {
|
|
233
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
234
|
+
props: {},
|
|
235
|
+
invalid: { style: { display: "inline-flex" } },
|
|
236
|
+
});
|
|
237
|
+
});
|
|
238
|
+
test("table", async () => {
|
|
239
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
240
|
+
props: {},
|
|
241
|
+
invalid: { style: { display: "table" } },
|
|
242
|
+
});
|
|
243
|
+
});
|
|
244
|
+
test("inline-table", async () => {
|
|
245
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
246
|
+
props: {},
|
|
247
|
+
invalid: { style: { display: "inline-table" } },
|
|
248
|
+
});
|
|
249
|
+
});
|
|
250
|
+
test("table-caption", async () => {
|
|
251
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
252
|
+
props: {},
|
|
253
|
+
invalid: { style: { display: "table-caption" } },
|
|
254
|
+
});
|
|
255
|
+
});
|
|
256
|
+
test("table-cell", async () => {
|
|
257
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
258
|
+
props: {},
|
|
259
|
+
invalid: { style: { display: "table-cell" } },
|
|
260
|
+
});
|
|
261
|
+
});
|
|
262
|
+
test("table-column", async () => {
|
|
263
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
264
|
+
props: {},
|
|
265
|
+
invalid: { style: { display: "table-column" } },
|
|
266
|
+
});
|
|
267
|
+
});
|
|
268
|
+
test("table-column-group", async () => {
|
|
269
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
270
|
+
props: {},
|
|
271
|
+
invalid: { style: { display: "table-column-group" } },
|
|
272
|
+
});
|
|
273
|
+
});
|
|
274
|
+
test("table-footer-group", async () => {
|
|
275
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
276
|
+
props: {},
|
|
277
|
+
invalid: { style: { display: "table-footer-group" } },
|
|
278
|
+
});
|
|
279
|
+
});
|
|
280
|
+
test("table-header-group", async () => {
|
|
281
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
282
|
+
props: {},
|
|
283
|
+
invalid: { style: { display: "table-header-group" } },
|
|
284
|
+
});
|
|
285
|
+
});
|
|
286
|
+
test("table-row-group", async () => {
|
|
287
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
288
|
+
props: {},
|
|
289
|
+
invalid: { style: { display: "table-row-group" } },
|
|
290
|
+
});
|
|
291
|
+
});
|
|
292
|
+
test("table-row", async () => {
|
|
293
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
294
|
+
props: {},
|
|
295
|
+
invalid: { style: { display: "table-row" } },
|
|
296
|
+
});
|
|
297
|
+
});
|
|
298
|
+
test("flow-root", async () => {
|
|
299
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
300
|
+
props: {},
|
|
301
|
+
invalid: { style: { display: "flow-root" } },
|
|
302
|
+
});
|
|
303
|
+
});
|
|
304
|
+
test("grid", async () => {
|
|
305
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
306
|
+
props: {},
|
|
307
|
+
invalid: { style: { display: "grid" } },
|
|
308
|
+
});
|
|
309
|
+
});
|
|
310
|
+
test("inline-grid", async () => {
|
|
311
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
312
|
+
props: {},
|
|
313
|
+
invalid: { style: { display: "inline-grid" } },
|
|
314
|
+
});
|
|
315
|
+
});
|
|
316
|
+
test("contents", async () => {
|
|
317
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
318
|
+
props: {},
|
|
319
|
+
invalid: { style: { display: "contents" } },
|
|
320
|
+
});
|
|
321
|
+
});
|
|
322
|
+
test("list-item", async () => {
|
|
323
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
324
|
+
props: {},
|
|
325
|
+
invalid: { style: { display: "list-item" } },
|
|
326
|
+
});
|
|
327
|
+
});
|
|
328
|
+
});
|
|
329
|
+
|
|
330
|
+
describe("Layout - Floats", () => {
|
|
331
|
+
test("float-right", async () => {
|
|
332
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
333
|
+
props: {},
|
|
334
|
+
invalid: { properties: ["float"] },
|
|
335
|
+
});
|
|
336
|
+
});
|
|
337
|
+
test("float-left", async () => {
|
|
338
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
339
|
+
props: {},
|
|
340
|
+
invalid: { properties: ["float"] },
|
|
341
|
+
});
|
|
342
|
+
});
|
|
343
|
+
test("float-none", async () => {
|
|
344
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
345
|
+
props: {},
|
|
346
|
+
invalid: { properties: ["float"] },
|
|
347
|
+
});
|
|
348
|
+
});
|
|
349
|
+
});
|
|
350
|
+
|
|
351
|
+
describe("Layout - Clear", () => {
|
|
352
|
+
test("clear-right", async () => {
|
|
353
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
354
|
+
props: {},
|
|
355
|
+
invalid: { properties: ["clear"] },
|
|
356
|
+
});
|
|
357
|
+
});
|
|
358
|
+
test("clear-left", async () => {
|
|
359
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
360
|
+
props: {},
|
|
361
|
+
invalid: { properties: ["clear"] },
|
|
362
|
+
});
|
|
363
|
+
});
|
|
364
|
+
test("clear-both", async () => {
|
|
365
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
366
|
+
props: {},
|
|
367
|
+
invalid: { properties: ["clear"] },
|
|
368
|
+
});
|
|
369
|
+
});
|
|
370
|
+
test("clear-none", async () => {
|
|
371
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
372
|
+
props: {},
|
|
373
|
+
invalid: { properties: ["clear"] },
|
|
374
|
+
});
|
|
375
|
+
});
|
|
376
|
+
});
|
|
377
|
+
|
|
378
|
+
describe("Layout - Isolation", () => {
|
|
379
|
+
test("isolate", async () => {
|
|
380
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
381
|
+
props: {},
|
|
382
|
+
invalid: { properties: ["isolation"] },
|
|
383
|
+
});
|
|
384
|
+
});
|
|
385
|
+
test("isolation-auto", async () => {
|
|
386
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
387
|
+
props: {},
|
|
388
|
+
invalid: { properties: ["isolation"] },
|
|
389
|
+
});
|
|
390
|
+
});
|
|
391
|
+
});
|
|
392
|
+
|
|
393
|
+
describe("Layout - Object Fit", () => {
|
|
394
|
+
test("object-contain", async () => {
|
|
395
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
396
|
+
props: {},
|
|
397
|
+
invalid: { properties: ["object-fit"] },
|
|
398
|
+
});
|
|
399
|
+
});
|
|
400
|
+
test("object-cover", async () => {
|
|
401
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
402
|
+
props: {},
|
|
403
|
+
invalid: { properties: ["object-fit"] },
|
|
404
|
+
});
|
|
405
|
+
});
|
|
406
|
+
test("object-fill", async () => {
|
|
407
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
408
|
+
props: {},
|
|
409
|
+
invalid: { properties: ["object-fit"] },
|
|
410
|
+
});
|
|
411
|
+
});
|
|
412
|
+
test("object-none", async () => {
|
|
413
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
414
|
+
props: {},
|
|
415
|
+
invalid: { properties: ["object-fit"] },
|
|
416
|
+
});
|
|
417
|
+
});
|
|
418
|
+
test("object-scale-down", async () => {
|
|
419
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
420
|
+
props: {},
|
|
421
|
+
invalid: { properties: ["object-fit"] },
|
|
422
|
+
});
|
|
423
|
+
});
|
|
424
|
+
});
|
|
425
|
+
|
|
426
|
+
describe("Layout - Object Position", () => {
|
|
427
|
+
test("object-bottom", async () => {
|
|
428
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
429
|
+
props: {},
|
|
430
|
+
invalid: { properties: ["object-position"] },
|
|
431
|
+
});
|
|
432
|
+
});
|
|
433
|
+
test("object-center", async () => {
|
|
434
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
435
|
+
props: {},
|
|
436
|
+
invalid: { properties: ["object-position"] },
|
|
437
|
+
});
|
|
438
|
+
});
|
|
439
|
+
test("object-left", async () => {
|
|
440
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
441
|
+
props: {},
|
|
442
|
+
invalid: { properties: ["object-position"] },
|
|
443
|
+
});
|
|
444
|
+
});
|
|
445
|
+
test("object-left-bottom", async () => {
|
|
446
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
447
|
+
props: {},
|
|
448
|
+
invalid: { properties: ["object-position"] },
|
|
449
|
+
});
|
|
450
|
+
});
|
|
451
|
+
test("object-left-top", async () => {
|
|
452
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
453
|
+
props: {},
|
|
454
|
+
invalid: { properties: ["object-position"] },
|
|
455
|
+
});
|
|
456
|
+
});
|
|
457
|
+
test("object-right", async () => {
|
|
458
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
459
|
+
props: {},
|
|
460
|
+
invalid: { properties: ["object-position"] },
|
|
461
|
+
});
|
|
462
|
+
});
|
|
463
|
+
test("object-right-bottom", async () => {
|
|
464
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
465
|
+
props: {},
|
|
466
|
+
invalid: { properties: ["object-position"] },
|
|
467
|
+
});
|
|
468
|
+
});
|
|
469
|
+
test("object-right-top", async () => {
|
|
470
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
471
|
+
props: {},
|
|
472
|
+
invalid: { properties: ["object-position"] },
|
|
473
|
+
});
|
|
474
|
+
});
|
|
475
|
+
test("object-top", async () => {
|
|
476
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
477
|
+
props: {},
|
|
478
|
+
invalid: { properties: ["object-position"] },
|
|
479
|
+
});
|
|
480
|
+
});
|
|
481
|
+
});
|
|
482
|
+
|
|
483
|
+
describe("Layout - Overflow", () => {
|
|
484
|
+
test("overflow-auto", async () => {
|
|
485
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
486
|
+
props: {},
|
|
487
|
+
invalid: { style: { overflow: "auto" } },
|
|
488
|
+
});
|
|
489
|
+
});
|
|
490
|
+
test("overflow-clip", async () => {
|
|
491
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
492
|
+
props: {},
|
|
493
|
+
invalid: { style: { overflow: "clip" } },
|
|
494
|
+
});
|
|
495
|
+
});
|
|
496
|
+
test("overflow-scroll", async () => {
|
|
497
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
498
|
+
props: {},
|
|
499
|
+
invalid: { style: { overflow: "scroll" } },
|
|
500
|
+
});
|
|
501
|
+
});
|
|
502
|
+
test("overflow-x-auto", async () => {
|
|
503
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
504
|
+
props: {},
|
|
505
|
+
invalid: { properties: ["overflow-x"] },
|
|
506
|
+
});
|
|
507
|
+
});
|
|
508
|
+
test("overflow-y-auto", async () => {
|
|
509
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
510
|
+
props: {},
|
|
511
|
+
invalid: { properties: ["overflow-y"] },
|
|
512
|
+
});
|
|
513
|
+
});
|
|
514
|
+
test("overflow-x-hidden", async () => {
|
|
515
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
516
|
+
props: {},
|
|
517
|
+
invalid: { properties: ["overflow-x"] },
|
|
518
|
+
});
|
|
519
|
+
});
|
|
520
|
+
test("overflow-y-hidden", async () => {
|
|
521
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
522
|
+
props: {},
|
|
523
|
+
invalid: { properties: ["overflow-y"] },
|
|
524
|
+
});
|
|
525
|
+
});
|
|
526
|
+
test("overflow-x-clip", async () => {
|
|
527
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
528
|
+
props: {},
|
|
529
|
+
invalid: { properties: ["overflow-x"] },
|
|
530
|
+
});
|
|
531
|
+
});
|
|
532
|
+
test("overflow-y-clip", async () => {
|
|
533
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
534
|
+
props: {},
|
|
535
|
+
invalid: { properties: ["overflow-y"] },
|
|
536
|
+
});
|
|
537
|
+
});
|
|
538
|
+
test("overflow-x-visible", async () => {
|
|
539
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
540
|
+
props: {},
|
|
541
|
+
invalid: { properties: ["overflow-x"] },
|
|
542
|
+
});
|
|
543
|
+
});
|
|
544
|
+
test("overflow-y-visible", async () => {
|
|
545
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
546
|
+
props: {},
|
|
547
|
+
invalid: { properties: ["overflow-y"] },
|
|
548
|
+
});
|
|
549
|
+
});
|
|
550
|
+
test("overflow-x-scroll", async () => {
|
|
551
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
552
|
+
props: {},
|
|
553
|
+
invalid: { properties: ["overflow-x"] },
|
|
554
|
+
});
|
|
555
|
+
});
|
|
556
|
+
test("overflow-y-scroll", async () => {
|
|
557
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
558
|
+
props: {},
|
|
559
|
+
invalid: { properties: ["overflow-y"] },
|
|
560
|
+
});
|
|
561
|
+
});
|
|
562
|
+
test("overflow-hidden", async () => {
|
|
563
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
564
|
+
props: { style: { overflow: "hidden" } },
|
|
565
|
+
});
|
|
566
|
+
});
|
|
567
|
+
test("overflow-visible", async () => {
|
|
568
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
569
|
+
props: { style: { overflow: "visible" } },
|
|
570
|
+
});
|
|
571
|
+
});
|
|
572
|
+
});
|
|
573
|
+
|
|
574
|
+
describe("Layout - Overscroll Behavior", () => {
|
|
575
|
+
test("overscroll-auto", async () => {
|
|
576
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
577
|
+
props: {},
|
|
578
|
+
invalid: { properties: ["overscroll-behavior"] },
|
|
579
|
+
});
|
|
580
|
+
});
|
|
581
|
+
test("overscroll-contain", async () => {
|
|
582
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
583
|
+
props: {},
|
|
584
|
+
invalid: { properties: ["overscroll-behavior"] },
|
|
585
|
+
});
|
|
586
|
+
});
|
|
587
|
+
test("overscroll-none", async () => {
|
|
588
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
589
|
+
props: {},
|
|
590
|
+
invalid: { properties: ["overscroll-behavior"] },
|
|
591
|
+
});
|
|
592
|
+
});
|
|
593
|
+
test("overscroll-y-auto", async () => {
|
|
594
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
595
|
+
props: {},
|
|
596
|
+
invalid: { properties: ["overscroll-behavior-y"] },
|
|
597
|
+
});
|
|
598
|
+
});
|
|
599
|
+
test("overscroll-y-contain", async () => {
|
|
600
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
601
|
+
props: {},
|
|
602
|
+
invalid: { properties: ["overscroll-behavior-y"] },
|
|
603
|
+
});
|
|
604
|
+
});
|
|
605
|
+
test("overscroll-y-none", async () => {
|
|
606
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
607
|
+
props: {},
|
|
608
|
+
invalid: { properties: ["overscroll-behavior-y"] },
|
|
609
|
+
});
|
|
610
|
+
});
|
|
611
|
+
test("overscroll-x-auto", async () => {
|
|
612
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
613
|
+
props: {},
|
|
614
|
+
invalid: { properties: ["overscroll-behavior-x"] },
|
|
615
|
+
});
|
|
616
|
+
});
|
|
617
|
+
test("overscroll-x-contain", async () => {
|
|
618
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
619
|
+
props: {},
|
|
620
|
+
invalid: { properties: ["overscroll-behavior-x"] },
|
|
621
|
+
});
|
|
622
|
+
});
|
|
623
|
+
test("overscroll-x-none", async () => {
|
|
624
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
625
|
+
props: {},
|
|
626
|
+
invalid: { properties: ["overscroll-behavior-x"] },
|
|
627
|
+
});
|
|
628
|
+
});
|
|
629
|
+
});
|
|
630
|
+
|
|
631
|
+
describe("Layout - Position", () => {
|
|
632
|
+
test("absolute", async () => {
|
|
633
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
634
|
+
props: { style: { position: "absolute" } },
|
|
635
|
+
});
|
|
636
|
+
});
|
|
637
|
+
test("relative", async () => {
|
|
638
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
639
|
+
props: { style: { position: "relative" } },
|
|
640
|
+
});
|
|
641
|
+
});
|
|
642
|
+
test("static", async () => {
|
|
643
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
644
|
+
props: {},
|
|
645
|
+
invalid: { style: { position: "static" } },
|
|
646
|
+
});
|
|
647
|
+
});
|
|
648
|
+
test("fixed", async () => {
|
|
649
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
650
|
+
props: {},
|
|
651
|
+
invalid: { style: { position: "fixed" } },
|
|
652
|
+
});
|
|
653
|
+
});
|
|
654
|
+
test("sticky", async () => {
|
|
655
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
656
|
+
props: {},
|
|
657
|
+
invalid: { style: { position: "sticky" } },
|
|
658
|
+
});
|
|
659
|
+
});
|
|
660
|
+
});
|
|
661
|
+
|
|
662
|
+
describe("Layout - Top Right Bottom Left", () => {
|
|
663
|
+
test("top-0", async () => {
|
|
664
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
665
|
+
props: { style: { top: 0 } },
|
|
666
|
+
});
|
|
667
|
+
});
|
|
668
|
+
test("top-px", async () => {
|
|
669
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
670
|
+
props: { style: { top: 1 } },
|
|
671
|
+
});
|
|
672
|
+
});
|
|
673
|
+
test("top-1", async () => {
|
|
674
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
675
|
+
props: { style: { top: 3.5 } },
|
|
676
|
+
});
|
|
677
|
+
});
|
|
678
|
+
test("top-1/2", async () => {
|
|
679
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
680
|
+
props: { style: { top: "50%" } },
|
|
681
|
+
});
|
|
682
|
+
});
|
|
683
|
+
test("top-full", async () => {
|
|
684
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
685
|
+
props: { style: { top: "100%" } },
|
|
686
|
+
});
|
|
687
|
+
});
|
|
688
|
+
test("top-[10px]", async () => {
|
|
689
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
690
|
+
props: { style: { top: 10 } },
|
|
691
|
+
});
|
|
692
|
+
});
|
|
693
|
+
test("bottom-0", async () => {
|
|
694
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
695
|
+
props: { style: { bottom: 0 } },
|
|
696
|
+
});
|
|
697
|
+
});
|
|
698
|
+
test("bottom-px", async () => {
|
|
699
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
700
|
+
props: { style: { bottom: 1 } },
|
|
701
|
+
});
|
|
702
|
+
});
|
|
703
|
+
test("bottom-1", async () => {
|
|
704
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
705
|
+
props: { style: { bottom: 3.5 } },
|
|
706
|
+
});
|
|
707
|
+
});
|
|
708
|
+
test("bottom-1/2", async () => {
|
|
709
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
710
|
+
props: { style: { bottom: "50%" } },
|
|
711
|
+
});
|
|
712
|
+
});
|
|
713
|
+
test("bottom-full", async () => {
|
|
714
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
715
|
+
props: { style: { bottom: "100%" } },
|
|
716
|
+
});
|
|
717
|
+
});
|
|
718
|
+
test("bottom-[10px]", async () => {
|
|
719
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
720
|
+
props: { style: { bottom: 10 } },
|
|
721
|
+
});
|
|
722
|
+
});
|
|
723
|
+
test("left-0", async () => {
|
|
724
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
725
|
+
props: { style: { left: 0 } },
|
|
726
|
+
});
|
|
727
|
+
});
|
|
728
|
+
test("left-px", async () => {
|
|
729
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
730
|
+
props: { style: { left: 1 } },
|
|
731
|
+
});
|
|
732
|
+
});
|
|
733
|
+
test("left-1", async () => {
|
|
734
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
735
|
+
props: { style: { left: 3.5 } },
|
|
736
|
+
});
|
|
737
|
+
});
|
|
738
|
+
test("left-1/2", async () => {
|
|
739
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
740
|
+
props: { style: { left: "50%" } },
|
|
741
|
+
});
|
|
742
|
+
});
|
|
743
|
+
test("left-full", async () => {
|
|
744
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
745
|
+
props: { style: { left: "100%" } },
|
|
746
|
+
});
|
|
747
|
+
});
|
|
748
|
+
test("left-[10px]", async () => {
|
|
749
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
750
|
+
props: { style: { left: 10 } },
|
|
751
|
+
});
|
|
752
|
+
});
|
|
753
|
+
test("right-0", async () => {
|
|
754
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
755
|
+
props: { style: { right: 0 } },
|
|
756
|
+
});
|
|
757
|
+
});
|
|
758
|
+
test("right-px", async () => {
|
|
759
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
760
|
+
props: { style: { right: 1 } },
|
|
761
|
+
});
|
|
762
|
+
});
|
|
763
|
+
test("right-1", async () => {
|
|
764
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
765
|
+
props: { style: { right: 3.5 } },
|
|
766
|
+
});
|
|
767
|
+
});
|
|
768
|
+
test("right-1/2", async () => {
|
|
769
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
770
|
+
props: { style: { right: "50%" } },
|
|
771
|
+
});
|
|
772
|
+
});
|
|
773
|
+
test("right-full", async () => {
|
|
774
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
775
|
+
props: { style: { right: "100%" } },
|
|
776
|
+
});
|
|
777
|
+
});
|
|
778
|
+
test("right-[10px]", async () => {
|
|
779
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
780
|
+
props: { style: { right: 10 } },
|
|
781
|
+
});
|
|
782
|
+
});
|
|
783
|
+
test("inset-auto", async () => {
|
|
784
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
785
|
+
props: {},
|
|
786
|
+
invalid: {
|
|
787
|
+
style: { top: "auto", bottom: "auto", left: "auto", right: "auto" },
|
|
788
|
+
},
|
|
789
|
+
});
|
|
790
|
+
});
|
|
791
|
+
test("inset-x-auto", async () => {
|
|
792
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
793
|
+
props: {},
|
|
794
|
+
invalid: { style: { left: "auto", right: "auto" } },
|
|
795
|
+
});
|
|
796
|
+
});
|
|
797
|
+
test("inset-y-auto", async () => {
|
|
798
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
799
|
+
props: {},
|
|
800
|
+
invalid: { style: { top: "auto", bottom: "auto" } },
|
|
801
|
+
});
|
|
802
|
+
});
|
|
803
|
+
test("top-auto", async () => {
|
|
804
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
805
|
+
props: {},
|
|
806
|
+
invalid: { style: { top: "auto" } },
|
|
807
|
+
});
|
|
808
|
+
});
|
|
809
|
+
test("right-auto", async () => {
|
|
810
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
811
|
+
props: {},
|
|
812
|
+
invalid: { style: { right: "auto" } },
|
|
813
|
+
});
|
|
814
|
+
});
|
|
815
|
+
test("bottom-auto", async () => {
|
|
816
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
817
|
+
props: {},
|
|
818
|
+
invalid: { style: { bottom: "auto" } },
|
|
819
|
+
});
|
|
820
|
+
});
|
|
821
|
+
test("left-auto", async () => {
|
|
822
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
823
|
+
props: {},
|
|
824
|
+
invalid: { style: { left: "auto" } },
|
|
825
|
+
});
|
|
826
|
+
});
|
|
827
|
+
});
|
|
828
|
+
|
|
829
|
+
describe("Layout - Visibility", () => {
|
|
830
|
+
test("visible", async () => {
|
|
831
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
832
|
+
props: { style: { opacity: 1 } },
|
|
833
|
+
});
|
|
834
|
+
});
|
|
835
|
+
test("invisible", async () => {
|
|
836
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
837
|
+
props: { style: { opacity: 0 } },
|
|
838
|
+
});
|
|
839
|
+
});
|
|
840
|
+
});
|
|
841
|
+
|
|
842
|
+
describe("Layout - Z-Index", () => {
|
|
843
|
+
test("z-auto", async () => {
|
|
844
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
845
|
+
props: {},
|
|
846
|
+
invalid: { style: { "z-index": "auto" } },
|
|
847
|
+
});
|
|
848
|
+
});
|
|
849
|
+
test("z-0", async () => {
|
|
850
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
851
|
+
props: { style: { zIndex: 0 } },
|
|
852
|
+
});
|
|
853
|
+
});
|
|
854
|
+
});
|