/
atKeywords.js
56 lines (52 loc) · 940 Bytes
/
atKeywords.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
'use strict';
const uniteSets = require('../utils/uniteSets.js');
// https://www.w3.org/TR/css-page-3/#syntax-page-selector
const pageMarginAtKeywords = new Set([
'top-left-corner',
'top-left',
'top-center',
'top-right',
'top-right-corner',
'bottom-left-corner',
'bottom-left',
'bottom-center',
'bottom-right',
'bottom-right-corner',
'left-top',
'left-middle',
'left-bottom',
'right-top',
'right-middle',
'right-bottom',
]);
// https://developer.mozilla.org/en/docs/Web/CSS/At-rule
const atKeywords = uniteSets(pageMarginAtKeywords, [
'annotation',
'apply',
'character-variant',
'charset',
'container',
'counter-style',
'custom-media',
'custom-selector',
'document',
'font-face',
'font-feature-values',
'import',
'keyframes',
'layer',
'media',
'namespace',
'nest',
'ornaments',
'page',
'property',
'styleset',
'stylistic',
'supports',
'swash',
'viewport',
]);
module.exports = {
atKeywords,
};