-
Notifications
You must be signed in to change notification settings - Fork 1
/
.tape.js
141 lines (122 loc) · 3.52 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
const source000 = `:root {
--SystemType: systsem-ui;
--SystemMonoType: ui-monospace;
cursor: default;
line-height: 1.5;
overflow-wrap: break-word;
-moz-tab-size: 4;
tab-size: 4;
-webkit-tap-highlight-color: transparent;
-webkit-text-size-adjust: 100%;
}`
const source001 = `.actions a {
display: inline-block;
/* Layout */
align-self: center;
inline-size: 35--step;
/* Text */
text-align: end;
white-space: nowrap;
color: var(--Orange600Color);
--color: Orange;
}`
const expect001 = `.actions a {
display: inline-block;
/* Layout */
align-self: center;
inline-size: 35--step;
/* Text */
text-align: end;
white-space: nowrap;
/* Appearance */
color: var(--Orange600Color);
--color: Orange;
}`
const source002 = `.example {
align-self: center;
display: inline-block;
inline-size: 8.75em;
white-space: nowrap;
text-align: end;
color: var(--Orange600Color);
}`
const source003 = `.aside::before {
background-position: top 1rem center;
background-repeat: no-repeat;
border-end-start-radius: 0.375rem;
border-start-start-radius: 0.375rem;
content: "";
width: 0.875em;
}`
const source004 = `.visually-hidden {
all: unset !important;
clip-path: inset(50%) !important;
height: 1px !important;
margin: -1px !important;
pointer-events: none !important;
position: fixed !important;
width: 1px !important;
}`
const expect004 = `.visually-hidden {
all: unset !important;
position: fixed !important;
/* Layout */
clip-path: inset(50%) !important;
height: 1px !important;
margin: -1px !important;
width: 1px !important;
/* Behavior */
pointer-events: none !important;
}`
module.exports = {
'csstools/devtool-prop-order': [
{
source: source000,
expect: ``,
},
// {
// source: source001,
// warnings: [
// 'Expected an empty line before property "color" (order/properties-order)',
// ],
// },
// {
// source: source001,
// expect: expect001,
// },
// {
// source: source002,
// warnings: [
// `Expected "display" to come before "align-self" in group "Display" (order/properties-order)`,
// `Expected "text-align" to come before "white-space" in group "Text" (order/properties-order)`,
// `Expected an empty line before property "display" (order/properties-order)`,
// `Expected an empty line before property "inline-size" (order/properties-order)`,
// `Expected an empty line before property "color" (order/properties-order)`,
// ],
// },
// {
// source: source003,
// warnings: [
// `Expected "content" to come before "border-start-start-radius" in group "Generated" (order/properties-order)`,
// `Expected "width" to come before "content" in group "Layout" (order/properties-order)`,
// `Expected an empty line before property "border-end-start-radius" (order/properties-order)`,
// `Expected an empty line before property "content" (order/properties-order)`,
// `Expected an empty line before property "width" (order/properties-order)`,
// ],
// },
// {
// source: source004,
// warnings: [
// `Expected "position" to come before "pointer-events" in group "Display" (order/properties-order)`,
// `Expected an empty line before property "clip-path" (order/properties-order)`,
// `Expected an empty line before property "pointer-events" (order/properties-order)`,
// `Expected an empty line before property "position" (order/properties-order)`,
// `Expected an empty line before property "width" (order/properties-order)`,
// ],
// },
// {
// source: source004,
// expect: expect004,
// },
]
};