-
-
Notifications
You must be signed in to change notification settings - Fork 85
Expand file tree
/
Copy path_tape.mjs
More file actions
91 lines (90 loc) · 2.33 KB
/
_tape.mjs
File metadata and controls
91 lines (90 loc) · 2.33 KB
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
import { postcssTape } from '@csstools/postcss-tape';
import plugin from '@csstools/postcss-cascade-layers';
import postcssBundler from '@csstools/postcss-bundler';
postcssTape(plugin)({
basic: {
message: 'supports basic usage',
},
atrules: {
message: 'supports @keyframes usage',
},
'container-scope--reference': {
message: 'Layered styles without @container or @scope but with the same layers and layer order as the @container/@scope test',
},
'container-scope': {
message: 'Layered styles with @container or @scope, these at rules are expected not to have any effect on the final order or specificity',
},
nested: {
message: 'supports nested layer usage',
},
'nested-case-insensitive': {
message: 'supports layer and other keywords written in any case',
},
'nested-complex': {
message: 'supports nested layer usage',
},
important: {
message: 'supports important usage',
},
'anon-layer': {
message: 'supports anonymous layer usage',
},
'invalid-nested-css': {
message: 'ignores nested css',
},
'extensions': {
message: 'css custom extensions',
},
'pre-defined-order-for-nested-layer': {
message: 'supports pre-defined orders for nested layers',
},
'unlayered-styles': {
message: 'supports unlayered styles alongside layers',
},
'invalid-rules': {
message: 'correctly handles invalid rules',
},
'warnings-ignored': {
message: 'correctly ignored warnings',
options: {
onRevertLayerKeyword: false,
onConditionalRulesChangingLayerOrder: false,
onImportLayerRule: false,
},
warnings: 0,
},
'warnings': {
message: 'correctly handles warnings',
options: {
onRevertLayerKeyword: 'warn',
onConditionalRulesChangingLayerOrder: 'warn',
onImportLayerRule: 'warn',
},
warnings: 4,
},
'warnings:with-postcss-import': {
message: 'correctly handles warnings when postcss-import is used',
options: {
onRevertLayerKeyword: 'warn',
onConditionalRulesChangingLayerOrder: 'warn',
onImportLayerRule: 'warn',
},
warnings: 2,
plugins: [
postcssBundler(),
plugin(),
],
},
'where': {
message: 'works with zero specificity selectors',
},
'specificity-buckets-a': {
message: 'creates non overlapping specificity buckets',
},
'specificity-buckets-b': {
message: 'creates non overlapping specificity buckets',
},
'examples/example': {
message: 'minimal example',
},
});