@markuplint/types 3.0.0-alpha.2 → 3.0.0-alpha.27
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/README.md +12 -8
- package/lib/css-syntax.js +6 -6
- package/lib/defs.js +1 -0
- package/lib/get-candidate.d.ts +1 -1
- package/lib/token/token-collection.d.ts +2 -2
- package/lib/token/token-collection.js +47 -47
- package/lib/token/token.js +7 -7
- package/lib/types.d.ts +16 -16
- package/lib/types.schema.d.ts +5 -5
- package/package.json +7 -5
- package/patches/css-tree+2.3.1.patch +23 -0
- package/types.schema.json +67 -16
- package/gen/specific-schema.json +0 -98
- package/gen/types.ts +0 -66
- package/src/check-multi-types.ts +0 -35
- package/src/check.spec.ts +0 -83
- package/src/check.ts +0 -48
- package/src/css-syntax.spec.ts +0 -167
- package/src/css-syntax.ts +0 -188
- package/src/debug.ts +0 -3
- package/src/defs.ts +0 -810
- package/src/enum.ts +0 -25
- package/src/get-candidate.ts +0 -24
- package/src/index.ts +0 -3
- package/src/keyword-type.ts +0 -64
- package/src/list.spec.ts +0 -133
- package/src/list.ts +0 -34
- package/src/match-result.ts +0 -49
- package/src/number.ts +0 -46
- package/src/primitive/index.spec.ts +0 -65
- package/src/primitive/index.ts +0 -7
- package/src/primitive/is-float.ts +0 -8
- package/src/primitive/is-int.ts +0 -8
- package/src/primitive/is-non-zero-uint.ts +0 -8
- package/src/primitive/is-quantity.ts +0 -38
- package/src/primitive/is-uint.ts +0 -15
- package/src/primitive/range.ts +0 -14
- package/src/primitive/split-unit.ts +0 -20
- package/src/rfc/is-bcp-47.spec.ts +0 -23
- package/src/rfc/is-bcp-47.ts +0 -13
- package/src/token/index.ts +0 -2
- package/src/token/token-collection.spec.ts +0 -147
- package/src/token/token-collection.ts +0 -444
- package/src/token/token.ts +0 -144
- package/src/types.schema.ts +0 -1062
- package/src/types.ts +0 -118
- package/src/w3c/check-serialized-permissions-policy.spec.ts +0 -38
- package/src/w3c/check-serialized-permissions-policy.ts +0 -303
- package/src/whatwg/check-autocomplete.spec.ts +0 -387
- package/src/whatwg/check-autocomplete.ts +0 -380
- package/src/whatwg/check-datetime/date-string.ts +0 -44
- package/src/whatwg/check-datetime/datetime-tokens.ts +0 -600
- package/src/whatwg/check-datetime/duration-string.ts +0 -399
- package/src/whatwg/check-datetime/global-date-and-time-string.ts +0 -96
- package/src/whatwg/check-datetime/index.spec.ts +0 -333
- package/src/whatwg/check-datetime/index.ts +0 -36
- package/src/whatwg/check-datetime/local-date-and-time-string.ts +0 -163
- package/src/whatwg/check-datetime/month-string.ts +0 -31
- package/src/whatwg/check-datetime/time-string.ts +0 -49
- package/src/whatwg/check-datetime/time-zone-offset-string.ts +0 -93
- package/src/whatwg/check-datetime/week-string.ts +0 -41
- package/src/whatwg/check-datetime/year-string.ts +0 -26
- package/src/whatwg/check-datetime/yearless-date-string.ts +0 -38
- package/src/whatwg/check-mime-type.spec.ts +0 -59
- package/src/whatwg/check-mime-type.ts +0 -46
- package/src/whatwg/is-abs-url.spec.ts +0 -8
- package/src/whatwg/is-abs-url.ts +0 -31
- package/src/whatwg/is-browser-context-name.ts +0 -16
- package/src/whatwg/is-custom-element-name.ts +0 -76
- package/src/whatwg/is-itemprop-name.ts +0 -17
- package/tsconfig.test.json +0 -3
- package/tsconfig.tsbuildinfo +0 -1
package/README.md
CHANGED
|
@@ -1,18 +1,14 @@
|
|
|
1
1
|
# @markuplint/types
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/@markuplint/types)
|
|
4
|
-
[](https://travis-ci.org/markuplint/markuplint)
|
|
5
|
-
[](https://coveralls.io/github/markuplint/markuplint?branch=main)
|
|
6
4
|
|
|
7
|
-
|
|
5
|
+
**Type declaration and value checker**
|
|
8
6
|
|
|
9
|
-
|
|
10
|
-
$ npm install @markuplint/types
|
|
7
|
+
## Type declaration
|
|
11
8
|
|
|
12
|
-
|
|
13
|
-
```
|
|
9
|
+
- [types.schema.json](./types.schema.json)
|
|
14
10
|
|
|
15
|
-
##
|
|
11
|
+
## API
|
|
16
12
|
|
|
17
13
|
```ts
|
|
18
14
|
import { check } from '@markuplint/types';
|
|
@@ -100,3 +96,11 @@ check('2020-02-30', 'DateTime');
|
|
|
100
96
|
| `<number-optional-number>` | Some attributes for SVG | | ✅ |
|
|
101
97
|
|
|
102
98
|
In addition, you can use types **[CSSTree](https://github.com/csstree/csstree)** defined.
|
|
99
|
+
|
|
100
|
+
## Install
|
|
101
|
+
|
|
102
|
+
```shell
|
|
103
|
+
$ npm install @markuplint/types
|
|
104
|
+
|
|
105
|
+
$ yarn add @markuplint/types
|
|
106
|
+
```
|
package/lib/css-syntax.js
CHANGED
|
@@ -5,11 +5,11 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
// @ts-ignore
|
|
6
6
|
const css_tree_1 = tslib_1.__importDefault(require("css-tree"));
|
|
7
7
|
// @ts-ignore
|
|
8
|
-
const
|
|
8
|
+
const error_1 = require("css-tree/lexer/error");
|
|
9
9
|
// @ts-ignore
|
|
10
|
-
const
|
|
10
|
+
const match_1 = require("css-tree/lexer/match");
|
|
11
11
|
// @ts-ignore
|
|
12
|
-
const
|
|
12
|
+
const prepare_tokens_1 = tslib_1.__importDefault(require("css-tree/lexer/prepare-tokens"));
|
|
13
13
|
const debug_1 = require("./debug");
|
|
14
14
|
const defs_1 = require("./defs");
|
|
15
15
|
const match_result_1 = require("./match-result");
|
|
@@ -74,8 +74,8 @@ function cssSyntaxMatch(value, type) {
|
|
|
74
74
|
// eslint-disable-next-line no-console
|
|
75
75
|
console.warn = warn => (0, debug_1.log)('WARNING: %s (by %s => %s)', warn, value, type);
|
|
76
76
|
}
|
|
77
|
-
const tokens = (0,
|
|
78
|
-
const result = (0,
|
|
77
|
+
const tokens = (0, prepare_tokens_1.default)(value, lexer.syntax);
|
|
78
|
+
const result = (0, match_1.matchAsTree)(tokens, matcher.match, lexer);
|
|
79
79
|
if (caseSensitive) {
|
|
80
80
|
if (result.tokens && Array.isArray(result.tokens)) {
|
|
81
81
|
let reducer = 0;
|
|
@@ -99,7 +99,7 @@ function cssSyntaxMatch(value, type) {
|
|
|
99
99
|
}
|
|
100
100
|
return (0, match_result_1.matched)();
|
|
101
101
|
}
|
|
102
|
-
const error = new
|
|
102
|
+
const error = new error_1.SyntaxMatchError(result.reason, matcher.syntax, value, result);
|
|
103
103
|
if (caseSensitive) {
|
|
104
104
|
error.message = deMimicCases(error.message);
|
|
105
105
|
error.syntax = deMimicCases(error.syntax);
|
package/lib/defs.js
CHANGED
package/lib/get-candidate.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { UnmatchedResult } from '..';
|
|
2
2
|
import type { Expect, Result, List } from '../types';
|
|
3
3
|
import { Token } from './token';
|
|
4
|
-
|
|
4
|
+
type TokenCollectionOptions = Partial<Omit<List, 'token'> & {
|
|
5
5
|
specificSeparator: string | string[];
|
|
6
6
|
}>;
|
|
7
|
-
export
|
|
7
|
+
export type TokenEachCheck = (head: Token | null, tail: TokenCollection) => Result | void;
|
|
8
8
|
export declare class TokenCollection extends Array<Token> {
|
|
9
9
|
static fromPatterns(value: Token | string, patterns: RegExp[], typeOptions?: Omit<TokenCollectionOptions, 'specificSeparator'> & {
|
|
10
10
|
repeat?: boolean;
|
|
@@ -4,6 +4,52 @@ exports.TokenCollection = void 0;
|
|
|
4
4
|
const match_result_1 = require("../match-result");
|
|
5
5
|
const token_1 = require("./token");
|
|
6
6
|
class TokenCollection extends Array {
|
|
7
|
+
static fromPatterns(value, patterns, typeOptions) {
|
|
8
|
+
const origin = typeof value === 'string' ? value : value.origin;
|
|
9
|
+
let strings = typeof value === 'string' ? value : value.value;
|
|
10
|
+
let cumulativeOffset = typeof value === 'string' ? 0 : value.offset;
|
|
11
|
+
const tokens = [];
|
|
12
|
+
function addToken(tokenValue) {
|
|
13
|
+
const token = new token_1.Token(tokenValue, cumulativeOffset, origin);
|
|
14
|
+
tokens.push(token);
|
|
15
|
+
strings = strings.slice(tokenValue.length);
|
|
16
|
+
cumulativeOffset += tokenValue.length;
|
|
17
|
+
return token;
|
|
18
|
+
}
|
|
19
|
+
let isBroken = false;
|
|
20
|
+
do {
|
|
21
|
+
isBroken = false;
|
|
22
|
+
for (const pattern of patterns) {
|
|
23
|
+
const res = pattern.exec(strings);
|
|
24
|
+
let value;
|
|
25
|
+
if (!res) {
|
|
26
|
+
isBroken = true;
|
|
27
|
+
value = '';
|
|
28
|
+
}
|
|
29
|
+
else {
|
|
30
|
+
if (res.index !== 0) {
|
|
31
|
+
value = strings.slice(res.index + res[0].length);
|
|
32
|
+
}
|
|
33
|
+
else {
|
|
34
|
+
value = res[0] || '';
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
const token = addToken(value);
|
|
38
|
+
// @ts-ignore
|
|
39
|
+
token._ = pattern;
|
|
40
|
+
}
|
|
41
|
+
if (isBroken) {
|
|
42
|
+
addToken(strings);
|
|
43
|
+
}
|
|
44
|
+
} while ((typeOptions === null || typeOptions === void 0 ? void 0 : typeOptions.repeat) && strings);
|
|
45
|
+
if (strings) {
|
|
46
|
+
addToken(strings);
|
|
47
|
+
}
|
|
48
|
+
return TokenCollection._new(tokens, new TokenCollection('', typeOptions));
|
|
49
|
+
}
|
|
50
|
+
static get [Symbol.species]() {
|
|
51
|
+
return Array;
|
|
52
|
+
}
|
|
7
53
|
constructor(value, typeOptions) {
|
|
8
54
|
super();
|
|
9
55
|
this.disallowToSurroundBySpaces = (typeOptions === null || typeOptions === void 0 ? void 0 : typeOptions.disallowToSurroundBySpaces) || false;
|
|
@@ -60,52 +106,6 @@ class TokenCollection extends Array {
|
|
|
60
106
|
offset += v.length;
|
|
61
107
|
});
|
|
62
108
|
}
|
|
63
|
-
static fromPatterns(value, patterns, typeOptions) {
|
|
64
|
-
const origin = typeof value === 'string' ? value : value.origin;
|
|
65
|
-
let strings = typeof value === 'string' ? value : value.value;
|
|
66
|
-
let cumulativeOffset = typeof value === 'string' ? 0 : value.offset;
|
|
67
|
-
const tokens = [];
|
|
68
|
-
function addToken(tokenValue) {
|
|
69
|
-
const token = new token_1.Token(tokenValue, cumulativeOffset, origin);
|
|
70
|
-
tokens.push(token);
|
|
71
|
-
strings = strings.slice(tokenValue.length);
|
|
72
|
-
cumulativeOffset += tokenValue.length;
|
|
73
|
-
return token;
|
|
74
|
-
}
|
|
75
|
-
let isBroken = false;
|
|
76
|
-
do {
|
|
77
|
-
isBroken = false;
|
|
78
|
-
for (const pattern of patterns) {
|
|
79
|
-
const res = pattern.exec(strings);
|
|
80
|
-
let value;
|
|
81
|
-
if (!res) {
|
|
82
|
-
isBroken = true;
|
|
83
|
-
value = '';
|
|
84
|
-
}
|
|
85
|
-
else {
|
|
86
|
-
if (res.index !== 0) {
|
|
87
|
-
value = strings.slice(res.index + res[0].length);
|
|
88
|
-
}
|
|
89
|
-
else {
|
|
90
|
-
value = res[0] || '';
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
const token = addToken(value);
|
|
94
|
-
// @ts-ignore
|
|
95
|
-
token._ = pattern;
|
|
96
|
-
}
|
|
97
|
-
if (isBroken) {
|
|
98
|
-
addToken(strings);
|
|
99
|
-
}
|
|
100
|
-
} while ((typeOptions === null || typeOptions === void 0 ? void 0 : typeOptions.repeat) && strings);
|
|
101
|
-
if (strings) {
|
|
102
|
-
addToken(strings);
|
|
103
|
-
}
|
|
104
|
-
return TokenCollection._new(tokens, new TokenCollection('', typeOptions));
|
|
105
|
-
}
|
|
106
|
-
static get [Symbol.species]() {
|
|
107
|
-
return Array;
|
|
108
|
-
}
|
|
109
109
|
get value() {
|
|
110
110
|
const value = this.map(t => t.value).join('');
|
|
111
111
|
return value;
|
|
@@ -151,7 +151,7 @@ class TokenCollection extends Array {
|
|
|
151
151
|
});
|
|
152
152
|
}
|
|
153
153
|
else if (takeTurnsError.token.type === takeTurnsError.expectedTokenNumber) {
|
|
154
|
-
// Consecutive
|
|
154
|
+
// Consecutive commas
|
|
155
155
|
return takeTurnsError.token.unmatched({
|
|
156
156
|
reason: 'unexpected-comma',
|
|
157
157
|
ref,
|
package/lib/token/token.js
CHANGED
|
@@ -4,13 +4,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.Token = void 0;
|
|
5
5
|
const tslib_1 = require("tslib");
|
|
6
6
|
class Token {
|
|
7
|
-
constructor(value, offset, originalValue, separators) {
|
|
8
|
-
_Token_originalValue.set(this, void 0);
|
|
9
|
-
this.type = Token.getType(value, separators);
|
|
10
|
-
this.value = value;
|
|
11
|
-
this.offset = offset;
|
|
12
|
-
tslib_1.__classPrivateFieldSet(this, _Token_originalValue, originalValue, "f");
|
|
13
|
-
}
|
|
14
7
|
static getCol(value, offset) {
|
|
15
8
|
const lines = value.slice(0, offset).split(/\n/g);
|
|
16
9
|
return lines[lines.length - 1].length + 1;
|
|
@@ -38,6 +31,13 @@ class Token {
|
|
|
38
31
|
column: Token.getCol(tslib_1.__classPrivateFieldGet(token, _Token_originalValue, "f"), shifted),
|
|
39
32
|
};
|
|
40
33
|
}
|
|
34
|
+
constructor(value, offset, originalValue, separators) {
|
|
35
|
+
_Token_originalValue.set(this, void 0);
|
|
36
|
+
this.type = Token.getType(value, separators);
|
|
37
|
+
this.value = value;
|
|
38
|
+
this.offset = offset;
|
|
39
|
+
tslib_1.__classPrivateFieldSet(this, _Token_originalValue, originalValue, "f");
|
|
40
|
+
}
|
|
41
41
|
get length() {
|
|
42
42
|
return this.value.length;
|
|
43
43
|
}
|
package/lib/types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { cssSyntaxMatch } from './css-syntax';
|
|
2
2
|
export type { Type, List, Enum, CssSyntax, KeywordDefinedType, Number } from './types.schema';
|
|
3
|
-
export
|
|
4
|
-
export
|
|
3
|
+
export type Result = UnmatchedResult | MatchedResult;
|
|
4
|
+
export type UnmatchedResult = {
|
|
5
5
|
matched: false;
|
|
6
6
|
ref: string | null;
|
|
7
7
|
raw: string;
|
|
@@ -12,13 +12,13 @@ export declare type UnmatchedResult = {
|
|
|
12
12
|
reason: UnmatchedResultReason;
|
|
13
13
|
passCount?: number;
|
|
14
14
|
} & UnmatchedResultOptions;
|
|
15
|
-
export
|
|
15
|
+
export type UnmatchedResultOptions = {
|
|
16
16
|
partName?: string;
|
|
17
17
|
expects?: Expect[];
|
|
18
18
|
extra?: Expect;
|
|
19
19
|
candidate?: string;
|
|
20
20
|
};
|
|
21
|
-
export
|
|
21
|
+
export type UnmatchedResultReason = 'syntax-error' | 'typo' | 'missing-token' | 'missing-comma' | 'unexpected-token' | 'unexpected-space' | 'unexpected-newline' | 'unexpected-comma' | 'empty-token' | 'out-of-range' | 'doesnt-exist-in-enum' | 'duplicated' | 'illegal-combination' | 'illegal-order' | 'extra-token' | 'must-be-percent-encoded' | 'must-be-serialized' | {
|
|
22
22
|
type: 'out-of-range';
|
|
23
23
|
gt?: number;
|
|
24
24
|
gte?: number;
|
|
@@ -33,24 +33,24 @@ export declare type UnmatchedResultReason = 'syntax-error' | 'typo' | 'missing-t
|
|
|
33
33
|
gte: number;
|
|
34
34
|
lte?: number;
|
|
35
35
|
};
|
|
36
|
-
export
|
|
36
|
+
export type MatchedResult = {
|
|
37
37
|
matched: true;
|
|
38
38
|
};
|
|
39
|
-
export
|
|
39
|
+
export type Expect = {
|
|
40
40
|
type: 'const' | 'format' | 'syntax' | 'regexp' | 'common';
|
|
41
41
|
value: string;
|
|
42
42
|
};
|
|
43
|
-
export
|
|
44
|
-
export
|
|
45
|
-
export
|
|
46
|
-
export
|
|
43
|
+
export type FormattedPrimitiveTypeCheck = (value: string) => boolean;
|
|
44
|
+
export type FormattedPrimitiveTypeCreator<O = never> = (options?: O) => FormattedPrimitiveTypeCheck;
|
|
45
|
+
export type Defs = Record<string, CustomCssSyntax | CustomSyntax>;
|
|
46
|
+
export type CustomSyntax = {
|
|
47
47
|
ref: string;
|
|
48
48
|
expects?: Expect[];
|
|
49
49
|
is: CustomSyntaxCheck;
|
|
50
50
|
};
|
|
51
|
-
export
|
|
52
|
-
export
|
|
53
|
-
export
|
|
51
|
+
export type CustomSyntaxCheck = (value: string) => Result;
|
|
52
|
+
export type CustomSyntaxChecker<O = {}> = (options?: O) => CustomSyntaxCheck;
|
|
53
|
+
export type CustomCssSyntax = {
|
|
54
54
|
ref: string;
|
|
55
55
|
caseSensitive?: boolean;
|
|
56
56
|
expects?: Expect[];
|
|
@@ -67,12 +67,12 @@ export declare type CustomCssSyntax = {
|
|
|
67
67
|
properties?: Record<string, string>;
|
|
68
68
|
};
|
|
69
69
|
};
|
|
70
|
-
export
|
|
70
|
+
export type CSSSyntaxToken = {
|
|
71
71
|
type: number;
|
|
72
72
|
value: string;
|
|
73
73
|
index: number;
|
|
74
74
|
balance: number;
|
|
75
75
|
node?: any;
|
|
76
76
|
};
|
|
77
|
-
export
|
|
78
|
-
export
|
|
77
|
+
export type CssSyntaxTokenizer = (token: CSSSyntaxToken | null, getNextToken: GetNextToken, match: typeof cssSyntaxMatch) => number;
|
|
78
|
+
export type GetNextToken = (length: number) => CSSSyntaxToken | null;
|
package/lib/types.schema.d.ts
CHANGED
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
4
4
|
* and run json-schema-to-typescript to regenerate this file.
|
|
5
5
|
*/
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export declare type CssSyntax = "<'--*'>" | "<'-ms-accelerator'>" | "<'-ms-block-progression'>" | "<'-ms-content-zoom-chaining'>" | "<'-ms-content-zooming'>" | "<'-ms-content-zoom-limit'>" | "<'-ms-content-zoom-limit-max'>" | "<'-ms-content-zoom-limit-min'>" | "<'-ms-content-zoom-snap'>" | "<'-ms-content-zoom-snap-points'>" | "<'-ms-content-zoom-snap-type'>" | "<'-ms-filter'>" | "<'-ms-flow-from'>" | "<'-ms-flow-into'>" | "<'-ms-grid-columns'>" | "<'-ms-grid-rows'>" | "<'-ms-high-contrast-adjust'>" | "<'-ms-hyphenate-limit-chars'>" | "<'-ms-hyphenate-limit-lines'>" | "<'-ms-hyphenate-limit-zone'>" | "<'-ms-ime-align'>" | "<'-ms-overflow-style'>" | "<'-ms-scrollbar-3dlight-color'>" | "<'-ms-scrollbar-arrow-color'>" | "<'-ms-scrollbar-base-color'>" | "<'-ms-scrollbar-darkshadow-color'>" | "<'-ms-scrollbar-face-color'>" | "<'-ms-scrollbar-highlight-color'>" | "<'-ms-scrollbar-shadow-color'>" | "<'-ms-scrollbar-track-color'>" | "<'-ms-scroll-chaining'>" | "<'-ms-scroll-limit'>" | "<'-ms-scroll-limit-x-max'>" | "<'-ms-scroll-limit-x-min'>" | "<'-ms-scroll-limit-y-max'>" | "<'-ms-scroll-limit-y-min'>" | "<'-ms-scroll-rails'>" | "<'-ms-scroll-snap-points-x'>" | "<'-ms-scroll-snap-points-y'>" | "<'-ms-scroll-snap-type'>" | "<'-ms-scroll-snap-x'>" | "<'-ms-scroll-snap-y'>" | "<'-ms-scroll-translation'>" | "<'-ms-text-autospace'>" | "<'-ms-touch-select'>" | "<'-ms-user-select'>" | "<'-ms-wrap-flow'>" | "<'-ms-wrap-margin'>" | "<'-ms-wrap-through'>" | "<'-moz-appearance'>" | "<'-moz-binding'>" | "<'-moz-border-bottom-colors'>" | "<'-moz-border-left-colors'>" | "<'-moz-border-right-colors'>" | "<'-moz-border-top-colors'>" | "<'-moz-context-properties'>" | "<'-moz-float-edge'>" | "<'-moz-force-broken-image-icon'>" | "<'-moz-image-region'>" | "<'-moz-orient'>" | "<'-moz-outline-radius'>" | "<'-moz-outline-radius-bottomleft'>" | "<'-moz-outline-radius-bottomright'>" | "<'-moz-outline-radius-topleft'>" | "<'-moz-outline-radius-topright'>" | "<'-moz-stack-sizing'>" | "<'-moz-text-blink'>" | "<'-moz-user-focus'>" | "<'-moz-user-input'>" | "<'-moz-user-modify'>" | "<'-moz-window-dragging'>" | "<'-moz-window-shadow'>" | "<'-webkit-appearance'>" | "<'-webkit-border-before'>" | "<'-webkit-border-before-color'>" | "<'-webkit-border-before-style'>" | "<'-webkit-border-before-width'>" | "<'-webkit-box-reflect'>" | "<'-webkit-line-clamp'>" | "<'-webkit-mask'>" | "<'-webkit-mask-attachment'>" | "<'-webkit-mask-clip'>" | "<'-webkit-mask-composite'>" | "<'-webkit-mask-image'>" | "<'-webkit-mask-origin'>" | "<'-webkit-mask-position'>" | "<'-webkit-mask-position-x'>" | "<'-webkit-mask-position-y'>" | "<'-webkit-mask-repeat'>" | "<'-webkit-mask-repeat-x'>" | "<'-webkit-mask-repeat-y'>" | "<'-webkit-mask-size'>" | "<'-webkit-overflow-scrolling'>" | "<'-webkit-tap-highlight-color'>" | "<'-webkit-text-fill-color'>" | "<'-webkit-text-stroke'>" | "<'-webkit-text-stroke-color'>" | "<'-webkit-text-stroke-width'>" | "<'-webkit-touch-callout'>" | "<'-webkit-user-modify'>" | "<'align-content'>" | "<'align-items'>" | "<'align-self'>" | "<'align-tracks'>" | "<'all'>" | "<'animation'>" | "<'animation-delay'>" | "<'animation-direction'>" | "<'animation-duration'>" | "<'animation-fill-mode'>" | "<'animation-iteration-count'>" | "<'animation-name'>" | "<'animation-play-state'>" | "<'animation-timing-function'>" | "<'appearance'>" | "<'aspect-ratio'>" | "<'azimuth'>" | "<'backdrop-filter'>" | "<'backface-visibility'>" | "<'background'>" | "<'background-attachment'>" | "<'background-blend-mode'>" | "<'background-clip'>" | "<'background-color'>" | "<'background-image'>" | "<'background-origin'>" | "<'background-position'>" | "<'background-position-x'>" | "<'background-position-y'>" | "<'background-repeat'>" | "<'background-size'>" | "<'block-overflow'>" | "<'block-size'>" | "<'border'>" | "<'border-block'>" | "<'border-block-color'>" | "<'border-block-style'>" | "<'border-block-width'>" | "<'border-block-end'>" | "<'border-block-end-color'>" | "<'border-block-end-style'>" | "<'border-block-end-width'>" | "<'border-block-start'>" | "<'border-block-start-color'>" | "<'border-block-start-style'>" | "<'border-block-start-width'>" | "<'border-bottom'>" | "<'border-bottom-color'>" | "<'border-bottom-left-radius'>" | "<'border-bottom-right-radius'>" | "<'border-bottom-style'>" | "<'border-bottom-width'>" | "<'border-collapse'>" | "<'border-color'>" | "<'border-end-end-radius'>" | "<'border-end-start-radius'>" | "<'border-image'>" | "<'border-image-outset'>" | "<'border-image-repeat'>" | "<'border-image-slice'>" | "<'border-image-source'>" | "<'border-image-width'>" | "<'border-inline'>" | "<'border-inline-end'>" | "<'border-inline-color'>" | "<'border-inline-style'>" | "<'border-inline-width'>" | "<'border-inline-end-color'>" | "<'border-inline-end-style'>" | "<'border-inline-end-width'>" | "<'border-inline-start'>" | "<'border-inline-start-color'>" | "<'border-inline-start-style'>" | "<'border-inline-start-width'>" | "<'border-left'>" | "<'border-left-color'>" | "<'border-left-style'>" | "<'border-left-width'>" | "<'border-radius'>" | "<'border-right'>" | "<'border-right-color'>" | "<'border-right-style'>" | "<'border-right-width'>" | "<'border-spacing'>" | "<'border-start-end-radius'>" | "<'border-start-start-radius'>" | "<'border-style'>" | "<'border-top'>" | "<'border-top-color'>" | "<'border-top-left-radius'>" | "<'border-top-right-radius'>" | "<'border-top-style'>" | "<'border-top-width'>" | "<'border-width'>" | "<'bottom'>" | "<'box-align'>" | "<'box-decoration-break'>" | "<'box-direction'>" | "<'box-flex'>" | "<'box-flex-group'>" | "<'box-lines'>" | "<'box-ordinal-group'>" | "<'box-orient'>" | "<'box-pack'>" | "<'box-shadow'>" | "<'box-sizing'>" | "<'break-after'>" | "<'break-before'>" | "<'break-inside'>" | "<'caption-side'>" | "<'caret-color'>" | "<'clear'>" | "<'clip'>" | "<'clip-path'>" | "<'color'>" | "<'color-adjust'>" | "<'column-count'>" | "<'column-fill'>" | "<'column-gap'>" | "<'column-rule'>" | "<'column-rule-color'>" | "<'column-rule-style'>" | "<'column-rule-width'>" | "<'column-span'>" | "<'column-width'>" | "<'columns'>" | "<'contain'>" | "<'content'>" | "<'counter-increment'>" | "<'counter-reset'>" | "<'counter-set'>" | "<'cursor'>" | "<'direction'>" | "<'display'>" | "<'empty-cells'>" | "<'filter'>" | "<'flex'>" | "<'flex-basis'>" | "<'flex-direction'>" | "<'flex-flow'>" | "<'flex-grow'>" | "<'flex-shrink'>" | "<'flex-wrap'>" | "<'float'>" | "<'font'>" | "<'font-family'>" | "<'font-feature-settings'>" | "<'font-kerning'>" | "<'font-language-override'>" | "<'font-optical-sizing'>" | "<'font-variation-settings'>" | "<'font-size'>" | "<'font-size-adjust'>" | "<'font-smooth'>" | "<'font-stretch'>" | "<'font-style'>" | "<'font-synthesis'>" | "<'font-variant'>" | "<'font-variant-alternates'>" | "<'font-variant-caps'>" | "<'font-variant-east-asian'>" | "<'font-variant-ligatures'>" | "<'font-variant-numeric'>" | "<'font-variant-position'>" | "<'font-weight'>" | "<'gap'>" | "<'grid'>" | "<'grid-area'>" | "<'grid-auto-columns'>" | "<'grid-auto-flow'>" | "<'grid-auto-rows'>" | "<'grid-column'>" | "<'grid-column-end'>" | "<'grid-column-gap'>" | "<'grid-column-start'>" | "<'grid-gap'>" | "<'grid-row'>" | "<'grid-row-end'>" | "<'grid-row-gap'>" | "<'grid-row-start'>" | "<'grid-template'>" | "<'grid-template-areas'>" | "<'grid-template-columns'>" | "<'grid-template-rows'>" | "<'hanging-punctuation'>" | "<'height'>" | "<'hyphens'>" | "<'image-orientation'>" | "<'image-rendering'>" | "<'image-resolution'>" | "<'ime-mode'>" | "<'initial-letter'>" | "<'initial-letter-align'>" | "<'inline-size'>" | "<'inset'>" | "<'inset-block'>" | "<'inset-block-end'>" | "<'inset-block-start'>" | "<'inset-inline'>" | "<'inset-inline-end'>" | "<'inset-inline-start'>" | "<'isolation'>" | "<'justify-content'>" | "<'justify-items'>" | "<'justify-self'>" | "<'justify-tracks'>" | "<'left'>" | "<'letter-spacing'>" | "<'line-break'>" | "<'line-clamp'>" | "<'line-height'>" | "<'line-height-step'>" | "<'list-style'>" | "<'list-style-image'>" | "<'list-style-position'>" | "<'list-style-type'>" | "<'margin'>" | "<'margin-block'>" | "<'margin-block-end'>" | "<'margin-block-start'>" | "<'margin-bottom'>" | "<'margin-inline'>" | "<'margin-inline-end'>" | "<'margin-inline-start'>" | "<'margin-left'>" | "<'margin-right'>" | "<'margin-top'>" | "<'margin-trim'>" | "<'mask'>" | "<'mask-border'>" | "<'mask-border-mode'>" | "<'mask-border-outset'>" | "<'mask-border-repeat'>" | "<'mask-border-slice'>" | "<'mask-border-source'>" | "<'mask-border-width'>" | "<'mask-clip'>" | "<'mask-composite'>" | "<'mask-image'>" | "<'mask-mode'>" | "<'mask-origin'>" | "<'mask-position'>" | "<'mask-repeat'>" | "<'mask-size'>" | "<'mask-type'>" | "<'masonry-auto-flow'>" | "<'math-style'>" | "<'max-block-size'>" | "<'max-height'>" | "<'max-inline-size'>" | "<'max-lines'>" | "<'max-width'>" | "<'min-block-size'>" | "<'min-height'>" | "<'min-inline-size'>" | "<'min-width'>" | "<'mix-blend-mode'>" | "<'object-fit'>" | "<'object-position'>" | "<'offset'>" | "<'offset-anchor'>" | "<'offset-distance'>" | "<'offset-path'>" | "<'offset-position'>" | "<'offset-rotate'>" | "<'opacity'>" | "<'order'>" | "<'orphans'>" | "<'outline'>" | "<'outline-color'>" | "<'outline-offset'>" | "<'outline-style'>" | "<'outline-width'>" | "<'overflow'>" | "<'overflow-anchor'>" | "<'overflow-block'>" | "<'overflow-clip-box'>" | "<'overflow-inline'>" | "<'overflow-wrap'>" | "<'overflow-x'>" | "<'overflow-y'>" | "<'overscroll-behavior'>" | "<'overscroll-behavior-block'>" | "<'overscroll-behavior-inline'>" | "<'overscroll-behavior-x'>" | "<'overscroll-behavior-y'>" | "<'padding'>" | "<'padding-block'>" | "<'padding-block-end'>" | "<'padding-block-start'>" | "<'padding-bottom'>" | "<'padding-inline'>" | "<'padding-inline-end'>" | "<'padding-inline-start'>" | "<'padding-left'>" | "<'padding-right'>" | "<'padding-top'>" | "<'page-break-after'>" | "<'page-break-before'>" | "<'page-break-inside'>" | "<'paint-order'>" | "<'perspective'>" | "<'perspective-origin'>" | "<'place-content'>" | "<'place-items'>" | "<'place-self'>" | "<'pointer-events'>" | "<'position'>" | "<'quotes'>" | "<'resize'>" | "<'right'>" | "<'rotate'>" | "<'row-gap'>" | "<'ruby-align'>" | "<'ruby-merge'>" | "<'ruby-position'>" | "<'scale'>" | "<'scrollbar-color'>" | "<'scrollbar-gutter'>" | "<'scrollbar-width'>" | "<'scroll-behavior'>" | "<'scroll-margin'>" | "<'scroll-margin-block'>" | "<'scroll-margin-block-start'>" | "<'scroll-margin-block-end'>" | "<'scroll-margin-bottom'>" | "<'scroll-margin-inline'>" | "<'scroll-margin-inline-start'>" | "<'scroll-margin-inline-end'>" | "<'scroll-margin-left'>" | "<'scroll-margin-right'>" | "<'scroll-margin-top'>" | "<'scroll-padding'>" | "<'scroll-padding-block'>" | "<'scroll-padding-block-start'>" | "<'scroll-padding-block-end'>" | "<'scroll-padding-bottom'>" | "<'scroll-padding-inline'>" | "<'scroll-padding-inline-start'>" | "<'scroll-padding-inline-end'>" | "<'scroll-padding-left'>" | "<'scroll-padding-right'>" | "<'scroll-padding-top'>" | "<'scroll-snap-align'>" | "<'scroll-snap-coordinate'>" | "<'scroll-snap-destination'>" | "<'scroll-snap-points-x'>" | "<'scroll-snap-points-y'>" | "<'scroll-snap-stop'>" | "<'scroll-snap-type'>" | "<'scroll-snap-type-x'>" | "<'scroll-snap-type-y'>" | "<'shape-image-threshold'>" | "<'shape-margin'>" | "<'shape-outside'>" | "<'tab-size'>" | "<'table-layout'>" | "<'text-align'>" | "<'text-align-last'>" | "<'text-combine-upright'>" | "<'text-decoration'>" | "<'text-decoration-color'>" | "<'text-decoration-line'>" | "<'text-decoration-skip'>" | "<'text-decoration-skip-ink'>" | "<'text-decoration-style'>" | "<'text-decoration-thickness'>" | "<'text-emphasis'>" | "<'text-emphasis-color'>" | "<'text-emphasis-position'>" | "<'text-emphasis-style'>" | "<'text-indent'>" | "<'text-justify'>" | "<'text-orientation'>" | "<'text-overflow'>" | "<'text-rendering'>" | "<'text-shadow'>" | "<'text-size-adjust'>" | "<'text-transform'>" | "<'text-underline-offset'>" | "<'text-underline-position'>" | "<'top'>" | "<'touch-action'>" | "<'transform'>" | "<'transform-box'>" | "<'transform-origin'>" | "<'transform-style'>" | "<'transition'>" | "<'transition-delay'>" | "<'transition-duration'>" | "<'transition-property'>" | "<'transition-timing-function'>" | "<'translate'>" | "<'unicode-bidi'>" | "<'user-select'>" | "<'vertical-align'>" | "<'visibility'>" | "<'white-space'>" | "<'widows'>" | "<'width'>" | "<'will-change'>" | "<'word-break'>" | "<'word-spacing'>" | "<'word-wrap'>" | "<'writing-mode'>" | "<'z-index'>" | "<'zoom'>" | "<'-moz-background-clip'>" | "<'-moz-border-radius-bottomleft'>" | "<'-moz-border-radius-bottomright'>" | "<'-moz-border-radius-topleft'>" | "<'-moz-border-radius-topright'>" | "<'-moz-control-character-visibility'>" | "<'-moz-osx-font-smoothing'>" | "<'-moz-user-select'>" | "<'-ms-flex-align'>" | "<'-ms-flex-item-align'>" | "<'-ms-flex-line-pack'>" | "<'-ms-flex-negative'>" | "<'-ms-flex-pack'>" | "<'-ms-flex-order'>" | "<'-ms-flex-positive'>" | "<'-ms-flex-preferred-size'>" | "<'-ms-interpolation-mode'>" | "<'-ms-grid-column-align'>" | "<'-ms-grid-row-align'>" | "<'-ms-hyphenate-limit-last'>" | "<'-webkit-background-clip'>" | "<'-webkit-column-break-after'>" | "<'-webkit-column-break-before'>" | "<'-webkit-column-break-inside'>" | "<'-webkit-font-smoothing'>" | "<'-webkit-mask-box-image'>" | "<'-webkit-print-color-adjust'>" | "<'-webkit-text-security'>" | "<'-webkit-user-drag'>" | "<'-webkit-user-select'>" | "<'alignment-baseline'>" | "<'baseline-shift'>" | "<'behavior'>" | "<'clip-rule'>" | "<'cue'>" | "<'cue-after'>" | "<'cue-before'>" | "<'dominant-baseline'>" | "<'fill'>" | "<'fill-opacity'>" | "<'fill-rule'>" | "<'glyph-orientation-horizontal'>" | "<'glyph-orientation-vertical'>" | "<'kerning'>" | "<'marker'>" | "<'marker-end'>" | "<'marker-mid'>" | "<'marker-start'>" | "<'pause'>" | "<'pause-after'>" | "<'pause-before'>" | "<'rest'>" | "<'rest-after'>" | "<'rest-before'>" | "<'shape-rendering'>" | "<'src'>" | "<'speak'>" | "<'speak-as'>" | "<'stroke'>" | "<'stroke-dasharray'>" | "<'stroke-dashoffset'>" | "<'stroke-linecap'>" | "<'stroke-linejoin'>" | "<'stroke-miterlimit'>" | "<'stroke-opacity'>" | "<'stroke-width'>" | "<'text-anchor'>" | "<'unicode-range'>" | "<'voice-balance'>" | "<'voice-duration'>" | "<'voice-family'>" | "<'voice-pitch'>" | "<'voice-range'>" | "<'voice-rate'>" | "<'voice-stress'>" | "<'voice-volume'>" | '<absolute-size>' | '<alpha-value>' | '<angle-percentage>' | '<angular-color-hint>' | '<angular-color-stop>' | '<angular-color-stop-list>' | '<animateable-feature>' | '<attachment>' | '<attr()>' | '<attr-matcher>' | '<attr-modifier>' | '<attribute-selector>' | '<auto-repeat>' | '<auto-track-list>' | '<baseline-position>' | '<basic-shape>' | '<bg-image>' | '<bg-layer>' | '<bg-position>' | '<bg-size>' | '<blur()>' | '<blend-mode>' | '<box>' | '<brightness()>' | '<calc()>' | '<calc-sum>' | '<calc-product>' | '<calc-value>' | '<cf-final-image>' | '<cf-mixing-image>' | '<circle()>' | '<clamp()>' | '<class-selector>' | '<clip-source>' | '<color>' | '<color-stop>' | '<color-stop-angle>' | '<color-stop-length>' | '<color-stop-list>' | '<combinator>' | '<common-lig-values>' | '<compat-auto>' | '<composite-style>' | '<compositing-operator>' | '<compound-selector>' | '<compound-selector-list>' | '<complex-selector>' | '<complex-selector-list>' | '<conic-gradient()>' | '<contextual-alt-values>' | '<content-distribution>' | '<content-list>' | '<content-position>' | '<content-replacement>' | '<contrast()>' | '<counter()>' | '<counter-style>' | '<counter-style-name>' | '<counters()>' | '<cross-fade()>' | '<cubic-bezier-timing-function>' | '<deprecated-system-color>' | '<discretionary-lig-values>' | '<display-box>' | '<display-inside>' | '<display-internal>' | '<display-legacy>' | '<display-listitem>' | '<display-outside>' | '<drop-shadow()>' | '<east-asian-variant-values>' | '<east-asian-width-values>' | '<element()>' | '<ellipse()>' | '<ending-shape>' | '<env()>' | '<explicit-track-list>' | '<family-name>' | '<feature-tag-value>' | '<feature-type>' | '<feature-value-block>' | '<feature-value-block-list>' | '<feature-value-declaration>' | '<feature-value-declaration-list>' | '<feature-value-name>' | '<fill-rule>' | '<filter-function>' | '<filter-function-list>' | '<final-bg-layer>' | '<fit-content()>' | '<fixed-breadth>' | '<fixed-repeat>' | '<fixed-size>' | '<font-stretch-absolute>' | '<font-variant-css21>' | '<font-weight-absolute>' | '<frequency-percentage>' | '<general-enclosed>' | '<generic-family>' | '<generic-name>' | '<geometry-box>' | '<gradient>' | '<grayscale()>' | '<grid-line>' | '<historical-lig-values>' | '<hsl()>' | '<hsla()>' | '<hue>' | '<hue-rotate()>' | '<id-selector>' | '<image>' | '<image()>' | '<image-set()>' | '<image-set-option>' | '<image-src>' | '<image-tags>' | '<inflexible-breadth>' | '<inset()>' | '<invert()>' | '<keyframes-name>' | '<keyframe-block>' | '<keyframe-block-list>' | '<keyframe-selector>' | '<leader()>' | '<leader-type>' | '<length-percentage>' | '<line-names>' | '<line-name-list>' | '<line-style>' | '<line-width>' | '<linear-color-hint>' | '<linear-color-stop>' | '<linear-gradient()>' | '<mask-layer>' | '<mask-position>' | '<mask-reference>' | '<mask-source>' | '<masking-mode>' | '<matrix()>' | '<matrix3d()>' | '<max()>' | '<media-and>' | '<media-condition>' | '<media-condition-without-or>' | '<media-feature>' | '<media-in-parens>' | '<media-not>' | '<media-or>' | '<media-query>' | '<media-query-list>' | '<media-type>' | '<mf-boolean>' | '<mf-name>' | '<mf-plain>' | '<mf-range>' | '<mf-value>' | '<min()>' | '<minmax()>' | '<named-color>' | '<namespace-prefix>' | '<ns-prefix>' | '<number-percentage>' | '<numeric-figure-values>' | '<numeric-fraction-values>' | '<numeric-spacing-values>' | '<nth>' | '<opacity()>' | '<overflow-position>' | '<outline-radius>' | '<page-body>' | '<page-margin-box>' | '<page-margin-box-type>' | '<page-selector-list>' | '<page-selector>' | '<path()>' | '<paint()>' | '<perspective()>' | '<polygon()>' | '<position>' | '<pseudo-class-selector>' | '<pseudo-element-selector>' | '<pseudo-page>' | '<quote>' | '<radial-gradient()>' | '<relative-selector>' | '<relative-selector-list>' | '<relative-size>' | '<repeat-style>' | '<repeating-linear-gradient()>' | '<repeating-radial-gradient()>' | '<rgb()>' | '<rgba()>' | '<rotate()>' | '<rotate3d()>' | '<rotateX()>' | '<rotateY()>' | '<rotateZ()>' | '<saturate()>' | '<scale()>' | '<scale3d()>' | '<scaleX()>' | '<scaleY()>' | '<scaleZ()>' | '<self-position>' | '<shape-radius>' | '<skew()>' | '<skewX()>' | '<skewY()>' | '<sepia()>' | '<shadow>' | '<shadow-t>' | '<shape>' | '<shape-box>' | '<side-or-corner>' | '<single-animation>' | '<single-animation-direction>' | '<single-animation-fill-mode>' | '<single-animation-iteration-count>' | '<single-animation-play-state>' | '<single-transition>' | '<single-transition-property>' | '<size>' | '<step-position>' | '<step-timing-function>' | '<subclass-selector>' | '<supports-condition>' | '<supports-in-parens>' | '<supports-feature>' | '<supports-decl>' | '<supports-selector-fn>' | '<symbol>' | '<target>' | '<target-counter()>' | '<target-counters()>' | '<target-text()>' | '<time-percentage>' | '<timing-function>' | '<track-breadth>' | '<track-list>' | '<track-repeat>' | '<track-size>' | '<transform-function>' | '<transform-list>' | '<translate()>' | '<translate3d()>' | '<translateX()>' | '<translateY()>' | '<translateZ()>' | '<type-or-unit>' | '<type-selector>' | '<var()>' | '<viewport-length>' | '<wq-name>' | '<-legacy-gradient>' | '<-legacy-linear-gradient>' | '<-legacy-repeating-linear-gradient>' | '<-legacy-linear-gradient-arguments>' | '<-legacy-radial-gradient>' | '<-legacy-repeating-radial-gradient>' | '<-legacy-radial-gradient-arguments>' | '<-legacy-radial-gradient-size>' | '<-legacy-radial-gradient-shape>' | '<-non-standard-font>' | '<-non-standard-color>' | '<-non-standard-image-rendering>' | '<-non-standard-overflow>' | '<-non-standard-width>' | '<-webkit-gradient()>' | '<-webkit-gradient-color-stop>' | '<-webkit-gradient-point>' | '<-webkit-gradient-radius>' | '<-webkit-gradient-type>' | '<-webkit-mask-box-repeat>' | '<-webkit-mask-clip-style>' | '<-ms-filter-function-list>' | '<-ms-filter-function>' | '<-ms-filter-function-progid>' | '<-ms-filter-function-legacy>' | '<-ms-filter>' | '<age>' | '<attr-name>' | '<attr-fallback>' | '<border-radius>' | '<bottom>' | '<generic-voice>' | '<gender>' | '<left>' | '<mask-image>' | '<name-repeat>' | '<paint>' | '<page-size>' | '<ratio>' | '<right>' | '<svg-length>' | '<svg-writing-mode>' | '<top>' | '<track-group>' | '<track-list-v0>' | '<track-minmax>' | '<x>' | '<y>' | '<declaration>' | '<declaration-list>' | '<url>' | '<url-modifier>' | '<number-zero-one>' | '<number-one-or-greater>' | '<positive-integer>' | '<-non-standard-display>' | '<ident-token>' | '<function-token>' | '<at-keyword-token>' | '<hash-token>' | '<string-token>' | '<bad-string-token>' | '<url-token>' | '<bad-url-token>' | '<delim-token>' | '<number-token>' | '<percentage-token>' | '<dimension-token>' | '<whitespace-token>' | '<CDO-token>' | '<CDC-token>' | '<colon-token>' | '<semicolon-token>' | '<comma-token>' | '<[-token>' | '<]-token>' | '<(-token>' | '<)-token>' | '<{-token>' | '<}-token>' | '<string>' | '<ident>' | '<custom-ident>' | '<custom-property-name>' | '<hex-color>' | '<an-plus-b>' | '<urange>' | '<declaration-value>' | '<any-value>' | '<dimension>' | '<angle>' | '<decibel>' | '<frequency>' | '<flex>' | '<length>' | '<resolution>' | '<semitones>' | '<time>' | '<percentage>' | '<zero>' | '<number>' | '<integer>' | '<-ms-legacy-expression>' | '<bcp-47>';
|
|
9
|
-
export
|
|
10
|
-
export
|
|
6
|
+
export type Type = KeywordDefinedType | List | Enum | Number;
|
|
7
|
+
export type KeywordDefinedType = CssSyntax | ExtendedType | HtmlAttrRequirement;
|
|
8
|
+
export type CssSyntax = "<'--*'>" | "<'-ms-accelerator'>" | "<'-ms-block-progression'>" | "<'-ms-content-zoom-chaining'>" | "<'-ms-content-zooming'>" | "<'-ms-content-zoom-limit'>" | "<'-ms-content-zoom-limit-max'>" | "<'-ms-content-zoom-limit-min'>" | "<'-ms-content-zoom-snap'>" | "<'-ms-content-zoom-snap-points'>" | "<'-ms-content-zoom-snap-type'>" | "<'-ms-filter'>" | "<'-ms-flow-from'>" | "<'-ms-flow-into'>" | "<'-ms-grid-columns'>" | "<'-ms-grid-rows'>" | "<'-ms-high-contrast-adjust'>" | "<'-ms-hyphenate-limit-chars'>" | "<'-ms-hyphenate-limit-lines'>" | "<'-ms-hyphenate-limit-zone'>" | "<'-ms-ime-align'>" | "<'-ms-overflow-style'>" | "<'-ms-scrollbar-3dlight-color'>" | "<'-ms-scrollbar-arrow-color'>" | "<'-ms-scrollbar-base-color'>" | "<'-ms-scrollbar-darkshadow-color'>" | "<'-ms-scrollbar-face-color'>" | "<'-ms-scrollbar-highlight-color'>" | "<'-ms-scrollbar-shadow-color'>" | "<'-ms-scrollbar-track-color'>" | "<'-ms-scroll-chaining'>" | "<'-ms-scroll-limit'>" | "<'-ms-scroll-limit-x-max'>" | "<'-ms-scroll-limit-x-min'>" | "<'-ms-scroll-limit-y-max'>" | "<'-ms-scroll-limit-y-min'>" | "<'-ms-scroll-rails'>" | "<'-ms-scroll-snap-points-x'>" | "<'-ms-scroll-snap-points-y'>" | "<'-ms-scroll-snap-type'>" | "<'-ms-scroll-snap-x'>" | "<'-ms-scroll-snap-y'>" | "<'-ms-scroll-translation'>" | "<'-ms-text-autospace'>" | "<'-ms-touch-select'>" | "<'-ms-user-select'>" | "<'-ms-wrap-flow'>" | "<'-ms-wrap-margin'>" | "<'-ms-wrap-through'>" | "<'-moz-appearance'>" | "<'-moz-binding'>" | "<'-moz-border-bottom-colors'>" | "<'-moz-border-left-colors'>" | "<'-moz-border-right-colors'>" | "<'-moz-border-top-colors'>" | "<'-moz-context-properties'>" | "<'-moz-float-edge'>" | "<'-moz-force-broken-image-icon'>" | "<'-moz-image-region'>" | "<'-moz-orient'>" | "<'-moz-outline-radius'>" | "<'-moz-outline-radius-bottomleft'>" | "<'-moz-outline-radius-bottomright'>" | "<'-moz-outline-radius-topleft'>" | "<'-moz-outline-radius-topright'>" | "<'-moz-stack-sizing'>" | "<'-moz-text-blink'>" | "<'-moz-user-focus'>" | "<'-moz-user-input'>" | "<'-moz-user-modify'>" | "<'-moz-window-dragging'>" | "<'-moz-window-shadow'>" | "<'-webkit-appearance'>" | "<'-webkit-border-before'>" | "<'-webkit-border-before-color'>" | "<'-webkit-border-before-style'>" | "<'-webkit-border-before-width'>" | "<'-webkit-box-reflect'>" | "<'-webkit-line-clamp'>" | "<'-webkit-mask'>" | "<'-webkit-mask-attachment'>" | "<'-webkit-mask-clip'>" | "<'-webkit-mask-composite'>" | "<'-webkit-mask-image'>" | "<'-webkit-mask-origin'>" | "<'-webkit-mask-position'>" | "<'-webkit-mask-position-x'>" | "<'-webkit-mask-position-y'>" | "<'-webkit-mask-repeat'>" | "<'-webkit-mask-repeat-x'>" | "<'-webkit-mask-repeat-y'>" | "<'-webkit-mask-size'>" | "<'-webkit-overflow-scrolling'>" | "<'-webkit-tap-highlight-color'>" | "<'-webkit-text-fill-color'>" | "<'-webkit-text-stroke'>" | "<'-webkit-text-stroke-color'>" | "<'-webkit-text-stroke-width'>" | "<'-webkit-touch-callout'>" | "<'-webkit-user-modify'>" | "<'accent-color'>" | "<'align-content'>" | "<'align-items'>" | "<'align-self'>" | "<'align-tracks'>" | "<'all'>" | "<'animation'>" | "<'animation-composition'>" | "<'animation-delay'>" | "<'animation-direction'>" | "<'animation-duration'>" | "<'animation-fill-mode'>" | "<'animation-iteration-count'>" | "<'animation-name'>" | "<'animation-play-state'>" | "<'animation-timing-function'>" | "<'animation-timeline'>" | "<'appearance'>" | "<'aspect-ratio'>" | "<'azimuth'>" | "<'backdrop-filter'>" | "<'backface-visibility'>" | "<'background'>" | "<'background-attachment'>" | "<'background-blend-mode'>" | "<'background-clip'>" | "<'background-color'>" | "<'background-image'>" | "<'background-origin'>" | "<'background-position'>" | "<'background-position-x'>" | "<'background-position-y'>" | "<'background-repeat'>" | "<'background-size'>" | "<'block-overflow'>" | "<'block-size'>" | "<'border'>" | "<'border-block'>" | "<'border-block-color'>" | "<'border-block-style'>" | "<'border-block-width'>" | "<'border-block-end'>" | "<'border-block-end-color'>" | "<'border-block-end-style'>" | "<'border-block-end-width'>" | "<'border-block-start'>" | "<'border-block-start-color'>" | "<'border-block-start-style'>" | "<'border-block-start-width'>" | "<'border-bottom'>" | "<'border-bottom-color'>" | "<'border-bottom-left-radius'>" | "<'border-bottom-right-radius'>" | "<'border-bottom-style'>" | "<'border-bottom-width'>" | "<'border-collapse'>" | "<'border-color'>" | "<'border-end-end-radius'>" | "<'border-end-start-radius'>" | "<'border-image'>" | "<'border-image-outset'>" | "<'border-image-repeat'>" | "<'border-image-slice'>" | "<'border-image-source'>" | "<'border-image-width'>" | "<'border-inline'>" | "<'border-inline-end'>" | "<'border-inline-color'>" | "<'border-inline-style'>" | "<'border-inline-width'>" | "<'border-inline-end-color'>" | "<'border-inline-end-style'>" | "<'border-inline-end-width'>" | "<'border-inline-start'>" | "<'border-inline-start-color'>" | "<'border-inline-start-style'>" | "<'border-inline-start-width'>" | "<'border-left'>" | "<'border-left-color'>" | "<'border-left-style'>" | "<'border-left-width'>" | "<'border-radius'>" | "<'border-right'>" | "<'border-right-color'>" | "<'border-right-style'>" | "<'border-right-width'>" | "<'border-spacing'>" | "<'border-start-end-radius'>" | "<'border-start-start-radius'>" | "<'border-style'>" | "<'border-top'>" | "<'border-top-color'>" | "<'border-top-left-radius'>" | "<'border-top-right-radius'>" | "<'border-top-style'>" | "<'border-top-width'>" | "<'border-width'>" | "<'bottom'>" | "<'box-align'>" | "<'box-decoration-break'>" | "<'box-direction'>" | "<'box-flex'>" | "<'box-flex-group'>" | "<'box-lines'>" | "<'box-ordinal-group'>" | "<'box-orient'>" | "<'box-pack'>" | "<'box-shadow'>" | "<'box-sizing'>" | "<'break-after'>" | "<'break-before'>" | "<'break-inside'>" | "<'caption-side'>" | "<'caret'>" | "<'caret-color'>" | "<'caret-shape'>" | "<'clear'>" | "<'clip'>" | "<'clip-path'>" | "<'color'>" | "<'print-color-adjust'>" | "<'color-scheme'>" | "<'column-count'>" | "<'column-fill'>" | "<'column-gap'>" | "<'column-rule'>" | "<'column-rule-color'>" | "<'column-rule-style'>" | "<'column-rule-width'>" | "<'column-span'>" | "<'column-width'>" | "<'columns'>" | "<'contain'>" | "<'contain-intrinsic-size'>" | "<'contain-intrinsic-block-size'>" | "<'contain-intrinsic-height'>" | "<'contain-intrinsic-inline-size'>" | "<'contain-intrinsic-width'>" | "<'content'>" | "<'content-visibility'>" | "<'counter-increment'>" | "<'counter-reset'>" | "<'counter-set'>" | "<'cursor'>" | "<'direction'>" | "<'display'>" | "<'empty-cells'>" | "<'filter'>" | "<'flex'>" | "<'flex-basis'>" | "<'flex-direction'>" | "<'flex-flow'>" | "<'flex-grow'>" | "<'flex-shrink'>" | "<'flex-wrap'>" | "<'float'>" | "<'font'>" | "<'font-family'>" | "<'font-feature-settings'>" | "<'font-kerning'>" | "<'font-language-override'>" | "<'font-optical-sizing'>" | "<'font-variation-settings'>" | "<'font-size'>" | "<'font-size-adjust'>" | "<'font-smooth'>" | "<'font-stretch'>" | "<'font-style'>" | "<'font-synthesis'>" | "<'font-variant'>" | "<'font-variant-alternates'>" | "<'font-variant-caps'>" | "<'font-variant-east-asian'>" | "<'font-variant-ligatures'>" | "<'font-variant-numeric'>" | "<'font-variant-position'>" | "<'font-weight'>" | "<'forced-color-adjust'>" | "<'gap'>" | "<'grid'>" | "<'grid-area'>" | "<'grid-auto-columns'>" | "<'grid-auto-flow'>" | "<'grid-auto-rows'>" | "<'grid-column'>" | "<'grid-column-end'>" | "<'grid-column-gap'>" | "<'grid-column-start'>" | "<'grid-gap'>" | "<'grid-row'>" | "<'grid-row-end'>" | "<'grid-row-gap'>" | "<'grid-row-start'>" | "<'grid-template'>" | "<'grid-template-areas'>" | "<'grid-template-columns'>" | "<'grid-template-rows'>" | "<'hanging-punctuation'>" | "<'height'>" | "<'hyphenate-character'>" | "<'hyphens'>" | "<'image-orientation'>" | "<'image-rendering'>" | "<'image-resolution'>" | "<'ime-mode'>" | "<'initial-letter'>" | "<'initial-letter-align'>" | "<'inline-size'>" | "<'input-security'>" | "<'inset'>" | "<'inset-block'>" | "<'inset-block-end'>" | "<'inset-block-start'>" | "<'inset-inline'>" | "<'inset-inline-end'>" | "<'inset-inline-start'>" | "<'isolation'>" | "<'justify-content'>" | "<'justify-items'>" | "<'justify-self'>" | "<'justify-tracks'>" | "<'left'>" | "<'letter-spacing'>" | "<'line-break'>" | "<'line-clamp'>" | "<'line-height'>" | "<'line-height-step'>" | "<'list-style'>" | "<'list-style-image'>" | "<'list-style-position'>" | "<'list-style-type'>" | "<'margin'>" | "<'margin-block'>" | "<'margin-block-end'>" | "<'margin-block-start'>" | "<'margin-bottom'>" | "<'margin-inline'>" | "<'margin-inline-end'>" | "<'margin-inline-start'>" | "<'margin-left'>" | "<'margin-right'>" | "<'margin-top'>" | "<'margin-trim'>" | "<'mask'>" | "<'mask-border'>" | "<'mask-border-mode'>" | "<'mask-border-outset'>" | "<'mask-border-repeat'>" | "<'mask-border-slice'>" | "<'mask-border-source'>" | "<'mask-border-width'>" | "<'mask-clip'>" | "<'mask-composite'>" | "<'mask-image'>" | "<'mask-mode'>" | "<'mask-origin'>" | "<'mask-position'>" | "<'mask-repeat'>" | "<'mask-size'>" | "<'mask-type'>" | "<'masonry-auto-flow'>" | "<'math-depth'>" | "<'math-shift'>" | "<'math-style'>" | "<'max-block-size'>" | "<'max-height'>" | "<'max-inline-size'>" | "<'max-lines'>" | "<'max-width'>" | "<'min-block-size'>" | "<'min-height'>" | "<'min-inline-size'>" | "<'min-width'>" | "<'mix-blend-mode'>" | "<'object-fit'>" | "<'object-position'>" | "<'offset'>" | "<'offset-anchor'>" | "<'offset-distance'>" | "<'offset-path'>" | "<'offset-position'>" | "<'offset-rotate'>" | "<'opacity'>" | "<'order'>" | "<'orphans'>" | "<'outline'>" | "<'outline-color'>" | "<'outline-offset'>" | "<'outline-style'>" | "<'outline-width'>" | "<'overflow'>" | "<'overflow-anchor'>" | "<'overflow-block'>" | "<'overflow-clip-box'>" | "<'overflow-clip-margin'>" | "<'overflow-inline'>" | "<'overflow-wrap'>" | "<'overflow-x'>" | "<'overflow-y'>" | "<'overscroll-behavior'>" | "<'overscroll-behavior-block'>" | "<'overscroll-behavior-inline'>" | "<'overscroll-behavior-x'>" | "<'overscroll-behavior-y'>" | "<'padding'>" | "<'padding-block'>" | "<'padding-block-end'>" | "<'padding-block-start'>" | "<'padding-bottom'>" | "<'padding-inline'>" | "<'padding-inline-end'>" | "<'padding-inline-start'>" | "<'padding-left'>" | "<'padding-right'>" | "<'padding-top'>" | "<'page-break-after'>" | "<'page-break-before'>" | "<'page-break-inside'>" | "<'paint-order'>" | "<'perspective'>" | "<'perspective-origin'>" | "<'place-content'>" | "<'place-items'>" | "<'place-self'>" | "<'pointer-events'>" | "<'position'>" | "<'quotes'>" | "<'resize'>" | "<'right'>" | "<'rotate'>" | "<'row-gap'>" | "<'ruby-align'>" | "<'ruby-merge'>" | "<'ruby-position'>" | "<'scale'>" | "<'scrollbar-color'>" | "<'scrollbar-gutter'>" | "<'scrollbar-width'>" | "<'scroll-behavior'>" | "<'scroll-margin'>" | "<'scroll-margin-block'>" | "<'scroll-margin-block-start'>" | "<'scroll-margin-block-end'>" | "<'scroll-margin-bottom'>" | "<'scroll-margin-inline'>" | "<'scroll-margin-inline-start'>" | "<'scroll-margin-inline-end'>" | "<'scroll-margin-left'>" | "<'scroll-margin-right'>" | "<'scroll-margin-top'>" | "<'scroll-padding'>" | "<'scroll-padding-block'>" | "<'scroll-padding-block-start'>" | "<'scroll-padding-block-end'>" | "<'scroll-padding-bottom'>" | "<'scroll-padding-inline'>" | "<'scroll-padding-inline-start'>" | "<'scroll-padding-inline-end'>" | "<'scroll-padding-left'>" | "<'scroll-padding-right'>" | "<'scroll-padding-top'>" | "<'scroll-snap-align'>" | "<'scroll-snap-coordinate'>" | "<'scroll-snap-destination'>" | "<'scroll-snap-points-x'>" | "<'scroll-snap-points-y'>" | "<'scroll-snap-stop'>" | "<'scroll-snap-type'>" | "<'scroll-snap-type-x'>" | "<'scroll-snap-type-y'>" | "<'scroll-timeline'>" | "<'scroll-timeline-axis'>" | "<'scroll-timeline-name'>" | "<'shape-image-threshold'>" | "<'shape-margin'>" | "<'shape-outside'>" | "<'tab-size'>" | "<'table-layout'>" | "<'text-align'>" | "<'text-align-last'>" | "<'text-combine-upright'>" | "<'text-decoration'>" | "<'text-decoration-color'>" | "<'text-decoration-line'>" | "<'text-decoration-skip'>" | "<'text-decoration-skip-ink'>" | "<'text-decoration-style'>" | "<'text-decoration-thickness'>" | "<'text-emphasis'>" | "<'text-emphasis-color'>" | "<'text-emphasis-position'>" | "<'text-emphasis-style'>" | "<'text-indent'>" | "<'text-justify'>" | "<'text-orientation'>" | "<'text-overflow'>" | "<'text-rendering'>" | "<'text-shadow'>" | "<'text-size-adjust'>" | "<'text-transform'>" | "<'text-underline-offset'>" | "<'text-underline-position'>" | "<'top'>" | "<'touch-action'>" | "<'transform'>" | "<'transform-box'>" | "<'transform-origin'>" | "<'transform-style'>" | "<'transition'>" | "<'transition-delay'>" | "<'transition-duration'>" | "<'transition-property'>" | "<'transition-timing-function'>" | "<'translate'>" | "<'unicode-bidi'>" | "<'user-select'>" | "<'vertical-align'>" | "<'visibility'>" | "<'white-space'>" | "<'widows'>" | "<'width'>" | "<'will-change'>" | "<'word-break'>" | "<'word-spacing'>" | "<'word-wrap'>" | "<'writing-mode'>" | "<'z-index'>" | "<'zoom'>" | "<'-moz-background-clip'>" | "<'-moz-border-radius-bottomleft'>" | "<'-moz-border-radius-bottomright'>" | "<'-moz-border-radius-topleft'>" | "<'-moz-border-radius-topright'>" | "<'-moz-control-character-visibility'>" | "<'-moz-osx-font-smoothing'>" | "<'-moz-user-select'>" | "<'-ms-flex-align'>" | "<'-ms-flex-item-align'>" | "<'-ms-flex-line-pack'>" | "<'-ms-flex-negative'>" | "<'-ms-flex-pack'>" | "<'-ms-flex-order'>" | "<'-ms-flex-positive'>" | "<'-ms-flex-preferred-size'>" | "<'-ms-interpolation-mode'>" | "<'-ms-grid-column-align'>" | "<'-ms-grid-row-align'>" | "<'-ms-hyphenate-limit-last'>" | "<'-webkit-background-clip'>" | "<'-webkit-column-break-after'>" | "<'-webkit-column-break-before'>" | "<'-webkit-column-break-inside'>" | "<'-webkit-font-smoothing'>" | "<'-webkit-mask-box-image'>" | "<'-webkit-print-color-adjust'>" | "<'-webkit-text-security'>" | "<'-webkit-user-drag'>" | "<'-webkit-user-select'>" | "<'alignment-baseline'>" | "<'baseline-shift'>" | "<'behavior'>" | "<'clip-rule'>" | "<'cue'>" | "<'cue-after'>" | "<'cue-before'>" | "<'dominant-baseline'>" | "<'fill'>" | "<'fill-opacity'>" | "<'fill-rule'>" | "<'glyph-orientation-horizontal'>" | "<'glyph-orientation-vertical'>" | "<'kerning'>" | "<'marker'>" | "<'marker-end'>" | "<'marker-mid'>" | "<'marker-start'>" | "<'pause'>" | "<'pause-after'>" | "<'pause-before'>" | "<'rest'>" | "<'rest-after'>" | "<'rest-before'>" | "<'shape-rendering'>" | "<'src'>" | "<'speak'>" | "<'speak-as'>" | "<'stroke'>" | "<'stroke-dasharray'>" | "<'stroke-dashoffset'>" | "<'stroke-linecap'>" | "<'stroke-linejoin'>" | "<'stroke-miterlimit'>" | "<'stroke-opacity'>" | "<'stroke-width'>" | "<'text-anchor'>" | "<'unicode-range'>" | "<'voice-balance'>" | "<'voice-duration'>" | "<'voice-family'>" | "<'voice-pitch'>" | "<'voice-range'>" | "<'voice-rate'>" | "<'voice-stress'>" | "<'voice-volume'>" | '<abs()>' | '<absolute-size>' | '<acos()>' | '<alpha-value>' | '<angle-percentage>' | '<angular-color-hint>' | '<angular-color-stop>' | '<angular-color-stop-list>' | '<animateable-feature>' | '<asin()>' | '<atan()>' | '<atan2()>' | '<attachment>' | '<attr()>' | '<attr-matcher>' | '<attr-modifier>' | '<attribute-selector>' | '<auto-repeat>' | '<auto-track-list>' | '<axis>' | '<baseline-position>' | '<basic-shape>' | '<bg-image>' | '<bg-layer>' | '<bg-position>' | '<bg-size>' | '<blur()>' | '<blend-mode>' | '<box>' | '<brightness()>' | '<calc()>' | '<calc-sum>' | '<calc-product>' | '<calc-value>' | '<calc-constant>' | '<cf-final-image>' | '<cf-mixing-image>' | '<circle()>' | '<clamp()>' | '<class-selector>' | '<clip-source>' | '<color>' | '<color-stop>' | '<color-stop-angle>' | '<color-stop-length>' | '<color-stop-list>' | '<combinator>' | '<common-lig-values>' | '<compat-auto>' | '<composite-style>' | '<compositing-operator>' | '<compound-selector>' | '<compound-selector-list>' | '<complex-selector>' | '<complex-selector-list>' | '<conic-gradient()>' | '<contextual-alt-values>' | '<content-distribution>' | '<content-list>' | '<content-position>' | '<content-replacement>' | '<contrast()>' | '<cos()>' | '<counter>' | '<counter()>' | '<counter-name>' | '<counter-style>' | '<counter-style-name>' | '<counters()>' | '<cross-fade()>' | '<cubic-bezier-timing-function>' | '<deprecated-system-color>' | '<discretionary-lig-values>' | '<display-box>' | '<display-inside>' | '<display-internal>' | '<display-legacy>' | '<display-listitem>' | '<display-outside>' | '<drop-shadow()>' | '<east-asian-variant-values>' | '<east-asian-width-values>' | '<element()>' | '<ellipse()>' | '<ending-shape>' | '<env()>' | '<exp()>' | '<explicit-track-list>' | '<family-name>' | '<feature-tag-value>' | '<feature-type>' | '<feature-value-block>' | '<feature-value-block-list>' | '<feature-value-declaration>' | '<feature-value-declaration-list>' | '<feature-value-name>' | '<fill-rule>' | '<filter-function>' | '<filter-function-list>' | '<final-bg-layer>' | '<fixed-breadth>' | '<fixed-repeat>' | '<fixed-size>' | '<font-stretch-absolute>' | '<font-variant-css21>' | '<font-weight-absolute>' | '<frequency-percentage>' | '<general-enclosed>' | '<generic-family>' | '<generic-name>' | '<geometry-box>' | '<gradient>' | '<grayscale()>' | '<grid-line>' | '<historical-lig-values>' | '<hsl()>' | '<hsla()>' | '<hue>' | '<hue-rotate()>' | '<hwb()>' | '<hypot()>' | '<id-selector>' | '<image>' | '<image()>' | '<image-set()>' | '<image-set-option>' | '<image-src>' | '<image-tags>' | '<inflexible-breadth>' | '<inset()>' | '<invert()>' | '<keyframes-name>' | '<keyframe-block>' | '<keyframe-block-list>' | '<keyframe-selector>' | '<lab()>' | '<layer()>' | '<layer-name>' | '<lch()>' | '<leader()>' | '<leader-type>' | '<length-percentage>' | '<line-names>' | '<line-name-list>' | '<line-style>' | '<line-width>' | '<linear-color-hint>' | '<linear-color-stop>' | '<linear-gradient()>' | '<log()>' | '<mask-layer>' | '<mask-position>' | '<mask-reference>' | '<mask-source>' | '<masking-mode>' | '<matrix()>' | '<matrix3d()>' | '<max()>' | '<media-and>' | '<media-condition>' | '<media-condition-without-or>' | '<media-feature>' | '<media-in-parens>' | '<media-not>' | '<media-or>' | '<media-query>' | '<media-query-list>' | '<media-type>' | '<mf-boolean>' | '<mf-name>' | '<mf-plain>' | '<mf-range>' | '<mf-value>' | '<min()>' | '<minmax()>' | '<mod()>' | '<name-repeat>' | '<named-color>' | '<namespace-prefix>' | '<ns-prefix>' | '<number-percentage>' | '<numeric-figure-values>' | '<numeric-fraction-values>' | '<numeric-spacing-values>' | '<nth>' | '<opacity()>' | '<overflow-position>' | '<outline-radius>' | '<page-body>' | '<page-margin-box>' | '<page-margin-box-type>' | '<page-selector-list>' | '<page-selector>' | '<page-size>' | '<path()>' | '<paint()>' | '<perspective()>' | '<polygon()>' | '<position>' | '<pow()>' | '<pseudo-class-selector>' | '<pseudo-element-selector>' | '<pseudo-page>' | '<quote>' | '<radial-gradient()>' | '<ratio>' | '<relative-selector>' | '<relative-selector-list>' | '<relative-size>' | '<rem()>' | '<repeat-style>' | '<repeating-conic-gradient()>' | '<repeating-linear-gradient()>' | '<repeating-radial-gradient()>' | '<reversed-counter-name>' | '<rgb()>' | '<rgba()>' | '<rotate()>' | '<rotate3d()>' | '<rotateX()>' | '<rotateY()>' | '<rotateZ()>' | '<round()>' | '<rounding-strategy>' | '<saturate()>' | '<scale()>' | '<scale3d()>' | '<scaleX()>' | '<scaleY()>' | '<scaleZ()>' | '<scroller>' | '<self-position>' | '<shape-radius>' | '<sign()>' | '<skew()>' | '<skewX()>' | '<skewY()>' | '<sepia()>' | '<shadow>' | '<shadow-t>' | '<shape>' | '<shape-box>' | '<side-or-corner>' | '<sin()>' | '<single-animation>' | '<single-animation-direction>' | '<single-animation-fill-mode>' | '<single-animation-iteration-count>' | '<single-animation-play-state>' | '<single-animation-timeline>' | '<single-transition>' | '<single-transition-property>' | '<size>' | '<sqrt()>' | '<step-position>' | '<step-timing-function>' | '<subclass-selector>' | '<supports-condition>' | '<supports-in-parens>' | '<supports-feature>' | '<supports-decl>' | '<supports-selector-fn>' | '<symbol>' | '<tan()>' | '<target>' | '<target-counter()>' | '<target-counters()>' | '<target-text()>' | '<time-percentage>' | '<timeline-name>' | '<easing-function>' | '<track-breadth>' | '<track-list>' | '<track-repeat>' | '<track-size>' | '<transform-function>' | '<transform-list>' | '<translate()>' | '<translate3d()>' | '<translateX()>' | '<translateY()>' | '<translateZ()>' | '<type-or-unit>' | '<type-selector>' | '<var()>' | '<viewport-length>' | '<visual-box>' | '<wq-name>' | '<-legacy-gradient>' | '<-legacy-linear-gradient>' | '<-legacy-repeating-linear-gradient>' | '<-legacy-linear-gradient-arguments>' | '<-legacy-radial-gradient>' | '<-legacy-repeating-radial-gradient>' | '<-legacy-radial-gradient-arguments>' | '<-legacy-radial-gradient-size>' | '<-legacy-radial-gradient-shape>' | '<-non-standard-font>' | '<-non-standard-color>' | '<-non-standard-image-rendering>' | '<-non-standard-overflow>' | '<-non-standard-width>' | '<-webkit-gradient()>' | '<-webkit-gradient-color-stop>' | '<-webkit-gradient-point>' | '<-webkit-gradient-radius>' | '<-webkit-gradient-type>' | '<-webkit-mask-box-repeat>' | '<-webkit-mask-clip-style>' | '<-ms-filter-function-list>' | '<-ms-filter-function>' | '<-ms-filter-function-progid>' | '<-ms-filter-function-legacy>' | '<-ms-filter>' | '<age>' | '<attr-name>' | '<attr-fallback>' | '<bg-clip>' | '<bottom>' | '<generic-voice>' | '<gender>' | '<left>' | '<mask-image>' | '<paint>' | '<right>' | '<scroll-timeline-axis>' | '<scroll-timeline-name>' | '<single-animation-composition>' | '<svg-length>' | '<svg-writing-mode>' | '<top>' | '<x>' | '<y>' | '<declaration>' | '<declaration-list>' | '<url>' | '<url-modifier>' | '<number-zero-one>' | '<number-one-or-greater>' | '<-non-standard-display>' | '<ident-token>' | '<function-token>' | '<at-keyword-token>' | '<hash-token>' | '<string-token>' | '<bad-string-token>' | '<url-token>' | '<bad-url-token>' | '<delim-token>' | '<number-token>' | '<percentage-token>' | '<dimension-token>' | '<whitespace-token>' | '<CDO-token>' | '<CDC-token>' | '<colon-token>' | '<semicolon-token>' | '<comma-token>' | '<[-token>' | '<]-token>' | '<(-token>' | '<)-token>' | '<{-token>' | '<}-token>' | '<string>' | '<ident>' | '<percentage>' | '<zero>' | '<number>' | '<integer>' | '<custom-ident>' | '<custom-property-name>' | '<hex-color>' | '<an-plus-b>' | '<urange>' | '<declaration-value>' | '<any-value>' | '<dimension>' | '<angle>' | '<decibel>' | '<frequency>' | '<flex>' | '<length>' | '<resolution>' | '<semitones>' | '<time>' | '<bcp-47>';
|
|
9
|
+
export type ExtendedType = 'Any' | 'NoEmptyAny' | 'OneLineAny' | 'Zero' | 'Number' | 'Int' | 'Uint' | 'XMLName' | 'DOMID' | 'FunctionBody' | 'Pattern' | 'DateTime' | 'TabIndex' | 'BCP47' | 'URL' | 'AbsoluteURL' | 'HashName' | 'OneCodePointChar' | 'CustomElementName' | 'BrowsingContextName' | 'BrowsingContextNameOrKeyword' | 'HTTPSchemaURL' | 'MIMEType' | 'ItemProp' | 'Srcset' | 'SourceSizeList' | 'IconSize' | 'AutoComplete' | 'Accept' | 'SerializedPermissionsPolicy' | '<css-declaration-list>' | '<class-list>' | '<svg-font-size>' | '<svg-font-size-adjust>' | "<'color-profile'>" | "<'color-rendering'>" | "<'enable-background'>" | '<list-of-svg-feature-string>' | '<animatable-value>' | '<begin-value-list>' | '<end-value-list>' | '<list-of-value>' | '<clock-value>' | '<color-matrix>' | '<dasharray>' | '<key-points>' | '<key-splines>' | '<key-times>' | '<system-language>' | '<origin>' | '<svg-path>' | '<points>' | '<preserve-aspect-ratio>' | '<view-box>' | '<rotate>' | '<text-coordinate>' | '<list-of-lengths>' | '<list-of-numbers>' | '<list-of-percentages>' | '<number-optional-number>';
|
|
10
|
+
export type HtmlAttrRequirement = 'Boolean';
|
|
11
11
|
export interface TypesSchema {
|
|
12
12
|
type?: Type;
|
|
13
13
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@markuplint/types",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "3.0.0-alpha.27+b5eef04a",
|
|
4
|
+
"description": "Type declaration and value checker",
|
|
5
5
|
"repository": "git@github.com:markuplint/markuplint.git",
|
|
6
6
|
"author": "Yusuke Hirao <yusukehirao@me.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -12,22 +12,24 @@
|
|
|
12
12
|
"access": "public"
|
|
13
13
|
},
|
|
14
14
|
"scripts": {
|
|
15
|
+
"postinstall": "patch-package",
|
|
15
16
|
"build": "tsc",
|
|
16
17
|
"clean": "tsc --build --clean",
|
|
17
18
|
"schema": "ts-node './gen/types.ts'; json2ts './types.schema.json' > './src/types.schema.ts'; prettier './src/types.schema.ts' './types.schema.json' --write; eslint './src/types.schema.ts' --fix; tsc;"
|
|
18
19
|
},
|
|
19
20
|
"dependencies": {
|
|
20
21
|
"bcp-47": "1",
|
|
21
|
-
"css-tree": "1",
|
|
22
|
+
"css-tree": "^2.3.1",
|
|
22
23
|
"debug": "^4.3.4",
|
|
23
24
|
"leven": "3",
|
|
25
|
+
"patch-package": "^6.5.0",
|
|
24
26
|
"whatwg-mimetype": "2"
|
|
25
27
|
},
|
|
26
28
|
"devDependencies": {
|
|
27
29
|
"@types/bcp-47": "1",
|
|
28
|
-
"@types/css-tree": "
|
|
30
|
+
"@types/css-tree": "^2.0.0",
|
|
29
31
|
"@types/debug": "^4.1.7",
|
|
30
32
|
"@types/whatwg-mimetype": "2"
|
|
31
33
|
},
|
|
32
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "b5eef04a99177b25dccb164b486fba9fa01893ae"
|
|
33
35
|
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
diff --git a/node_modules/css-tree/package.json b/node_modules/css-tree/package.json
|
|
2
|
+
index 934e699..6be2f82 100644
|
|
3
|
+
--- a/node_modules/css-tree/package.json
|
|
4
|
+
+++ b/node_modules/css-tree/package.json
|
|
5
|
+
@@ -70,6 +70,18 @@
|
|
6
|
+
"./utils": {
|
|
7
|
+
"import": "./lib/utils/index.js",
|
|
8
|
+
"require": "./cjs/utils/index.cjs"
|
|
9
|
+
+ },
|
|
10
|
+
+ "./lexer/error": {
|
|
11
|
+
+ "import": "./lib/lexer/error.js",
|
|
12
|
+
+ "require": "./cjs/lexer/error.cjs"
|
|
13
|
+
+ },
|
|
14
|
+
+ "./lexer/match": {
|
|
15
|
+
+ "import": "./lib/lexer/match.js",
|
|
16
|
+
+ "require": "./cjs/lexer/match.cjs"
|
|
17
|
+
+ },
|
|
18
|
+
+ "./lexer/prepare-tokens": {
|
|
19
|
+
+ "import": "./lib/lexer/prepare-tokens.js",
|
|
20
|
+
+ "require": "./cjs/lexer/prepare-tokens.cjs"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"browser": {
|