@webstudio-is/css-data 0.60.0 → 0.61.0
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/lib/__generated__/keyword-values.js +2 -2
- package/lib/__generated__/properties.js +14 -14
- package/lib/cjs/__generated__/keyword-values.js +2 -2
- package/lib/cjs/__generated__/properties.js +14 -14
- package/lib/cjs/html-check.js +2 -0
- package/lib/cjs/html.js +521 -0
- package/lib/cjs/index.js +19 -0
- package/lib/html-check.js +1 -0
- package/lib/html.js +501 -0
- package/lib/index.js +5 -0
- package/lib/types/src/__generated__/keyword-values.d.ts +1 -1
- package/lib/types/src/__generated__/properties.d.ts +14 -14
- package/lib/types/src/html-check.d.ts +1 -0
- package/lib/types/src/html.d.ts +53 -0
- package/lib/types/src/index.d.ts +2 -0
- package/lib/types/src/schema.d.ts +124 -124
- package/package.json +3 -2
- package/src/__generated__/keyword-values.ts +2 -2
- package/src/__generated__/properties.ts +14 -14
- package/src/html-check.ts +8 -0
- package/src/html.ts +545 -0
- package/src/index.ts +4 -0
package/lib/html.js
ADDED
|
@@ -0,0 +1,501 @@
|
|
|
1
|
+
const displayBlock = {
|
|
2
|
+
property: "display",
|
|
3
|
+
value: { type: "keyword", value: "block" }
|
|
4
|
+
};
|
|
5
|
+
const mt1em = {
|
|
6
|
+
property: "marginTop",
|
|
7
|
+
value: { type: "unit", value: 1, unit: "em" }
|
|
8
|
+
};
|
|
9
|
+
const mb1em = {
|
|
10
|
+
property: "marginBottom",
|
|
11
|
+
value: { type: "unit", value: 1, unit: "em" }
|
|
12
|
+
};
|
|
13
|
+
const ml40px = {
|
|
14
|
+
property: "marginLeft",
|
|
15
|
+
value: { type: "unit", value: 40, unit: "px" }
|
|
16
|
+
};
|
|
17
|
+
const mr40px = {
|
|
18
|
+
property: "marginRight",
|
|
19
|
+
value: { type: "unit", value: 40, unit: "px" }
|
|
20
|
+
};
|
|
21
|
+
const pl40px = {
|
|
22
|
+
property: "paddingLeft",
|
|
23
|
+
value: { type: "unit", value: 40, unit: "px" }
|
|
24
|
+
};
|
|
25
|
+
const fontWeightBold = {
|
|
26
|
+
property: "fontWeight",
|
|
27
|
+
// in browsers defined as bold
|
|
28
|
+
// though builder accepts only numeric values
|
|
29
|
+
value: { type: "keyword", value: "700" }
|
|
30
|
+
};
|
|
31
|
+
const fontStyleItalic = {
|
|
32
|
+
property: "fontStyle",
|
|
33
|
+
value: { type: "keyword", value: "italic" }
|
|
34
|
+
};
|
|
35
|
+
const pt1px = {
|
|
36
|
+
property: "paddingTop",
|
|
37
|
+
value: { type: "unit", value: 1, unit: "px" }
|
|
38
|
+
};
|
|
39
|
+
const pr1px = {
|
|
40
|
+
property: "paddingRight",
|
|
41
|
+
value: { type: "unit", value: 1, unit: "px" }
|
|
42
|
+
};
|
|
43
|
+
const pb1px = {
|
|
44
|
+
property: "paddingBottom",
|
|
45
|
+
value: { type: "unit", value: 1, unit: "px" }
|
|
46
|
+
};
|
|
47
|
+
const pl1px = {
|
|
48
|
+
property: "paddingLeft",
|
|
49
|
+
value: { type: "unit", value: 1, unit: "px" }
|
|
50
|
+
};
|
|
51
|
+
const article = [displayBlock];
|
|
52
|
+
const body = [
|
|
53
|
+
displayBlock,
|
|
54
|
+
{
|
|
55
|
+
property: "marginTop",
|
|
56
|
+
value: { type: "unit", value: 8, unit: "px" }
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
property: "marginRight",
|
|
60
|
+
value: { type: "unit", value: 8, unit: "px" }
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
property: "marginBottom",
|
|
64
|
+
value: { type: "unit", value: 8, unit: "px" }
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
property: "marginLeft",
|
|
68
|
+
value: { type: "unit", value: 8, unit: "px" }
|
|
69
|
+
}
|
|
70
|
+
];
|
|
71
|
+
const p = [displayBlock, mt1em, mb1em];
|
|
72
|
+
const dd = [displayBlock, ml40px];
|
|
73
|
+
const blockquote = [displayBlock, mt1em, mb1em, ml40px, mr40px];
|
|
74
|
+
const address = [displayBlock, fontStyleItalic];
|
|
75
|
+
const h1 = [
|
|
76
|
+
displayBlock,
|
|
77
|
+
fontWeightBold,
|
|
78
|
+
{
|
|
79
|
+
property: "fontSize",
|
|
80
|
+
value: { type: "unit", value: 2, unit: "em" }
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
property: "marginTop",
|
|
84
|
+
value: { type: "unit", value: 0.67, unit: "em" }
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
property: "marginBottom",
|
|
88
|
+
value: { type: "unit", value: 0.67, unit: "em" }
|
|
89
|
+
}
|
|
90
|
+
];
|
|
91
|
+
const h2 = [
|
|
92
|
+
displayBlock,
|
|
93
|
+
fontWeightBold,
|
|
94
|
+
{
|
|
95
|
+
property: "fontSize",
|
|
96
|
+
value: { type: "unit", value: 1.5, unit: "em" }
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
property: "marginTop",
|
|
100
|
+
value: { type: "unit", value: 0.83, unit: "em" }
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
property: "marginBottom",
|
|
104
|
+
value: { type: "unit", value: 0.83, unit: "em" }
|
|
105
|
+
}
|
|
106
|
+
];
|
|
107
|
+
const h3 = [
|
|
108
|
+
displayBlock,
|
|
109
|
+
fontWeightBold,
|
|
110
|
+
{
|
|
111
|
+
property: "fontSize",
|
|
112
|
+
value: { type: "unit", value: 1.17, unit: "em" }
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
property: "marginTop",
|
|
116
|
+
value: { type: "unit", value: 1, unit: "em" }
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
property: "marginBottom",
|
|
120
|
+
value: { type: "unit", value: 1, unit: "em" }
|
|
121
|
+
}
|
|
122
|
+
];
|
|
123
|
+
const h4 = [
|
|
124
|
+
displayBlock,
|
|
125
|
+
fontWeightBold,
|
|
126
|
+
{
|
|
127
|
+
property: "marginTop",
|
|
128
|
+
value: { type: "unit", value: 1.33, unit: "em" }
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
property: "marginBottom",
|
|
132
|
+
value: { type: "unit", value: 1.33, unit: "em" }
|
|
133
|
+
}
|
|
134
|
+
];
|
|
135
|
+
const h5 = [
|
|
136
|
+
displayBlock,
|
|
137
|
+
fontWeightBold,
|
|
138
|
+
{
|
|
139
|
+
property: "fontSize",
|
|
140
|
+
value: { type: "unit", value: 0.83, unit: "em" }
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
property: "marginTop",
|
|
144
|
+
value: { type: "unit", value: 1.67, unit: "em" }
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
property: "marginBottom",
|
|
148
|
+
value: { type: "unit", value: 1.67, unit: "em" }
|
|
149
|
+
}
|
|
150
|
+
];
|
|
151
|
+
const h6 = [
|
|
152
|
+
displayBlock,
|
|
153
|
+
fontWeightBold,
|
|
154
|
+
{
|
|
155
|
+
property: "fontSize",
|
|
156
|
+
value: { type: "unit", value: 0.67, unit: "em" }
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
property: "marginTop",
|
|
160
|
+
value: { type: "unit", value: 2.33, unit: "em" }
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
property: "marginBottom",
|
|
164
|
+
value: { type: "unit", value: 2.33, unit: "em" }
|
|
165
|
+
}
|
|
166
|
+
];
|
|
167
|
+
const pre = [
|
|
168
|
+
displayBlock,
|
|
169
|
+
{
|
|
170
|
+
property: "whiteSpace",
|
|
171
|
+
value: { type: "keyword", value: "pre" }
|
|
172
|
+
},
|
|
173
|
+
mt1em,
|
|
174
|
+
mb1em
|
|
175
|
+
];
|
|
176
|
+
const table = [
|
|
177
|
+
{
|
|
178
|
+
property: "display",
|
|
179
|
+
value: { type: "keyword", value: "table" }
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
property: "borderSpacing",
|
|
183
|
+
value: { type: "unit", value: 2, unit: "px" }
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
property: "borderCollapse",
|
|
187
|
+
value: { type: "keyword", value: "separate" }
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
property: "boxSizing",
|
|
191
|
+
value: { type: "keyword", value: "border-box" }
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
property: "borderSpacing",
|
|
195
|
+
value: { type: "unit", value: 0, unit: "number" }
|
|
196
|
+
}
|
|
197
|
+
];
|
|
198
|
+
const caption = [
|
|
199
|
+
{
|
|
200
|
+
property: "display",
|
|
201
|
+
value: { type: "keyword", value: "table" }
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
property: "textAlign",
|
|
205
|
+
value: { type: "keyword", value: "center" }
|
|
206
|
+
}
|
|
207
|
+
];
|
|
208
|
+
const tr = [
|
|
209
|
+
{
|
|
210
|
+
property: "display",
|
|
211
|
+
value: { type: "keyword", value: "table-row" }
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
property: "verticalAlign",
|
|
215
|
+
value: { type: "keyword", value: "inherit" }
|
|
216
|
+
}
|
|
217
|
+
];
|
|
218
|
+
const col = [
|
|
219
|
+
{
|
|
220
|
+
property: "display",
|
|
221
|
+
value: { type: "keyword", value: "table-column" }
|
|
222
|
+
}
|
|
223
|
+
];
|
|
224
|
+
const colgroup = [
|
|
225
|
+
{
|
|
226
|
+
property: "display",
|
|
227
|
+
value: { type: "keyword", value: "table-column-group" }
|
|
228
|
+
}
|
|
229
|
+
];
|
|
230
|
+
const tbody = [
|
|
231
|
+
{
|
|
232
|
+
property: "display",
|
|
233
|
+
value: { type: "keyword", value: "table-row-group" }
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
property: "verticalAlign",
|
|
237
|
+
value: { type: "keyword", value: "middle" }
|
|
238
|
+
}
|
|
239
|
+
];
|
|
240
|
+
const thead = [
|
|
241
|
+
{
|
|
242
|
+
property: "display",
|
|
243
|
+
value: { type: "keyword", value: "table-header-group" }
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
property: "verticalAlign",
|
|
247
|
+
value: { type: "keyword", value: "middle" }
|
|
248
|
+
}
|
|
249
|
+
];
|
|
250
|
+
const tfoot = [
|
|
251
|
+
{
|
|
252
|
+
property: "display",
|
|
253
|
+
value: { type: "keyword", value: "table-footer-group" }
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
property: "verticalAlign",
|
|
257
|
+
value: { type: "keyword", value: "middle" }
|
|
258
|
+
}
|
|
259
|
+
];
|
|
260
|
+
const td = [
|
|
261
|
+
{
|
|
262
|
+
property: "display",
|
|
263
|
+
value: { type: "keyword", value: "table-cell" }
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
property: "verticalAlign",
|
|
267
|
+
value: { type: "keyword", value: "inherit" }
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
property: "textAlign",
|
|
271
|
+
value: { type: "keyword", value: "unset" }
|
|
272
|
+
},
|
|
273
|
+
pt1px,
|
|
274
|
+
pr1px,
|
|
275
|
+
pb1px,
|
|
276
|
+
pl1px
|
|
277
|
+
];
|
|
278
|
+
const th = [
|
|
279
|
+
{
|
|
280
|
+
property: "display",
|
|
281
|
+
value: { type: "keyword", value: "table-cell" }
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
property: "verticalAlign",
|
|
285
|
+
value: { type: "keyword", value: "inherit" }
|
|
286
|
+
},
|
|
287
|
+
fontWeightBold,
|
|
288
|
+
pt1px,
|
|
289
|
+
pr1px,
|
|
290
|
+
pb1px,
|
|
291
|
+
pl1px
|
|
292
|
+
];
|
|
293
|
+
const b = [
|
|
294
|
+
// in firefox defined as bolder
|
|
295
|
+
fontWeightBold
|
|
296
|
+
];
|
|
297
|
+
const i = [fontStyleItalic];
|
|
298
|
+
const code = [
|
|
299
|
+
{
|
|
300
|
+
property: "fontFamily",
|
|
301
|
+
// in firefox defined as -moz-fixed
|
|
302
|
+
value: { type: "fontFamily", value: ["monospace"] }
|
|
303
|
+
}
|
|
304
|
+
];
|
|
305
|
+
const mark = [
|
|
306
|
+
{
|
|
307
|
+
property: "backgroundColor",
|
|
308
|
+
// in firefox defined as Mark
|
|
309
|
+
value: { type: "keyword", value: "yellow" }
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
property: "color",
|
|
313
|
+
// in firefox defined as MarkText
|
|
314
|
+
value: { type: "keyword", value: "black" }
|
|
315
|
+
}
|
|
316
|
+
];
|
|
317
|
+
const u = [
|
|
318
|
+
{
|
|
319
|
+
property: "textDecorationStyle",
|
|
320
|
+
value: { type: "keyword", value: "underline" }
|
|
321
|
+
}
|
|
322
|
+
];
|
|
323
|
+
const s = [
|
|
324
|
+
{
|
|
325
|
+
property: "textDecorationStyle",
|
|
326
|
+
value: { type: "keyword", value: "line-through" }
|
|
327
|
+
}
|
|
328
|
+
];
|
|
329
|
+
const sub = [
|
|
330
|
+
{
|
|
331
|
+
property: "verticalAlign",
|
|
332
|
+
value: { type: "keyword", value: "sub" }
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
property: "fontSize",
|
|
336
|
+
value: { type: "keyword", value: "smaller" }
|
|
337
|
+
}
|
|
338
|
+
];
|
|
339
|
+
const sup = [
|
|
340
|
+
{
|
|
341
|
+
property: "verticalAlign",
|
|
342
|
+
value: { type: "keyword", value: "super" }
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
property: "fontSize",
|
|
346
|
+
value: { type: "keyword", value: "smaller" }
|
|
347
|
+
}
|
|
348
|
+
];
|
|
349
|
+
const ul = [
|
|
350
|
+
displayBlock,
|
|
351
|
+
{
|
|
352
|
+
property: "listStyleType",
|
|
353
|
+
value: { type: "keyword", value: "disc" }
|
|
354
|
+
},
|
|
355
|
+
mt1em,
|
|
356
|
+
mb1em,
|
|
357
|
+
pl40px
|
|
358
|
+
];
|
|
359
|
+
const ol = [
|
|
360
|
+
displayBlock,
|
|
361
|
+
{
|
|
362
|
+
property: "listStyleType",
|
|
363
|
+
value: { type: "keyword", value: "decimal" }
|
|
364
|
+
},
|
|
365
|
+
mt1em,
|
|
366
|
+
mb1em,
|
|
367
|
+
pl40px
|
|
368
|
+
];
|
|
369
|
+
const li = [
|
|
370
|
+
{
|
|
371
|
+
property: "display",
|
|
372
|
+
value: { type: "keyword", value: "list-item" }
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
property: "textAlign",
|
|
376
|
+
value: { type: "keyword", value: "match-parent" }
|
|
377
|
+
}
|
|
378
|
+
];
|
|
379
|
+
const hr = [
|
|
380
|
+
{
|
|
381
|
+
property: "color",
|
|
382
|
+
value: { type: "keyword", value: "gray" }
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
property: "borderTopWidth",
|
|
386
|
+
value: { type: "unit", value: 1, unit: "px" }
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
property: "borderRightWidth",
|
|
390
|
+
value: { type: "unit", value: 1, unit: "px" }
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
property: "borderBottomWidth",
|
|
394
|
+
value: { type: "unit", value: 1, unit: "px" }
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
property: "borderLeftWidth",
|
|
398
|
+
value: { type: "unit", value: 1, unit: "px" }
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
property: "borderTopStyle",
|
|
402
|
+
value: { type: "keyword", value: "inset" }
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
property: "borderRightStyle",
|
|
406
|
+
value: { type: "keyword", value: "inset" }
|
|
407
|
+
},
|
|
408
|
+
{
|
|
409
|
+
property: "borderBottomStyle",
|
|
410
|
+
value: { type: "keyword", value: "inset" }
|
|
411
|
+
},
|
|
412
|
+
{
|
|
413
|
+
property: "borderLeftStyle",
|
|
414
|
+
value: { type: "keyword", value: "inset" }
|
|
415
|
+
},
|
|
416
|
+
{
|
|
417
|
+
property: "marginTop",
|
|
418
|
+
value: { type: "unit", value: 0.5, unit: "em" }
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
property: "marginBottom",
|
|
422
|
+
value: { type: "unit", value: 0.5, unit: "em" }
|
|
423
|
+
},
|
|
424
|
+
{
|
|
425
|
+
property: "marginLeft",
|
|
426
|
+
value: { type: "keyword", value: "auto" }
|
|
427
|
+
},
|
|
428
|
+
{
|
|
429
|
+
property: "marginRight",
|
|
430
|
+
value: { type: "keyword", value: "auto" }
|
|
431
|
+
},
|
|
432
|
+
// firefox only
|
|
433
|
+
{
|
|
434
|
+
property: "overflow",
|
|
435
|
+
value: { type: "keyword", value: "hidden" }
|
|
436
|
+
},
|
|
437
|
+
/* This is not really per spec but all browsers define it */
|
|
438
|
+
displayBlock
|
|
439
|
+
];
|
|
440
|
+
export {
|
|
441
|
+
address,
|
|
442
|
+
article,
|
|
443
|
+
article as aside,
|
|
444
|
+
b,
|
|
445
|
+
blockquote,
|
|
446
|
+
body,
|
|
447
|
+
caption,
|
|
448
|
+
i as cite,
|
|
449
|
+
code,
|
|
450
|
+
col,
|
|
451
|
+
colgroup,
|
|
452
|
+
dd,
|
|
453
|
+
s as del,
|
|
454
|
+
article as details,
|
|
455
|
+
i as dfn,
|
|
456
|
+
article as div,
|
|
457
|
+
p as dl,
|
|
458
|
+
article as dt,
|
|
459
|
+
i as em,
|
|
460
|
+
article as figcaption,
|
|
461
|
+
blockquote as figure,
|
|
462
|
+
article as footer,
|
|
463
|
+
article as form,
|
|
464
|
+
h1,
|
|
465
|
+
h2,
|
|
466
|
+
h3,
|
|
467
|
+
h4,
|
|
468
|
+
h5,
|
|
469
|
+
h6,
|
|
470
|
+
article as header,
|
|
471
|
+
article as hgroup,
|
|
472
|
+
hr,
|
|
473
|
+
article as html,
|
|
474
|
+
i,
|
|
475
|
+
u as ins,
|
|
476
|
+
code as kbd,
|
|
477
|
+
li,
|
|
478
|
+
article as main,
|
|
479
|
+
mark,
|
|
480
|
+
article as nav,
|
|
481
|
+
ol,
|
|
482
|
+
p,
|
|
483
|
+
pre,
|
|
484
|
+
s,
|
|
485
|
+
code as samp,
|
|
486
|
+
article as section,
|
|
487
|
+
b as strong,
|
|
488
|
+
sub,
|
|
489
|
+
article as summary,
|
|
490
|
+
sup,
|
|
491
|
+
table,
|
|
492
|
+
tbody,
|
|
493
|
+
td,
|
|
494
|
+
tfoot,
|
|
495
|
+
th,
|
|
496
|
+
thead,
|
|
497
|
+
tr,
|
|
498
|
+
u,
|
|
499
|
+
ul,
|
|
500
|
+
i as var
|
|
501
|
+
};
|
package/lib/index.js
CHANGED
|
@@ -139,7 +139,7 @@ export declare const keywordValues: {
|
|
|
139
139
|
readonly fontVariantLigatures: readonly ["normal", "none", "common-ligatures", "no-common-ligatures", "discretionary-ligatures", "no-discretionary-ligatures", "historical-ligatures", "no-historical-ligatures", "contextual", "no-contextual", "initial", "inherit", "unset"];
|
|
140
140
|
readonly fontVariantNumeric: readonly ["normal", "lining-nums", "oldstyle-nums", "proportional-nums", "tabular-nums", "diagonal-fractions", "stacked-fractions", "ordinal", "slashed-zero", "initial", "inherit", "unset"];
|
|
141
141
|
readonly fontVariantPosition: readonly ["normal", "sub", "super", "initial", "inherit", "unset"];
|
|
142
|
-
readonly fontWeight: readonly ["
|
|
142
|
+
readonly fontWeight: readonly ["400", "700", "bolder", "lighter", "initial", "inherit", "unset"];
|
|
143
143
|
readonly forcedColorAdjust: readonly ["auto", "none", "initial", "inherit", "unset"];
|
|
144
144
|
readonly gridAutoColumns: readonly ["min-content", "max-content", "auto", "initial", "inherit", "unset"];
|
|
145
145
|
readonly gridAutoFlow: readonly ["row", "column", "dense", "initial", "inherit", "unset"];
|
|
@@ -329,7 +329,7 @@ export declare const properties: {
|
|
|
329
329
|
readonly inherited: false;
|
|
330
330
|
readonly initial: {
|
|
331
331
|
readonly type: "keyword";
|
|
332
|
-
readonly value: "
|
|
332
|
+
readonly value: "currentColor";
|
|
333
333
|
};
|
|
334
334
|
readonly popularity: 0.00012849;
|
|
335
335
|
readonly appliesTo: "allElements";
|
|
@@ -359,7 +359,7 @@ export declare const properties: {
|
|
|
359
359
|
readonly inherited: false;
|
|
360
360
|
readonly initial: {
|
|
361
361
|
readonly type: "keyword";
|
|
362
|
-
readonly value: "
|
|
362
|
+
readonly value: "currentColor";
|
|
363
363
|
};
|
|
364
364
|
readonly popularity: 0.00172099;
|
|
365
365
|
readonly appliesTo: "allElements";
|
|
@@ -389,7 +389,7 @@ export declare const properties: {
|
|
|
389
389
|
readonly inherited: false;
|
|
390
390
|
readonly initial: {
|
|
391
391
|
readonly type: "keyword";
|
|
392
|
-
readonly value: "
|
|
392
|
+
readonly value: "currentColor";
|
|
393
393
|
};
|
|
394
394
|
readonly popularity: 0.00170188;
|
|
395
395
|
readonly appliesTo: "allElements";
|
|
@@ -419,7 +419,7 @@ export declare const properties: {
|
|
|
419
419
|
readonly inherited: false;
|
|
420
420
|
readonly initial: {
|
|
421
421
|
readonly type: "keyword";
|
|
422
|
-
readonly value: "
|
|
422
|
+
readonly value: "currentColor";
|
|
423
423
|
};
|
|
424
424
|
readonly popularity: 0.42283564;
|
|
425
425
|
readonly appliesTo: "allElements";
|
|
@@ -556,7 +556,7 @@ export declare const properties: {
|
|
|
556
556
|
readonly inherited: false;
|
|
557
557
|
readonly initial: {
|
|
558
558
|
readonly type: "keyword";
|
|
559
|
-
readonly value: "
|
|
559
|
+
readonly value: "currentColor";
|
|
560
560
|
};
|
|
561
561
|
readonly popularity: 0.00007844;
|
|
562
562
|
readonly appliesTo: "allElements";
|
|
@@ -586,7 +586,7 @@ export declare const properties: {
|
|
|
586
586
|
readonly inherited: false;
|
|
587
587
|
readonly initial: {
|
|
588
588
|
readonly type: "keyword";
|
|
589
|
-
readonly value: "
|
|
589
|
+
readonly value: "currentColor";
|
|
590
590
|
};
|
|
591
591
|
readonly popularity: 0.00196849;
|
|
592
592
|
readonly appliesTo: "allElements";
|
|
@@ -616,7 +616,7 @@ export declare const properties: {
|
|
|
616
616
|
readonly inherited: false;
|
|
617
617
|
readonly initial: {
|
|
618
618
|
readonly type: "keyword";
|
|
619
|
-
readonly value: "
|
|
619
|
+
readonly value: "currentColor";
|
|
620
620
|
};
|
|
621
621
|
readonly popularity: 0.00196928;
|
|
622
622
|
readonly appliesTo: "allElements";
|
|
@@ -646,7 +646,7 @@ export declare const properties: {
|
|
|
646
646
|
readonly inherited: false;
|
|
647
647
|
readonly initial: {
|
|
648
648
|
readonly type: "keyword";
|
|
649
|
-
readonly value: "
|
|
649
|
+
readonly value: "currentColor";
|
|
650
650
|
};
|
|
651
651
|
readonly popularity: 0.30754028;
|
|
652
652
|
readonly appliesTo: "allElements";
|
|
@@ -676,7 +676,7 @@ export declare const properties: {
|
|
|
676
676
|
readonly inherited: false;
|
|
677
677
|
readonly initial: {
|
|
678
678
|
readonly type: "keyword";
|
|
679
|
-
readonly value: "
|
|
679
|
+
readonly value: "currentColor";
|
|
680
680
|
};
|
|
681
681
|
readonly popularity: 0.29336595;
|
|
682
682
|
readonly appliesTo: "allElements";
|
|
@@ -739,7 +739,7 @@ export declare const properties: {
|
|
|
739
739
|
readonly inherited: false;
|
|
740
740
|
readonly initial: {
|
|
741
741
|
readonly type: "keyword";
|
|
742
|
-
readonly value: "
|
|
742
|
+
readonly value: "currentColor";
|
|
743
743
|
};
|
|
744
744
|
readonly popularity: 0.43342948;
|
|
745
745
|
readonly appliesTo: "allElements";
|
|
@@ -982,7 +982,7 @@ export declare const properties: {
|
|
|
982
982
|
readonly inherited: false;
|
|
983
983
|
readonly initial: {
|
|
984
984
|
readonly type: "keyword";
|
|
985
|
-
readonly value: "
|
|
985
|
+
readonly value: "currentColor";
|
|
986
986
|
};
|
|
987
987
|
readonly popularity: 0.01356616;
|
|
988
988
|
readonly appliesTo: "multicolElements";
|
|
@@ -1424,7 +1424,7 @@ export declare const properties: {
|
|
|
1424
1424
|
readonly inherited: true;
|
|
1425
1425
|
readonly initial: {
|
|
1426
1426
|
readonly type: "keyword";
|
|
1427
|
-
readonly value: "
|
|
1427
|
+
readonly value: "400";
|
|
1428
1428
|
};
|
|
1429
1429
|
readonly popularity: 0.88598106;
|
|
1430
1430
|
readonly appliesTo: "allElements";
|
|
@@ -3105,7 +3105,7 @@ export declare const properties: {
|
|
|
3105
3105
|
readonly inherited: false;
|
|
3106
3106
|
readonly initial: {
|
|
3107
3107
|
readonly type: "keyword";
|
|
3108
|
-
readonly value: "
|
|
3108
|
+
readonly value: "currentColor";
|
|
3109
3109
|
};
|
|
3110
3110
|
readonly popularity: 0.05079903;
|
|
3111
3111
|
readonly appliesTo: "allElements";
|
|
@@ -3165,7 +3165,7 @@ export declare const properties: {
|
|
|
3165
3165
|
readonly inherited: false;
|
|
3166
3166
|
readonly initial: {
|
|
3167
3167
|
readonly type: "keyword";
|
|
3168
|
-
readonly value: "
|
|
3168
|
+
readonly value: "currentColor";
|
|
3169
3169
|
};
|
|
3170
3170
|
readonly popularity: 0;
|
|
3171
3171
|
readonly appliesTo: "allElements";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import type { htmlTags as HtmlTags } from "html-tags";
|
|
2
|
+
import type { StyleProperty, StyleValue } from "./schema";
|
|
3
|
+
type StyleDecl = {
|
|
4
|
+
property: StyleProperty;
|
|
5
|
+
value: StyleValue;
|
|
6
|
+
};
|
|
7
|
+
type Styles = StyleDecl[];
|
|
8
|
+
export type Html = {
|
|
9
|
+
[tag in HtmlTags]?: Styles;
|
|
10
|
+
};
|
|
11
|
+
export declare const article: Styles;
|
|
12
|
+
export { article as aside, article as details, article as div, article as dt, article as figcaption, article as footer, article as form, article as header, article as hgroup, article as html, article as main, article as nav, article as section, article as summary, };
|
|
13
|
+
export declare const body: Styles;
|
|
14
|
+
export declare const p: Styles;
|
|
15
|
+
export { p as dl };
|
|
16
|
+
export declare const dd: Styles;
|
|
17
|
+
export declare const blockquote: Styles;
|
|
18
|
+
export { blockquote as figure };
|
|
19
|
+
export declare const address: Styles;
|
|
20
|
+
export declare const h1: Styles;
|
|
21
|
+
export declare const h2: Styles;
|
|
22
|
+
export declare const h3: Styles;
|
|
23
|
+
export declare const h4: Styles;
|
|
24
|
+
export declare const h5: Styles;
|
|
25
|
+
export declare const h6: Styles;
|
|
26
|
+
export declare const pre: Styles;
|
|
27
|
+
export declare const table: Styles;
|
|
28
|
+
export declare const caption: Styles;
|
|
29
|
+
export declare const tr: Styles;
|
|
30
|
+
export declare const col: Styles;
|
|
31
|
+
export declare const colgroup: Styles;
|
|
32
|
+
export declare const tbody: Styles;
|
|
33
|
+
export declare const thead: Styles;
|
|
34
|
+
export declare const tfoot: Styles;
|
|
35
|
+
export declare const td: Styles;
|
|
36
|
+
export declare const th: Styles;
|
|
37
|
+
export declare const b: Styles;
|
|
38
|
+
export { b as strong };
|
|
39
|
+
export declare const i: Styles;
|
|
40
|
+
export { i as cite, i as em, i as var, i as dfn };
|
|
41
|
+
export declare const code: Styles;
|
|
42
|
+
export { code as kbd, code as samp };
|
|
43
|
+
export declare const mark: Styles;
|
|
44
|
+
export declare const u: Styles;
|
|
45
|
+
export { u as ins };
|
|
46
|
+
export declare const s: Styles;
|
|
47
|
+
export { s as del };
|
|
48
|
+
export declare const sub: Styles;
|
|
49
|
+
export declare const sup: Styles;
|
|
50
|
+
export declare const ul: Styles;
|
|
51
|
+
export declare const ol: Styles;
|
|
52
|
+
export declare const li: Styles;
|
|
53
|
+
export declare const hr: Styles;
|