-
Notifications
You must be signed in to change notification settings - Fork 9
/
.tape.js
218 lines (218 loc) · 5.71 KB
/
.tape.js
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
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
module.exports = {
'csstools/use-logical': [{
source: 'body { left: 0 }',
args: 'always',
warnings: 1,
}, {
source: 'body { left: 0 }',
args: [ 'always', { except: 'left' }],
warnings: 0,
}, {
source: 'body { top: -4px; left: 0; }',
args: 'always',
warnings: 2,
}, {
source: 'body { top: -4px; left: 0; }',
args: ['always', { except: 'top' }],
warnings: 1,
}, {
source: 'body { top: -4px; left: 0; }',
args: ['always', { except: 'left' }],
warnings: 1,
}, {
source: 'body { top: -4px; left: 0; }',
args: ['always', { except: ['top', 'left'] }],
warnings: 0,
}, {
source: 'body { margin-top: 0.5rem; margin-bottom: 0.5rem; }',
args: ['always', { except: ['margin-top'] }],
warnings: 1,
}, {
source: 'body { margin-top: 0.5rem; margin-bottom: 0.5rem; }',
args: ['always', { except: ['margin-top', 'margin-bottom'] }],
warnings: 0,
}, {
source: 'body { top: 0; left: 0 }',
args: 'always',
warnings: 2
}, {
source: 'body { border-left: 0; left: 0 }',
args: 'always',
warnings: 2
}, {
source: 'body { top: 0; margin-left: 0 }',
args: 'always',
warnings: 2
}, {
source: 'body { top: 0; margin-left: 0 }',
args: [ 'always', { except: [ 'top', /^margin/ ] }],
warnings: 0
}, {
source: 'body { padding-left: 0; margin-right: 0 }',
args: 'always',
warnings: 2,
}, {
source: 'body { clear: left }',
args: 'always',
warnings: 1,
}, {
source: 'body { float: left }',
args: 'always',
warnings: 1,
}, {
source: 'body { text-align: left }',
args: 'always',
warnings: 1,
}, {
source: 'body:dir(ltr) { top: 0; margin-left: 0; float: left }',
args: 'always',
warnings: 0
}, {
source: 'body { left: 0 }',
expect: 'body { inset-inline-start: 0 }',
args: 'always'
}, {
source: 'body { left: 0; right: 0 }',
expect: 'body { inset-inline: 0 }',
args: 'always'
}, {
source: 'body { top: 0; right: 0; bottom: 0; left: 0 }',
expect: 'body { inset: 0 }',
args: 'always'
}, {
source: 'body { margin-top: 0; margin-right: 0; margin-left: 0 }',
expect: 'body { margin-block-start: 0; margin-inline: 0 }',
args: 'always'
}, {
source: 'body { margin-left: 0; }',
expect: 'body { margin-inline-start: 0; }',
args: 'always'
}, {
source: 'body { clear: left }',
expect: 'body { clear: inline-start }',
args: 'always'
}, {
source: 'body { float: right }',
expect: 'body { float: inline-end }',
args: 'always'
}, {
source: 'body { text-align: left }',
expect: 'body { text-align: start }',
args: 'always'
}, {
source: 'body:dir(ltr) { text-align: left }',
expect: 'body:dir(ltr) { text-align: left }',
args: [ 'always' ]
}, {
source: 'body { float: left; text-align: left }',
expect: 'body { float: left; text-align: start }',
args: [ 'always', {
except: [ /^float$/i ]
}]
}, {
source: 'body { width: 0; }',
expect: 'body { inline-size: 0; }',
args: 'always'
}, {
source: 'body { min-width: 0; }',
expect: 'body { min-inline-size: 0; }',
args: 'always'
}, {
source: 'body { max-width: 0; }',
expect: 'body { max-inline-size: 0; }',
args: 'always'
}, {
source: 'body { height: 0; }',
expect: 'body { block-size: 0; }',
args: 'always'
}, {
source: 'body { min-height: 0; }',
expect: 'body { min-block-size: 0; }',
args: 'always'
}, {
source: 'body { max-height: 0; }',
expect: 'body { max-block-size: 0; }',
args: 'always'
}, {
source: 'body { border-left: 0; }',
expect: 'body { border-inline-start: 0; }',
args: 'always'
}, {
source: 'body { border-right: 0; }',
expect: 'body { border-inline-end: 0; }',
args: 'always'
}, {
source: 'body { border-top: 0; }',
expect: 'body { border-block-start: 0; }',
args: 'always'
}, {
source: 'body { border-bottom: 0; }',
expect: 'body { border-block-end: 0; }',
args: 'always'
}, {
source: 'body { border-left-color: 0; }',
expect: 'body { border-inline-start-color: 0; }',
args: 'always'
}, {
source: 'body { border-right-color: 0; }',
expect: 'body { border-inline-end-color: 0; }',
args: 'always'
}, {
source: 'body { border-top-color: 0; }',
expect: 'body { border-block-start-color: 0; }',
args: 'always'
}, {
source: 'body { border-bottom-color: 0; }',
expect: 'body { border-block-end-color: 0; }',
args: 'always'
}, {
source: 'body { border-left-style: 0; }',
expect: 'body { border-inline-start-style: 0; }',
args: 'always'
}, {
source: 'body { border-right-style: 0; }',
expect: 'body { border-inline-end-style: 0; }',
args: 'always'
}, {
source: 'body { border-top-style: 0; }',
expect: 'body { border-block-start-style: 0; }',
args: 'always'
}, {
source: 'body { border-bottom-style: 0; }',
expect: 'body { border-block-end-style: 0; }',
args: 'always'
}, {
source: 'body { border-left-width: 0; }',
expect: 'body { border-inline-start-width: 0; }',
args: 'always'
}, {
source: 'body { border-right-width: 0; }',
expect: 'body { border-inline-end-width: 0; }',
args: 'always'
}, {
source: 'body { border-top-width: 0; }',
expect: 'body { border-block-start-width: 0; }',
args: 'always'
}, {
source: 'body { border-bottom-width: 0; }',
expect: 'body { border-block-end-width: 0; }',
args: 'always'
}, {
source: 'body { border-top-left-radius: 0; }',
expect: 'body { border-start-start-radius: 0; }',
args: 'always'
}, {
source: 'body { border-top-right-radius: 0; }',
expect: 'body { border-start-end-radius: 0; }',
args: 'always'
}, {
source: 'body { border-bottom-left-radius: 0; }',
expect: 'body { border-end-start-radius: 0; }',
args: 'always'
}, {
source: 'body { border-bottom-right-radius: 0; }',
expect: 'body { border-end-end-radius: 0; }',
args: 'always'
}
]
};