/
linear-gradient.ts
66 lines (60 loc) · 1.54 KB
/
linear-gradient.ts
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
/*auto generated*/
describe('linear-gradient', () => {
it('1', async () => {
let gradient;
gradient = createElement('div', {
id: 'gradient',
style: {
width: '400px',
height: '300px',
'background-image': 'linear-gradient(to right, black 0%, red, gold)',
'box-sizing': 'border-box',
},
});
BODY.appendChild(gradient);
await snapshot();
});
it('2', async () => {
let gradient;
gradient = createElement('div', {
id: 'gradient',
style: {
width: '400px',
height: '300px',
'background-image': 'linear-gradient(to right, black, red, gold)',
'box-sizing': 'border-box',
},
});
BODY.appendChild(gradient);
await snapshot();
});
it('3 linear-gradient with many right brackets', async () => {
let gradient;
gradient = createElement('div', {
id: 'gradient',
style: {
width: '400px',
height: '300px',
'background-image': 'linear-gradient(to right, rgba(35, 35, 35, 0.8), rgba(35, 35, 35, 0.1))',
'box-sizing': 'border-box',
},
});
BODY.appendChild(gradient);
await snapshot();
});
it('ref', async () => {
let gradient;
gradient = createElement('div', {
id: 'gradient',
style: {
width: '400px',
height: '300px',
'background-image':
'linear-gradient(to right, black 0%, red 50%, gold 100%)',
'box-sizing': 'border-box',
},
});
BODY.appendChild(gradient);
await snapshot();
});
});