@markuplint/types 5.0.0-rc.0 → 5.0.0-rc.2

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/defs.js CHANGED
@@ -7,13 +7,21 @@ import { Token, TokenCollection } from './token/index.js';
7
7
  import { checkSerializedPermissionsPolicy } from './w3c/check-serialized-permissions-policy.js';
8
8
  import { checkAutoComplete } from './whatwg/check-autocomplete.js';
9
9
  import { checkDateTime } from './whatwg/check-datetime/index.js';
10
+ import { checkDateString } from './whatwg/check-datetime/date-string.js';
11
+ import { checkLocalDateAndTimeString } from './whatwg/check-datetime/local-date-and-time-string.js';
12
+ import { checkMonthString } from './whatwg/check-datetime/month-string.js';
13
+ import { checkTimeString } from './whatwg/check-datetime/time-string.js';
14
+ import { checkWeekString } from './whatwg/check-datetime/week-string.js';
10
15
  import { checkMIMEType } from './whatwg/check-mime-type.js';
16
+ import { checkURL } from './whatwg/check-url.js';
11
17
  import { isAbsURL } from './whatwg/is-abs-url.js';
12
18
  import { isBrowserContextName } from './whatwg/is-browser-context-name.js';
13
19
  import { isCustomElementName } from './whatwg/is-custom-element-name.js';
14
20
  import { isItempropName } from './whatwg/is-itemprop-name.js';
15
21
  import { isNavigableTargetName } from './whatwg/is-navigable-target-name.js';
16
22
  import { checkLinkType } from './whatwg/check-link-type.js';
23
+ import { isEmail } from './whatwg/check-email.js';
24
+ import { isSimpleColor } from './whatwg/check-simple-color.js';
17
25
  /**
18
26
  * Built-in type definitions registry for HTML attribute value validation.
19
27
  *
@@ -187,6 +195,76 @@ export const defs = {
187
195
  ],
188
196
  is: checkDateTime(),
189
197
  },
198
+ SimpleColor: {
199
+ ref: 'https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#valid-simple-colour',
200
+ expects: [
201
+ {
202
+ type: 'format',
203
+ value: 'simple color',
204
+ },
205
+ ],
206
+ is: matches(isSimpleColor()),
207
+ },
208
+ Email: {
209
+ ref: 'https://html.spec.whatwg.org/multipage/input.html#valid-e-mail-address',
210
+ expects: [
211
+ {
212
+ type: 'format',
213
+ value: 'email address',
214
+ },
215
+ ],
216
+ is: matches(isEmail()),
217
+ },
218
+ DateString: {
219
+ ref: 'https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#dates',
220
+ expects: [
221
+ {
222
+ type: 'format',
223
+ value: 'date string',
224
+ },
225
+ ],
226
+ is: checkDateString(),
227
+ },
228
+ TimeString: {
229
+ ref: 'https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#times',
230
+ expects: [
231
+ {
232
+ type: 'format',
233
+ value: 'time string',
234
+ },
235
+ ],
236
+ is: checkTimeString(),
237
+ },
238
+ MonthString: {
239
+ ref: 'https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#months',
240
+ expects: [
241
+ {
242
+ type: 'format',
243
+ value: 'month string',
244
+ },
245
+ ],
246
+ is: checkMonthString(),
247
+ },
248
+ WeekString: {
249
+ ref: 'https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#weeks',
250
+ expects: [
251
+ {
252
+ type: 'format',
253
+ value: 'week string',
254
+ },
255
+ ],
256
+ is: checkWeekString(),
257
+ },
258
+ LocalDateTimeString: {
259
+ ref: 'https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#local-dates-and-times',
260
+ expects: [
261
+ {
262
+ type: 'format',
263
+ value: 'local date and time string',
264
+ },
265
+ ],
266
+ is: checkLocalDateAndTimeString(),
267
+ },
190
268
  /**
191
269
  * It doesn't check the meaningless number less than -1
192
270
  * that is the same as -1.
@@ -218,24 +296,28 @@ export const defs = {
218
296
  },
219
297
  ],
220
298
  ref: 'https://tools.ietf.org/rfc/bcp/bcp47.html',
221
- is: matches(isBCP47(), { reason: 'unexpected-token' }),
299
+ // Empty string is valid per HTML LS: "the language is set to unknown"
300
+ // https://html.spec.whatwg.org/multipage/dom.html#the-lang-and-xml:lang-attributes
301
+ is: value => (value === '' ? matched() : matches(isBCP47(), { reason: 'unexpected-token' })(value)),
222
302
  },
223
303
  /**
224
- * **NO IMPLEMENT NEVER**
225
- *
226
- * We can evaluate the absolute URL through WHATWG API,
227
- * but it isn't easy to check the relative URL.
228
- * And the relative URL expects almost all of the characters.
229
- * In short, this checking is meaningless.
304
+ * Validates a URL (potentially surrounded by spaces) per WHATWG URL Standard.
305
+ * Uses `new URL()` for structural parsing plus strict checks for illegal
306
+ * whitespace, malformed percent-encoding, and C0 control characters.
307
+ * Relative URLs are resolved against a dummy base for syntax validation.
230
308
  *
231
- * So it always returns the matched object.
309
+ * Previously this was always-matched ("NO IMPLEMENT NEVER") because
310
+ * relative URLs accept almost any character string. After investigating
311
+ * nu-html-checker's galimatias parser, we found that resolving relative
312
+ * URLs against a dummy base and applying strict pre-checks effectively
313
+ * catches common URL errors (illegal whitespace, malformed encoding,
314
+ * control characters, structurally broken URLs).
232
315
  *
233
- * If you want to expect the URL without multi-byte characters,
234
- * it should use another rule.
316
+ * @see https://github.com/markuplint/markuplint/issues/3595
235
317
  */
236
318
  URL: {
237
319
  ref: 'https://html.spec.whatwg.org/multipage/urls-and-fetching.html#valid-url-potentially-surrounded-by-spaces',
238
- is: () => matched(),
320
+ is: checkURL(),
239
321
  },
240
322
  /**
241
323
  * Fail if it inclides "data" or "javascript" scheme.
@@ -260,6 +342,36 @@ export const defs = {
260
342
  ref: 'https://url.spec.whatwg.org/#syntax-url-absolute',
261
343
  is: matches(isAbsURL()),
262
344
  },
345
+ /**
346
+ * Subresource Integrity metadata: one or more space-separated
347
+ * `hash-algo-base64` tokens where algo is sha256, sha384, or sha512.
348
+ *
349
+ * Note: The SRI spec also allows `?options` suffix (e.g., `sha256-abc?ct=...`)
350
+ * but this is not widely used and not tested by nu-validator.
351
+ *
352
+ * @see https://w3c.github.io/webappsec-subresource-integrity/#integrity-metadata-description
353
+ */
354
+ SRIHash: {
355
+ ref: 'https://w3c.github.io/webappsec-subresource-integrity/#integrity-metadata-description',
356
+ expects: [
357
+ {
358
+ type: 'format',
359
+ value: 'SRI hash',
360
+ },
361
+ ],
362
+ is(value) {
363
+ const tokens = value.trim().split(/\s+/);
364
+ if (tokens.length === 0 || (tokens.length === 1 && tokens[0] === '')) {
365
+ return unmatched(value, 'empty-token');
366
+ }
367
+ for (const token of tokens) {
368
+ if (!/^sha(?:256|384|512)-[\w+/]+=*$/.test(token)) {
369
+ return unmatched(value, 'unexpected-token');
370
+ }
371
+ }
372
+ return matched();
373
+ },
374
+ },
263
375
  HashName: {
264
376
  ref: 'https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#valid-hash-name-reference',
265
377
  expects: [
@@ -456,7 +568,8 @@ export const defs = {
456
568
  const { num, unit } = splitUnit(descriptor.value);
457
569
  switch (unit) {
458
570
  case 'w': {
459
- if (!isUint(num)) {
571
+ // Width descriptor must be a positive integer (> 0)
572
+ if (!isUint(num) || Number(num) <= 0) {
460
573
  return unmatched(value, 'unexpected-token', {
461
574
  expects: [
462
575
  {
@@ -470,7 +583,8 @@ export const defs = {
470
583
  break;
471
584
  }
472
585
  case 'x': {
473
- if (!isFloat(num)) {
586
+ // Pixel density descriptor must be a positive number (> 0)
587
+ if (!isFloat(num) || Number(num) <= 0) {
474
588
  return unmatched(value, 'unexpected-token', {
475
589
  expects: [
476
590
  {
@@ -10,7 +10,7 @@ import type { FormattedPrimitiveTypeCheck, MatchedResult, UnmatchedResult, Unmat
10
10
  export declare function matches(checker: FormattedPrimitiveTypeCheck, options?: UnmatchedResultOptions & {
11
11
  readonly ref?: string;
12
12
  readonly reason?: UnmatchedResultReason;
13
- }): (value: string) => UnmatchedResult | MatchedResult;
13
+ }): (value: string) => MatchedResult | UnmatchedResult;
14
14
  /**
15
15
  * Creates a successful match result.
16
16
  *
@@ -58,7 +58,7 @@ export declare class TokenCollection extends Array<Token> {
58
58
  expects?: Expect[];
59
59
  ref?: string;
60
60
  cache?: boolean;
61
- }): UnmatchedResult | import("../types.js").MatchedResult;
61
+ }): import("../types.js").MatchedResult | UnmatchedResult;
62
62
  /**
63
63
  * Splits this collection into chunks of the specified size.
64
64
  *
@@ -25,14 +25,6 @@ export declare class Token {
25
25
  * @see https://infra.spec.whatwg.org/#ascii-whitespace
26
26
  */
27
27
  static readonly whitespace: ReadonlyArray<string>;
28
- /**
29
- * @deprecated Use {@link getPosition} instead. Will be removed in v5.0.0.
30
- */
31
- static getCol(value: string, offset: number): number;
32
- /**
33
- * @deprecated Use {@link getPosition} instead. Will be removed in v5.0.0.
34
- */
35
- static getLine(value: string, offset: number): number;
36
28
  /**
37
29
  * Calculates the line and column position at the given offset within a string.
38
30
  *
@@ -51,7 +43,7 @@ export declare class Token {
51
43
  * @param separators - Optional separator characters to detect
52
44
  * @returns The token type number (WhiteSpace, Comma, or Ident)
53
45
  */
54
- static getType(value: string, separators?: readonly string[]): 1 | 13 | 18;
46
+ static getType(value: string, separators?: readonly string[]): 1 | 18 | 13;
55
47
  /**
56
48
  * Calculates a new position by shifting from a token's offset.
57
49
  *
@@ -23,19 +23,6 @@ export class Token {
23
23
  * @see https://infra.spec.whatwg.org/#ascii-whitespace
24
24
  */
25
25
  static whitespace = ['\u0009', '\u000A', '\u000C', '\u000D', '\u0020'];
26
- /**
27
- * @deprecated Use {@link getPosition} instead. Will be removed in v5.0.0.
28
- */
29
- static getCol(value, offset) {
30
- const lines = value.slice(0, offset).split(/\n/);
31
- return (lines.at(-1) ?? '').length + 1;
32
- }
33
- /**
34
- * @deprecated Use {@link getPosition} instead. Will be removed in v5.0.0.
35
- */
36
- static getLine(value, offset) {
37
- return value.slice(0, offset).split(/\n/).length;
38
- }
39
26
  /**
40
27
  * Calculates the line and column position at the given offset within a string.
41
28
  *
@@ -5,9 +5,9 @@
5
5
  */
6
6
  export type Type = KeywordDefinedType | List | Enum | Number | Directive | Pattern;
7
7
  export type KeywordDefinedType = CssSyntax | ExtendedType | HtmlAttrRequirement;
8
- export type CssSyntax = "<'--*'>" | "<'-moz-appearance'>" | "<'-moz-background-clip'>" | "<'-moz-binding'>" | "<'-moz-border-bottom-colors'>" | "<'-moz-border-left-colors'>" | "<'-moz-border-radius-bottomleft'>" | "<'-moz-border-radius-bottomright'>" | "<'-moz-border-radius-topleft'>" | "<'-moz-border-radius-topright'>" | "<'-moz-border-right-colors'>" | "<'-moz-border-top-colors'>" | "<'-moz-context-properties'>" | "<'-moz-control-character-visibility'>" | "<'-moz-float-edge'>" | "<'-moz-force-broken-image-icon'>" | "<'-moz-image-region'>" | "<'-moz-orient'>" | "<'-moz-osx-font-smoothing'>" | "<'-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-user-select'>" | "<'-moz-window-dragging'>" | "<'-moz-window-shadow'>" | "<'-ms-accelerator'>" | "<'-ms-block-progression'>" | "<'-ms-content-zoom-chaining'>" | "<'-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-content-zooming'>" | "<'-ms-filter'>" | "<'-ms-flex-align'>" | "<'-ms-flex-item-align'>" | "<'-ms-flex-line-pack'>" | "<'-ms-flex-negative'>" | "<'-ms-flex-order'>" | "<'-ms-flex-pack'>" | "<'-ms-flex-positive'>" | "<'-ms-flex-preferred-size'>" | "<'-ms-flow-from'>" | "<'-ms-flow-into'>" | "<'-ms-grid-column-align'>" | "<'-ms-grid-columns'>" | "<'-ms-grid-row-align'>" | "<'-ms-grid-rows'>" | "<'-ms-high-contrast-adjust'>" | "<'-ms-hyphenate-limit-chars'>" | "<'-ms-hyphenate-limit-last'>" | "<'-ms-hyphenate-limit-lines'>" | "<'-ms-hyphenate-limit-zone'>" | "<'-ms-ime-align'>" | "<'-ms-interpolation-mode'>" | "<'-ms-overflow-style'>" | "<'-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-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-text-autospace'>" | "<'-ms-touch-select'>" | "<'-ms-user-select'>" | "<'-ms-wrap-flow'>" | "<'-ms-wrap-margin'>" | "<'-ms-wrap-through'>" | "<'-webkit-appearance'>" | "<'-webkit-background-clip'>" | "<'-webkit-border-before'>" | "<'-webkit-border-before-color'>" | "<'-webkit-border-before-style'>" | "<'-webkit-border-before-width'>" | "<'-webkit-box-reflect'>" | "<'-webkit-column-break-after'>" | "<'-webkit-column-break-before'>" | "<'-webkit-column-break-inside'>" | "<'-webkit-font-smoothing'>" | "<'-webkit-line-clamp'>" | "<'-webkit-mask'>" | "<'-webkit-mask-attachment'>" | "<'-webkit-mask-box-image'>" | "<'-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-print-color-adjust'>" | "<'-webkit-tap-highlight-color'>" | "<'-webkit-text-fill-color'>" | "<'-webkit-text-security'>" | "<'-webkit-text-stroke'>" | "<'-webkit-text-stroke-color'>" | "<'-webkit-text-stroke-width'>" | "<'-webkit-touch-callout'>" | "<'-webkit-user-drag'>" | "<'-webkit-user-modify'>" | "<'-webkit-user-select'>" | "<'accent-color'>" | "<'align-content'>" | "<'align-items'>" | "<'align-self'>" | "<'align-tracks'>" | "<'alignment-baseline'>" | "<'all'>" | "<'anchor-name'>" | "<'anchor-scope'>" | "<'animation'>" | "<'animation-composition'>" | "<'animation-delay'>" | "<'animation-direction'>" | "<'animation-duration'>" | "<'animation-fill-mode'>" | "<'animation-iteration-count'>" | "<'animation-name'>" | "<'animation-play-state'>" | "<'animation-range'>" | "<'animation-range-end'>" | "<'animation-range-start'>" | "<'animation-timeline'>" | "<'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'>" | "<'baseline-shift'>" | "<'behavior'>" | "<'block-size'>" | "<'border'>" | "<'border-block'>" | "<'border-block-color'>" | "<'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-block-style'>" | "<'border-block-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-color'>" | "<'border-inline-end'>" | "<'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-inline-style'>" | "<'border-inline-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'>" | "<'clip-rule'>" | "<'color'>" | "<'color-interpolation-filters'>" | "<'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-block-size'>" | "<'contain-intrinsic-height'>" | "<'contain-intrinsic-inline-size'>" | "<'contain-intrinsic-size'>" | "<'contain-intrinsic-width'>" | "<'container'>" | "<'container-name'>" | "<'container-type'>" | "<'content'>" | "<'content-visibility'>" | "<'counter-increment'>" | "<'counter-reset'>" | "<'counter-set'>" | "<'cue'>" | "<'cue-after'>" | "<'cue-before'>" | "<'cursor'>" | "<'cx'>" | "<'cy'>" | "<'d'>" | "<'direction'>" | "<'display'>" | "<'dominant-baseline'>" | "<'empty-cells'>" | "<'field-sizing'>" | "<'fill'>" | "<'fill-opacity'>" | "<'fill-rule'>" | "<'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-palette'>" | "<'font-size'>" | "<'font-size-adjust'>" | "<'font-smooth'>" | "<'font-stretch'>" | "<'font-style'>" | "<'font-synthesis'>" | "<'font-synthesis-position'>" | "<'font-synthesis-small-caps'>" | "<'font-synthesis-style'>" | "<'font-synthesis-weight'>" | "<'font-variant'>" | "<'font-variant-alternates'>" | "<'font-variant-caps'>" | "<'font-variant-east-asian'>" | "<'font-variant-emoji'>" | "<'font-variant-ligatures'>" | "<'font-variant-numeric'>" | "<'font-variant-position'>" | "<'font-variation-settings'>" | "<'font-weight'>" | "<'forced-color-adjust'>" | "<'gap'>" | "<'glyph-orientation-horizontal'>" | "<'glyph-orientation-vertical'>" | "<'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'>" | "<'hyphenate-limit-chars'>" | "<'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'>" | "<'interpolate-size'>" | "<'isolation'>" | "<'justify-content'>" | "<'justify-items'>" | "<'justify-self'>" | "<'justify-tracks'>" | "<'kerning'>" | "<'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'>" | "<'marker'>" | "<'marker-end'>" | "<'marker-mid'>" | "<'marker-start'>" | "<'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'>" | "<'overlay'>" | "<'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'>" | "<'page-break-after'>" | "<'page-break-before'>" | "<'page-break-inside'>" | "<'paint-order'>" | "<'pause'>" | "<'pause-after'>" | "<'pause-before'>" | "<'perspective'>" | "<'perspective-origin'>" | "<'place-content'>" | "<'place-items'>" | "<'place-self'>" | "<'pointer-events'>" | "<'position'>" | "<'position-anchor'>" | "<'position-area'>" | "<'position-try'>" | "<'position-try-fallbacks'>" | "<'position-try-order'>" | "<'position-visibility'>" | "<'print-color-adjust'>" | "<'quotes'>" | "<'r'>" | "<'resize'>" | "<'rest'>" | "<'rest-after'>" | "<'rest-before'>" | "<'right'>" | "<'rotate'>" | "<'row-gap'>" | "<'ruby-align'>" | "<'ruby-merge'>" | "<'ruby-position'>" | "<'rx'>" | "<'ry'>" | "<'scale'>" | "<'scroll-behavior'>" | "<'scroll-margin'>" | "<'scroll-margin-block'>" | "<'scroll-margin-block-end'>" | "<'scroll-margin-block-start'>" | "<'scroll-margin-bottom'>" | "<'scroll-margin-inline'>" | "<'scroll-margin-inline-end'>" | "<'scroll-margin-inline-start'>" | "<'scroll-margin-left'>" | "<'scroll-margin-right'>" | "<'scroll-margin-top'>" | "<'scroll-padding'>" | "<'scroll-padding-block'>" | "<'scroll-padding-block-end'>" | "<'scroll-padding-block-start'>" | "<'scroll-padding-bottom'>" | "<'scroll-padding-inline'>" | "<'scroll-padding-inline-end'>" | "<'scroll-padding-inline-start'>" | "<'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'>" | "<'scrollbar-color'>" | "<'scrollbar-gutter'>" | "<'scrollbar-width'>" | "<'shape-image-threshold'>" | "<'shape-margin'>" | "<'shape-outside'>" | "<'shape-rendering'>" | "<'speak'>" | "<'speak-as'>" | "<'src'>" | "<'stroke'>" | "<'stroke-dasharray'>" | "<'stroke-dashoffset'>" | "<'stroke-linecap'>" | "<'stroke-linejoin'>" | "<'stroke-miterlimit'>" | "<'stroke-opacity'>" | "<'stroke-width'>" | "<'tab-size'>" | "<'table-layout'>" | "<'text-align'>" | "<'text-align-last'>" | "<'text-anchor'>" | "<'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-spacing-trim'>" | "<'text-transform'>" | "<'text-underline-offset'>" | "<'text-underline-position'>" | "<'text-wrap'>" | "<'text-wrap-mode'>" | "<'text-wrap-style'>" | "<'timeline-scope'>" | "<'top'>" | "<'touch-action'>" | "<'transform'>" | "<'transform-box'>" | "<'transform-origin'>" | "<'transform-style'>" | "<'transition'>" | "<'transition-behavior'>" | "<'transition-delay'>" | "<'transition-duration'>" | "<'transition-property'>" | "<'transition-timing-function'>" | "<'translate'>" | "<'unicode-bidi'>" | "<'unicode-range'>" | "<'user-select'>" | "<'vector-effect'>" | "<'vertical-align'>" | "<'view-timeline'>" | "<'view-timeline-axis'>" | "<'view-timeline-inset'>" | "<'view-timeline-name'>" | "<'view-transition-name'>" | "<'visibility'>" | "<'voice-balance'>" | "<'voice-duration'>" | "<'voice-family'>" | "<'voice-pitch'>" | "<'voice-range'>" | "<'voice-rate'>" | "<'voice-stress'>" | "<'voice-volume'>" | "<'white-space'>" | "<'white-space-collapse'>" | "<'white-space-trim'>" | "<'widows'>" | "<'width'>" | "<'will-change'>" | "<'word-break'>" | "<'word-spacing'>" | "<'word-wrap'>" | "<'writing-mode'>" | "<'x'>" | "<'y'>" | "<'z-index'>" | "<'zoom'>" | '<(-token>' | '<)-token>' | '<-legacy-gradient>' | '<-legacy-linear-gradient-arguments>' | '<-legacy-linear-gradient>' | '<-legacy-radial-gradient-arguments>' | '<-legacy-radial-gradient-shape>' | '<-legacy-radial-gradient-size>' | '<-legacy-radial-gradient>' | '<-legacy-repeating-linear-gradient>' | '<-legacy-repeating-radial-gradient>' | '<-ms-filter-function-legacy>' | '<-ms-filter-function-list>' | '<-ms-filter-function-progid>' | '<-ms-filter-function>' | '<-non-standard-color>' | '<-non-standard-display>' | '<-non-standard-font>' | '<-non-standard-generic-family>' | '<-non-standard-image-rendering>' | '<-non-standard-overflow>' | '<-non-standard-size>' | '<-webkit-gradient()>' | '<-webkit-gradient-color-stop>' | '<-webkit-gradient-point>' | '<-webkit-gradient-radius>' | '<-webkit-gradient-type>' | '<-webkit-mask-box-repeat>' | '<CDC-token>' | '<CDO-token>' | '<[-token>' | '<]-token>' | '<abs()>' | '<absolute-color-base>' | '<absolute-color-function>' | '<absolute-size>' | '<acos()>' | '<age>' | '<alpha-value>' | '<an-plus-b>' | '<anchor()>' | '<anchor-element>' | '<anchor-name>' | '<anchor-side>' | '<anchor-size()>' | '<anchor-size>' | '<angle-percentage>' | '<angle>' | '<angular-color-hint>' | '<angular-color-stop-list>' | '<angular-color-stop>' | '<animateable-feature>' | '<any-value>' | '<asin()>' | '<at-keyword-token>' | '<atan()>' | '<atan2()>' | '<attachment>' | '<attr()>' | '<attr-fallback>' | '<attr-matcher>' | '<attr-modifier>' | '<attr-name>' | '<attribute-selector>' | '<auto-repeat>' | '<auto-track-list>' | '<axis>' | '<bad-string-token>' | '<bad-url-token>' | '<baseline-position>' | '<basic-shape>' | '<bcp-47>' | '<bg-clip>' | '<bg-image>' | '<bg-layer>' | '<bg-position>' | '<bg-size>' | '<blend-mode>' | '<blur()>' | '<bottom>' | '<box>' | '<brightness()>' | '<calc()>' | '<calc-constant>' | '<calc-product>' | '<calc-sum>' | '<calc-value>' | '<cf-final-image>' | '<cf-mixing-image>' | '<circle()>' | '<clamp()>' | '<class-selector>' | '<clip-source>' | '<cmyk-component>' | '<colon-token>' | '<color()>' | '<color-base>' | '<color-function>' | '<color-interpolation-method>' | '<color-mix()>' | '<color-space>' | '<color-stop-angle>' | '<color-stop-length>' | '<color-stop-list>' | '<color-stop>' | '<color>' | '<colorspace-params>' | '<combinator>' | '<comma-token>' | '<common-lig-values>' | '<compat-auto>' | '<complex-real-selector-list>' | '<complex-real-selector>' | '<complex-selector-list>' | '<complex-selector-unit>' | '<complex-selector>' | '<composite-style>' | '<compositing-operator>' | '<compound-selector-list>' | '<compound-selector>' | '<conic-gradient()>' | '<container-condition>' | '<container-name>' | '<content-distribution>' | '<content-list>' | '<content-position>' | '<content-replacement>' | '<contextual-alt-values>' | '<contrast()>' | '<coord-box>' | '<cos()>' | '<counter()>' | '<counter-name>' | '<counter-style-name>' | '<counter-style>' | '<counter>' | '<counters()>' | '<cross-fade()>' | '<cubic-bezier-timing-function>' | '<custom-color-space>' | '<custom-ident>' | '<custom-property-name>' | '<dashed-ident>' | '<decibel>' | '<declaration-list>' | '<declaration-value>' | '<declaration>' | '<delim-token>' | '<deprecated-system-color>' | '<device-cmyk()>' | '<dimension-token>' | '<dimension>' | '<discretionary-lig-values>' | '<display-box>' | '<display-inside>' | '<display-internal>' | '<display-legacy>' | '<display-listitem>' | '<display-outside>' | '<drop-shadow()>' | '<easing-function>' | '<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-list>' | '<feature-value-block>' | '<feature-value-declaration-list>' | '<feature-value-declaration>' | '<feature-value-name>' | '<fill-rule>' | '<filter-function-list>' | '<filter-function>' | '<final-bg-layer>' | '<fixed-breadth>' | '<fixed-repeat>' | '<fixed-size>' | '<flex>' | '<font-stretch-absolute>' | '<font-variant-css21>' | '<font-variant-css2>' | '<font-weight-absolute>' | '<font-width-css3>' | '<forgiving-relative-selector-list>' | '<forgiving-selector-list>' | '<frequency-percentage>' | '<frequency>' | '<function-token>' | '<gender>' | '<general-enclosed>' | '<generic-complete>' | '<generic-family>' | '<generic-incomplete>' | '<generic-name>' | '<generic-script-specific>' | '<generic-voice>' | '<geometry-box>' | '<gradient>' | '<grayscale()>' | '<grid-line>' | '<hash-token>' | '<hex-color>' | '<historical-lig-values>' | '<hsl()>' | '<hsla()>' | '<hue-interpolation-method>' | '<hue-rotate()>' | '<hue>' | '<hwb()>' | '<hypot()>' | '<id-selector>' | '<ident-token>' | '<ident>' | '<image()>' | '<image-set()>' | '<image-set-option>' | '<image-src>' | '<image-tags>' | '<image>' | '<inflexible-breadth>' | '<inset()>' | '<inset-area>' | '<integer>' | '<invert()>' | '<keyframe-block-list>' | '<keyframe-block>' | '<keyframe-selector>' | '<keyframes-name>' | '<lab()>' | '<layer()>' | '<layer-name>' | '<lch()>' | '<leader()>' | '<leader-type>' | '<left>' | '<legacy-device-cmyk-syntax>' | '<legacy-pseudo-element-selector>' | '<length-percentage>' | '<length>' | '<light-dark()>' | '<line-name-list>' | '<line-names>' | '<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-without-or>' | '<media-condition>' | '<media-feature>' | '<media-in-parens>' | '<media-not>' | '<media-or>' | '<media-query-list>' | '<media-query>' | '<media-type>' | '<mf-boolean>' | '<mf-name>' | '<mf-plain>' | '<mf-range>' | '<mf-value>' | '<min()>' | '<minmax()>' | '<mod()>' | '<modern-device-cmyk-syntax>' | '<name-repeat>' | '<named-color>' | '<namespace-prefix>' | '<ns-prefix>' | '<nth>' | '<number-one-or-greater>' | '<number-percentage>' | '<number-token>' | '<number-zero-one>' | '<number>' | '<numeric-figure-values>' | '<numeric-fraction-values>' | '<numeric-spacing-values>' | '<offset-path>' | '<oklab()>' | '<oklch()>' | '<opacity()>' | '<outline-radius>' | '<overflow-position>' | '<page-body>' | '<page-margin-box-type>' | '<page-margin-box>' | '<page-selector-list>' | '<page-selector>' | '<page-size>' | '<paint()>' | '<paint>' | '<palette-identifier>' | '<path()>' | '<percentage-token>' | '<percentage>' | '<perspective()>' | '<polar-color-space>' | '<polygon()>' | '<position-area>' | '<position>' | '<pow()>' | '<predefined-rgb-params>' | '<predefined-rgb>' | '<pseudo-class-selector>' | '<pseudo-compound-selector>' | '<pseudo-element-selector>' | '<pseudo-page>' | '<query-in-parens>' | '<quote>' | '<radial-gradient()>' | '<ratio>' | '<ray()>' | '<ray-size>' | '<rect()>' | '<rectangular-color-space>' | '<relative-real-selector-list>' | '<relative-real-selector>' | '<relative-selector-list>' | '<relative-selector>' | '<relative-size>' | '<rem()>' | '<repeat-style>' | '<repeating-conic-gradient()>' | '<repeating-linear-gradient()>' | '<repeating-radial-gradient()>' | '<resolution>' | '<reversed-counter-name>' | '<rgb()>' | '<rgba()>' | '<right>' | '<rotate()>' | '<rotate3d()>' | '<rotateX()>' | '<rotateY()>' | '<rotateZ()>' | '<round()>' | '<rounding-strategy>' | '<saturate()>' | '<scale()>' | '<scale3d()>' | '<scaleX()>' | '<scaleY()>' | '<scaleZ()>' | '<scope-end>' | '<scope-start>' | '<scroll()>' | '<scroller>' | '<selector-list>' | '<self-position>' | '<semicolon-token>' | '<semitones>' | '<sepia()>' | '<shadow-t>' | '<shadow>' | '<shape-box>' | '<shape-radius>' | '<shape>' | '<side-or-corner>' | '<sign()>' | '<simple-selector-list>' | '<simple-selector>' | '<sin()>' | '<single-animation-composition>' | '<single-animation-direction>' | '<single-animation-fill-mode>' | '<single-animation-iteration-count>' | '<single-animation-play-state>' | '<single-animation-timeline>' | '<single-animation>' | '<single-transition-property>' | '<single-transition>' | '<size-feature>' | '<size>' | '<skew()>' | '<skewX()>' | '<skewY()>' | '<sqrt()>' | '<step-position>' | '<step-timing-function>' | '<string-token>' | '<string>' | '<style-condition>' | '<style-feature>' | '<style-in-parens>' | '<style-query>' | '<subclass-selector>' | '<supports-condition>' | '<supports-decl>' | '<supports-feature>' | '<supports-in-parens>' | '<supports-selector-fn>' | '<svg-length>' | '<svg-writing-mode>' | '<symbol>' | '<system-color>' | '<system-family-name>' | '<tan()>' | '<target-counter()>' | '<target-counters()>' | '<target-text()>' | '<target>' | '<time-percentage>' | '<time>' | '<timeline-range-name>' | '<top>' | '<track-breadth>' | '<track-list>' | '<track-repeat>' | '<track-size>' | '<transform-function>' | '<transform-list>' | '<transition-behavior-value>' | '<translate()>' | '<translate3d()>' | '<translateX()>' | '<translateY()>' | '<translateZ()>' | '<try-size>' | '<try-tactic>' | '<type-or-unit>' | '<type-selector>' | '<urange>' | '<url-modifier>' | '<url-token>' | '<url>' | '<var()>' | '<view()>' | '<viewport-length>' | '<visual-box>' | '<whitespace-token>' | '<wq-name>' | '<x>' | '<xywh()>' | '<xyz-params>' | '<xyz-space>' | '<y>' | '<zero>' | '<{-token>' | '<}-token>';
9
- export type ExtendedType = "<'color-profile'>" | "<'color-rendering'>" | "<'enable-background'>" | '<animatable-value>' | '<begin-value-list>' | '<class-list>' | '<clock-value>' | '<color-matrix>' | '<css-declaration-list>' | '<dasharray>' | '<end-value-list>' | '<key-points>' | '<key-splines>' | '<key-times>' | '<list-of-lengths>' | '<list-of-numbers>' | '<list-of-percentages>' | '<list-of-svg-feature-string>' | '<list-of-value>' | '<number-optional-number>' | '<origin>' | '<points>' | '<preserve-aspect-ratio>' | '<rotate>' | '<svg-font-size-adjust>' | '<svg-font-size>' | '<svg-path>' | '<system-language>' | '<text-coordinate>' | '<view-box>' | 'AbsoluteURL' | 'Accept' | 'Any' | 'AutoComplete' | 'BCP47' | 'BaseURL' | 'BrowsingContextName' | 'BrowsingContextNameOrKeyword' | 'CustomElementName' | 'DOMID' | 'DateTime' | 'FunctionBody' | 'HTTPSchemaURL' | 'HashName' | 'IconSize' | 'Int' | 'ItemProp' | 'JSON' | 'LinkTypeForAnchorAndAreaElement' | 'LinkTypeForFormElement' | 'LinkTypeForLinkElement' | 'LinkTypeForLinkElementInBody' | 'MIMEType' | 'NavigableTargetName' | 'NavigableTargetNameOrKeyword' | 'NoEmptyAny' | 'Number' | 'OneCodePointChar' | 'OneLineAny' | 'Pattern' | 'SerializedPermissionsPolicy' | 'SourceSizeList' | 'Srcset' | 'TabIndex' | 'URL' | 'Uint' | 'ValidCustomCommand' | 'XMLName' | 'Zero';
10
- export type HtmlAttrRequirement = 'Boolean';
8
+ export type CssSyntax = "<'--*'>" | "<'-moz-appearance'>" | "<'-moz-background-clip'>" | "<'-moz-binding'>" | "<'-moz-border-bottom-colors'>" | "<'-moz-border-left-colors'>" | "<'-moz-border-radius-bottomleft'>" | "<'-moz-border-radius-bottomright'>" | "<'-moz-border-radius-topleft'>" | "<'-moz-border-radius-topright'>" | "<'-moz-border-right-colors'>" | "<'-moz-border-top-colors'>" | "<'-moz-context-properties'>" | "<'-moz-control-character-visibility'>" | "<'-moz-float-edge'>" | "<'-moz-force-broken-image-icon'>" | "<'-moz-orient'>" | "<'-moz-osx-font-smoothing'>" | "<'-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-user-select'>" | "<'-moz-window-dragging'>" | "<'-moz-window-shadow'>" | "<'-ms-accelerator'>" | "<'-ms-block-progression'>" | "<'-ms-content-zoom-chaining'>" | "<'-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-content-zooming'>" | "<'-ms-filter'>" | "<'-ms-flex-align'>" | "<'-ms-flex-item-align'>" | "<'-ms-flex-line-pack'>" | "<'-ms-flex-negative'>" | "<'-ms-flex-order'>" | "<'-ms-flex-pack'>" | "<'-ms-flex-positive'>" | "<'-ms-flex-preferred-size'>" | "<'-ms-flow-from'>" | "<'-ms-flow-into'>" | "<'-ms-grid-column-align'>" | "<'-ms-grid-columns'>" | "<'-ms-grid-row-align'>" | "<'-ms-grid-rows'>" | "<'-ms-high-contrast-adjust'>" | "<'-ms-hyphenate-limit-chars'>" | "<'-ms-hyphenate-limit-last'>" | "<'-ms-hyphenate-limit-lines'>" | "<'-ms-hyphenate-limit-zone'>" | "<'-ms-ime-align'>" | "<'-ms-interpolation-mode'>" | "<'-ms-overflow-style'>" | "<'-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-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-text-autospace'>" | "<'-ms-touch-select'>" | "<'-ms-user-select'>" | "<'-ms-wrap-flow'>" | "<'-ms-wrap-margin'>" | "<'-ms-wrap-through'>" | "<'-webkit-appearance'>" | "<'-webkit-background-clip'>" | "<'-webkit-border-before'>" | "<'-webkit-border-before-color'>" | "<'-webkit-border-before-style'>" | "<'-webkit-border-before-width'>" | "<'-webkit-box-reflect'>" | "<'-webkit-column-break-after'>" | "<'-webkit-column-break-before'>" | "<'-webkit-column-break-inside'>" | "<'-webkit-font-smoothing'>" | "<'-webkit-line-clamp'>" | "<'-webkit-mask'>" | "<'-webkit-mask-attachment'>" | "<'-webkit-mask-box-image'>" | "<'-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-print-color-adjust'>" | "<'-webkit-tap-highlight-color'>" | "<'-webkit-text-fill-color'>" | "<'-webkit-text-security'>" | "<'-webkit-text-stroke'>" | "<'-webkit-text-stroke-color'>" | "<'-webkit-text-stroke-width'>" | "<'-webkit-touch-callout'>" | "<'-webkit-user-drag'>" | "<'-webkit-user-modify'>" | "<'-webkit-user-select'>" | "<'accent-color'>" | "<'align-content'>" | "<'align-items'>" | "<'align-self'>" | "<'align-tracks'>" | "<'alignment-baseline'>" | "<'all'>" | "<'anchor-name'>" | "<'anchor-scope'>" | "<'animation'>" | "<'animation-composition'>" | "<'animation-delay'>" | "<'animation-direction'>" | "<'animation-duration'>" | "<'animation-fill-mode'>" | "<'animation-iteration-count'>" | "<'animation-name'>" | "<'animation-play-state'>" | "<'animation-range'>" | "<'animation-range-end'>" | "<'animation-range-start'>" | "<'animation-timeline'>" | "<'animation-timing-function'>" | "<'animation-trigger'>" | "<'appearance'>" | "<'aspect-ratio'>" | "<'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'>" | "<'baseline-shift'>" | "<'baseline-source'>" | "<'behavior'>" | "<'block-size'>" | "<'border'>" | "<'border-block'>" | "<'border-block-color'>" | "<'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-block-style'>" | "<'border-block-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-color'>" | "<'border-inline-end'>" | "<'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-inline-style'>" | "<'border-inline-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-animation'>" | "<'caret-color'>" | "<'caret-shape'>" | "<'clear'>" | "<'clip'>" | "<'clip-path'>" | "<'clip-rule'>" | "<'color'>" | "<'color-interpolation-filters'>" | "<'color-scheme'>" | "<'column-count'>" | "<'column-fill'>" | "<'column-gap'>" | "<'column-height'>" | "<'column-rule'>" | "<'column-rule-color'>" | "<'column-rule-style'>" | "<'column-rule-width'>" | "<'column-span'>" | "<'column-width'>" | "<'column-wrap'>" | "<'columns'>" | "<'contain'>" | "<'contain-intrinsic-block-size'>" | "<'contain-intrinsic-height'>" | "<'contain-intrinsic-inline-size'>" | "<'contain-intrinsic-size'>" | "<'contain-intrinsic-width'>" | "<'container'>" | "<'container-name'>" | "<'container-type'>" | "<'content'>" | "<'content-visibility'>" | "<'corner-block-end-shape'>" | "<'corner-block-start-shape'>" | "<'corner-bottom-left-shape'>" | "<'corner-bottom-right-shape'>" | "<'corner-bottom-shape'>" | "<'corner-end-end-shape'>" | "<'corner-end-start-shape'>" | "<'corner-inline-end-shape'>" | "<'corner-inline-start-shape'>" | "<'corner-left-shape'>" | "<'corner-right-shape'>" | "<'corner-shape'>" | "<'corner-start-end-shape'>" | "<'corner-start-start-shape'>" | "<'corner-top-left-shape'>" | "<'corner-top-right-shape'>" | "<'corner-top-shape'>" | "<'counter-increment'>" | "<'counter-reset'>" | "<'counter-set'>" | "<'cue'>" | "<'cue-after'>" | "<'cue-before'>" | "<'cursor'>" | "<'cx'>" | "<'cy'>" | "<'d'>" | "<'direction'>" | "<'display'>" | "<'dominant-baseline'>" | "<'dynamic-range-limit'>" | "<'empty-cells'>" | "<'field-sizing'>" | "<'fill'>" | "<'fill-opacity'>" | "<'fill-rule'>" | "<'filter'>" | "<'flex'>" | "<'flex-basis'>" | "<'flex-direction'>" | "<'flex-flow'>" | "<'flex-grow'>" | "<'flex-shrink'>" | "<'flex-wrap'>" | "<'float'>" | "<'flood-color'>" | "<'flood-opacity'>" | "<'font'>" | "<'font-family'>" | "<'font-feature-settings'>" | "<'font-kerning'>" | "<'font-language-override'>" | "<'font-optical-sizing'>" | "<'font-palette'>" | "<'font-size'>" | "<'font-size-adjust'>" | "<'font-smooth'>" | "<'font-stretch'>" | "<'font-style'>" | "<'font-synthesis'>" | "<'font-synthesis-position'>" | "<'font-synthesis-small-caps'>" | "<'font-synthesis-style'>" | "<'font-synthesis-weight'>" | "<'font-variant'>" | "<'font-variant-alternates'>" | "<'font-variant-caps'>" | "<'font-variant-east-asian'>" | "<'font-variant-emoji'>" | "<'font-variant-ligatures'>" | "<'font-variant-numeric'>" | "<'font-variant-position'>" | "<'font-variation-settings'>" | "<'font-weight'>" | "<'font-width'>" | "<'forced-color-adjust'>" | "<'gap'>" | "<'glyph-orientation-horizontal'>" | "<'glyph-orientation-vertical'>" | "<'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'>" | "<'hyphenate-limit-chars'>" | "<'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'>" | "<'interactivity'>" | "<'interest-delay'>" | "<'interest-delay-end'>" | "<'interest-delay-start'>" | "<'interpolate-size'>" | "<'isolation'>" | "<'justify-content'>" | "<'justify-items'>" | "<'justify-self'>" | "<'justify-tracks'>" | "<'kerning'>" | "<'left'>" | "<'letter-spacing'>" | "<'lighting-color'>" | "<'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'>" | "<'marker'>" | "<'marker-end'>" | "<'marker-mid'>" | "<'marker-start'>" | "<'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'>" | "<'object-view-box'>" | "<'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'>" | "<'overlay'>" | "<'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'>" | "<'page-break-after'>" | "<'page-break-before'>" | "<'page-break-inside'>" | "<'paint-order'>" | "<'pause'>" | "<'pause-after'>" | "<'pause-before'>" | "<'perspective'>" | "<'perspective-origin'>" | "<'place-content'>" | "<'place-items'>" | "<'place-self'>" | "<'pointer-events'>" | "<'position'>" | "<'position-anchor'>" | "<'position-area'>" | "<'position-try'>" | "<'position-try-fallbacks'>" | "<'position-try-options'>" | "<'position-try-order'>" | "<'position-visibility'>" | "<'print-color-adjust'>" | "<'quotes'>" | "<'r'>" | "<'reading-flow'>" | "<'reading-order'>" | "<'resize'>" | "<'rest'>" | "<'rest-after'>" | "<'rest-before'>" | "<'right'>" | "<'rotate'>" | "<'row-gap'>" | "<'ruby-align'>" | "<'ruby-merge'>" | "<'ruby-overhang'>" | "<'ruby-position'>" | "<'rx'>" | "<'ry'>" | "<'scale'>" | "<'scroll-behavior'>" | "<'scroll-initial-target'>" | "<'scroll-margin'>" | "<'scroll-margin-block'>" | "<'scroll-margin-block-end'>" | "<'scroll-margin-block-start'>" | "<'scroll-margin-bottom'>" | "<'scroll-margin-inline'>" | "<'scroll-margin-inline-end'>" | "<'scroll-margin-inline-start'>" | "<'scroll-margin-left'>" | "<'scroll-margin-right'>" | "<'scroll-margin-top'>" | "<'scroll-marker-group'>" | "<'scroll-padding'>" | "<'scroll-padding-block'>" | "<'scroll-padding-block-end'>" | "<'scroll-padding-block-start'>" | "<'scroll-padding-bottom'>" | "<'scroll-padding-inline'>" | "<'scroll-padding-inline-end'>" | "<'scroll-padding-inline-start'>" | "<'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-target-group'>" | "<'scroll-timeline'>" | "<'scroll-timeline-axis'>" | "<'scroll-timeline-name'>" | "<'scrollbar-color'>" | "<'scrollbar-gutter'>" | "<'scrollbar-width'>" | "<'shape-image-threshold'>" | "<'shape-margin'>" | "<'shape-outside'>" | "<'shape-rendering'>" | "<'speak'>" | "<'speak-as'>" | "<'stop-color'>" | "<'stop-opacity'>" | "<'stroke'>" | "<'stroke-color'>" | "<'stroke-dasharray'>" | "<'stroke-dashoffset'>" | "<'stroke-linecap'>" | "<'stroke-linejoin'>" | "<'stroke-miterlimit'>" | "<'stroke-opacity'>" | "<'stroke-width'>" | "<'tab-size'>" | "<'table-layout'>" | "<'text-align'>" | "<'text-align-last'>" | "<'text-anchor'>" | "<'text-autospace'>" | "<'text-box'>" | "<'text-box-edge'>" | "<'text-box-trim'>" | "<'text-combine-upright'>" | "<'text-decoration'>" | "<'text-decoration-color'>" | "<'text-decoration-inset'>" | "<'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-spacing-trim'>" | "<'text-transform'>" | "<'text-underline-offset'>" | "<'text-underline-position'>" | "<'text-wrap'>" | "<'text-wrap-mode'>" | "<'text-wrap-style'>" | "<'timeline-scope'>" | "<'timeline-trigger'>" | "<'timeline-trigger-exit-range'>" | "<'timeline-trigger-exit-range-end'>" | "<'timeline-trigger-exit-range-start'>" | "<'timeline-trigger-name'>" | "<'timeline-trigger-range'>" | "<'timeline-trigger-range-end'>" | "<'timeline-trigger-range-start'>" | "<'timeline-trigger-source'>" | "<'top'>" | "<'touch-action'>" | "<'transform'>" | "<'transform-box'>" | "<'transform-origin'>" | "<'transform-style'>" | "<'transition'>" | "<'transition-behavior'>" | "<'transition-delay'>" | "<'transition-duration'>" | "<'transition-property'>" | "<'transition-timing-function'>" | "<'translate'>" | "<'trigger-scope'>" | "<'unicode-bidi'>" | "<'user-select'>" | "<'vector-effect'>" | "<'vertical-align'>" | "<'view-timeline'>" | "<'view-timeline-axis'>" | "<'view-timeline-inset'>" | "<'view-timeline-name'>" | "<'view-transition-class'>" | "<'view-transition-name'>" | "<'visibility'>" | "<'voice-balance'>" | "<'voice-duration'>" | "<'voice-family'>" | "<'voice-pitch'>" | "<'voice-range'>" | "<'voice-rate'>" | "<'voice-stress'>" | "<'voice-volume'>" | "<'white-space'>" | "<'white-space-collapse'>" | "<'white-space-trim'>" | "<'widows'>" | "<'width'>" | "<'will-change'>" | "<'word-break'>" | "<'word-spacing'>" | "<'word-wrap'>" | "<'writing-mode'>" | "<'x'>" | "<'y'>" | "<'z-index'>" | "<'zoom'>" | "<(-token>" | "<)-token>" | "<-legacy-gradient>" | "<-legacy-linear-gradient-arguments>" | "<-legacy-linear-gradient>" | "<-legacy-radial-gradient-arguments>" | "<-legacy-radial-gradient-shape>" | "<-legacy-radial-gradient-size>" | "<-legacy-radial-gradient>" | "<-legacy-repeating-linear-gradient>" | "<-legacy-repeating-radial-gradient>" | "<-ms-filter-function-legacy>" | "<-ms-filter-function-list>" | "<-ms-filter-function-progid>" | "<-ms-filter-function>" | "<-non-standard-color>" | "<-non-standard-display>" | "<-non-standard-font>" | "<-non-standard-generic-family>" | "<-non-standard-image-rendering>" | "<-non-standard-overflow>" | "<-non-standard-size>" | "<-webkit-gradient()>" | "<-webkit-gradient-color-stop>" | "<-webkit-gradient-point>" | "<-webkit-gradient-radius>" | "<-webkit-gradient-type>" | "<-webkit-mask-box-repeat>" | "<CDC-token>" | "<CDO-token>" | "<[-token>" | "<]-token>" | "<abs()>" | "<absolute-size>" | "<acos()>" | "<age>" | "<alpha-value>" | "<an+b>" | "<an-plus-b>" | "<anchor()>" | "<anchor-name>" | "<anchor-side>" | "<anchor-size()>" | "<anchor-size>" | "<angle-percentage>" | "<angle>" | "<angular-color-hint>" | "<angular-color-stop-list>" | "<angular-color-stop>" | "<animateable-feature>" | "<animation-action>" | "<any-value>" | "<asin()>" | "<at-keyword-token>" | "<atan()>" | "<atan2()>" | "<attachment>" | "<attr()>" | "<attr-fallback>" | "<attr-matcher>" | "<attr-modifier>" | "<attr-name>" | "<attr-type>" | "<attr-unit>" | "<attribute-selector>" | "<auto-repeat>" | "<auto-track-list>" | "<autospace>" | "<axis>" | "<bad-string-token>" | "<bad-url-token>" | "<baseline-position>" | "<basic-shape-rect>" | "<basic-shape>" | "<bcp-47>" | "<bg-clip>" | "<bg-image>" | "<bg-layer>" | "<bg-position>" | "<bg-size>" | "<blend-mode>" | "<blur()>" | "<bottom>" | "<brightness()>" | "<calc()>" | "<calc-constant>" | "<calc-product>" | "<calc-size()>" | "<calc-size-basis>" | "<calc-sum>" | "<calc-value>" | "<cf-final-image>" | "<cf-mixing-image>" | "<circle()>" | "<clamp()>" | "<class-selector>" | "<clip-source>" | "<cmyk-component>" | "<colon-token>" | "<color()>" | "<color-base>" | "<color-function>" | "<color-interpolation-method>" | "<color-mix()>" | "<color-space>" | "<color-stop-angle>" | "<color-stop-length>" | "<color-stop-list>" | "<color-stop>" | "<color>" | "<colorspace-params>" | "<combinator>" | "<comma-token>" | "<common-lig-values>" | "<compat-auto>" | "<compat-special>" | "<complex-real-selector-list>" | "<complex-real-selector>" | "<complex-selector-list>" | "<complex-selector-unit>" | "<complex-selector>" | "<composite-style>" | "<compositing-operator>" | "<compound-selector-list>" | "<compound-selector>" | "<conic-gradient()>" | "<conic-gradient-syntax>" | "<container-condition>" | "<container-name>" | "<container-query>" | "<content-distribution>" | "<content-list>" | "<content-position>" | "<content-replacement>" | "<contextual-alt-values>" | "<contrast()>" | "<coord-box>" | "<corner-shape-value>" | "<cos()>" | "<counter()>" | "<counter-name>" | "<counter-style-name>" | "<counter-style>" | "<counter>" | "<counters()>" | "<cross-fade()>" | "<cubic-bezier()>" | "<cubic-bezier-easing-function>" | "<cursor-predefined>" | "<custom-color-space>" | "<custom-ident>" | "<custom-params>" | "<custom-property-name>" | "<dasharray>" | "<dashed-ident>" | "<dashndashdigit-ident>" | "<decibel>" | "<declaration-list>" | "<declaration-value>" | "<declaration>" | "<delim-token>" | "<deprecated-system-color>" | "<device-cmyk()>" | "<dimension-token>" | "<dimension>" | "<discretionary-lig-values>" | "<display-box>" | "<display-inside>" | "<display-internal>" | "<display-legacy>" | "<display-listitem>" | "<display-outside>" | "<drop-shadow()>" | "<dynamic-range-limit-mix()>" | "<easing-function>" | "<east-asian-variant-values>" | "<east-asian-width-values>" | "<element()>" | "<ellipse()>" | "<env()>" | "<exp()>" | "<explicit-track-list>" | "<family-name>" | "<feature-tag-value>" | "<feature-type>" | "<feature-value-block-list>" | "<feature-value-block>" | "<feature-value-declaration-list>" | "<feature-value-declaration>" | "<feature-value-name>" | "<filter-function>" | "<filter-value-list>" | "<final-bg-layer>" | "<fit-content()>" | "<fixed-breadth>" | "<fixed-repeat>" | "<fixed-size>" | "<flex>" | "<font-stretch-absolute>" | "<font-variant-css2>" | "<font-weight-absolute>" | "<font-width-css3>" | "<forgiving-relative-selector-list>" | "<forgiving-selector-list>" | "<form-control-identifier>" | "<frequency-percentage>" | "<frequency>" | "<function-token>" | "<gender>" | "<general-enclosed>" | "<generic-complete>" | "<generic-family>" | "<generic-incomplete>" | "<generic-script-specific>" | "<generic-voice>" | "<geometry-box>" | "<gradient>" | "<grayscale()>" | "<grid-line>" | "<hash-token>" | "<hex-color>" | "<historical-lig-values>" | "<hsl()>" | "<hsla()>" | "<hue-interpolation-method>" | "<hue-rotate()>" | "<hue>" | "<hwb()>" | "<hypot()>" | "<id-selector>" | "<ident-token>" | "<ident>" | "<image()>" | "<image-set()>" | "<image-set-option>" | "<image-src>" | "<image-tags>" | "<image>" | "<inflexible-breadth>" | "<inset()>" | "<inset-area>" | "<integer>" | "<intrinsic-size-keyword>" | "<invert()>" | "<keyframe-block>" | "<keyframe-selector>" | "<keyframes-name>" | "<lab()>" | "<layer()>" | "<layer-name>" | "<lch()>" | "<leader()>" | "<leader-type>" | "<left>" | "<legacy-device-cmyk-syntax>" | "<legacy-pseudo-element-selector>" | "<length-percentage>" | "<length>" | "<light-dark()>" | "<line-name-list>" | "<line-names>" | "<line-style>" | "<line-width>" | "<linear()>" | "<linear-color-hint>" | "<linear-color-stop>" | "<linear-easing-function>" | "<linear-gradient()>" | "<linear-gradient-syntax>" | "<log()>" | "<mask-layer>" | "<mask-position>" | "<mask-reference>" | "<mask-source>" | "<masking-mode>" | "<matrix()>" | "<matrix3d()>" | "<max()>" | "<media-and>" | "<media-condition-without-or>" | "<media-condition>" | "<media-feature>" | "<media-in-parens>" | "<media-not>" | "<media-or>" | "<media-query-list>" | "<media-query>" | "<media-type>" | "<mf-boolean>" | "<mf-name>" | "<mf-plain>" | "<mf-range>" | "<mf-value>" | "<min()>" | "<minmax()>" | "<mod()>" | "<modern-device-cmyk-syntax>" | "<n-dimension>" | "<name-repeat>" | "<named-color>" | "<namespace-prefix>" | "<ndash-dimension>" | "<ndashdigit-dimension>" | "<ndashdigit-ident>" | "<ns-prefix>" | "<number-one-or-greater>" | "<number-percentage>" | "<number-token>" | "<number-zero-one>" | "<number>" | "<numeric-figure-values>" | "<numeric-fraction-values>" | "<numeric-spacing-values>" | "<offset-path>" | "<oklab()>" | "<oklch()>" | "<opacity()>" | "<opacity-value>" | "<outline-line-style>" | "<outline-radius>" | "<overflow-position>" | "<page-body>" | "<page-margin-box-type>" | "<page-margin-box>" | "<page-selector-list>" | "<page-selector>" | "<page-size>" | "<paint()>" | "<paint-box>" | "<paint>" | "<palette-identifier>" | "<palette-mix()>" | "<path()>" | "<percentage-token>" | "<percentage>" | "<perspective()>" | "<polar-color-space>" | "<polygon()>" | "<position-area>" | "<position>" | "<pow()>" | "<predefined-rgb-params>" | "<predefined-rgb>" | "<pseudo-class-selector>" | "<pseudo-compound-selector>" | "<pseudo-element-selector>" | "<pseudo-page>" | "<query-in-parens>" | "<quote>" | "<radial-extent>" | "<radial-gradient()>" | "<radial-gradient-syntax>" | "<radial-shape>" | "<radial-size>" | "<ratio>" | "<ray()>" | "<ray-size>" | "<rect()>" | "<rectangular-color-space>" | "<relative-real-selector-list>" | "<relative-real-selector>" | "<relative-selector-list>" | "<relative-selector>" | "<relative-size>" | "<rem()>" | "<repeat-style>" | "<repeating-conic-gradient()>" | "<repeating-linear-gradient()>" | "<repeating-radial-gradient()>" | "<resolution>" | "<reversed-counter-name>" | "<rgb()>" | "<rgba()>" | "<right>" | "<rotate()>" | "<rotate3d()>" | "<rotateX()>" | "<rotateY()>" | "<rotateZ()>" | "<round()>" | "<rounding-strategy>" | "<saturate()>" | "<scale()>" | "<scale3d()>" | "<scaleX()>" | "<scaleY()>" | "<scaleZ()>" | "<scope-end>" | "<scope-start>" | "<scroll()>" | "<scroll-state-feature>" | "<scroll-state-in-parens>" | "<scroll-state-query>" | "<scroller>" | "<selector-list>" | "<self-position>" | "<semicolon-token>" | "<semitones>" | "<sepia()>" | "<shadow-t>" | "<shadow>" | "<shape-box>" | "<shape>" | "<side-or-corner>" | "<sign()>" | "<signed-integer>" | "<signless-integer>" | "<simple-selector-list>" | "<simple-selector>" | "<sin()>" | "<single-animation-composition>" | "<single-animation-direction>" | "<single-animation-fill-mode>" | "<single-animation-iteration-count>" | "<single-animation-play-state>" | "<single-animation-timeline>" | "<single-animation>" | "<single-transition-property>" | "<single-transition>" | "<size-feature>" | "<size>" | "<skew()>" | "<skewX()>" | "<skewY()>" | "<sqrt()>" | "<step-easing-function>" | "<step-position>" | "<steps()>" | "<string-token>" | "<string>" | "<style-condition>" | "<style-feature>" | "<style-in-parens>" | "<style-query>" | "<subclass-selector>" | "<superellipse()>" | "<supports-condition>" | "<supports-decl>" | "<supports-feature>" | "<supports-in-parens>" | "<supports-selector-fn>" | "<svg-length>" | "<svg-writing-mode>" | "<symbol>" | "<symbols()>" | "<symbols-type>" | "<syntax-combinator>" | "<syntax-component>" | "<syntax-multiplier>" | "<syntax-single-component>" | "<syntax-string>" | "<syntax-type-name>" | "<syntax>" | "<system-color>" | "<system-family-name>" | "<tan()>" | "<target-counter()>" | "<target-counters()>" | "<target-text()>" | "<target>" | "<text-edge>" | "<time-percentage>" | "<time>" | "<timeline-range-name>" | "<top>" | "<track-breadth>" | "<track-list>" | "<track-repeat>" | "<track-size>" | "<transform-function>" | "<transform-list>" | "<transition-behavior-value>" | "<translate()>" | "<translate3d()>" | "<translateX()>" | "<translateY()>" | "<translateZ()>" | "<try-size>" | "<try-tactic>" | "<type-or-unit>" | "<type-selector>" | "<urange>" | "<url-modifier>" | "<url-token>" | "<url>" | "<var()>" | "<view()>" | "<viewport-length>" | "<visual-box>" | "<whitespace-token>" | "<wq-name>" | "<x>" | "<xywh()>" | "<xyz-params>" | "<xyz-space>" | "<xyz>" | "<y>" | "<zero>" | "<{-token>" | "<}-token>";
9
+ export type ExtendedType = "<'color-profile'>" | "<'color-rendering'>" | "<'enable-background'>" | "<animatable-value>" | "<begin-value-list>" | "<class-list>" | "<clock-value>" | "<color-matrix>" | "<css-declaration-list>" | "<dasharray>" | "<end-value-list>" | "<key-points>" | "<key-splines>" | "<key-times>" | "<list-of-lengths>" | "<list-of-numbers>" | "<list-of-percentages>" | "<list-of-svg-feature-string>" | "<list-of-value>" | "<number-optional-number>" | "<origin>" | "<points>" | "<preserve-aspect-ratio>" | "<rotate>" | "<svg-font-size-adjust>" | "<svg-font-size>" | "<svg-path>" | "<system-language>" | "<text-coordinate>" | "<view-box>" | "AbsoluteURL" | "Accept" | "Any" | "AutoComplete" | "BCP47" | "BaseURL" | "BrowsingContextName" | "BrowsingContextNameOrKeyword" | "CustomElementName" | "DOMID" | "DateString" | "DateTime" | "Email" | "FunctionBody" | "HTTPSchemaURL" | "HashName" | "IconSize" | "Int" | "ItemProp" | "JSON" | "LinkTypeForAnchorAndAreaElement" | "LinkTypeForFormElement" | "LinkTypeForLinkElement" | "LinkTypeForLinkElementInBody" | "LocalDateTimeString" | "MIMEType" | "MonthString" | "NavigableTargetName" | "NavigableTargetNameOrKeyword" | "NoEmptyAny" | "Number" | "OneCodePointChar" | "OneLineAny" | "Pattern" | "SRIHash" | "SerializedPermissionsPolicy" | "SimpleColor" | "SourceSizeList" | "Srcset" | "TabIndex" | "TimeString" | "URL" | "Uint" | "ValidCustomCommand" | "WeekString" | "XMLName" | "Zero";
10
+ export type HtmlAttrRequirement = "Boolean";
11
11
  export interface TypesSchema {
12
12
  type?: Type;
13
13
  }
@@ -22,11 +22,11 @@ export interface List {
22
22
  ordered?: boolean;
23
23
  unique?: boolean;
24
24
  caseInsensitive?: boolean;
25
- number?: ('zeroOrMore' | 'oneOrMore') | {
25
+ number?: ("zeroOrMore" | "oneOrMore") | {
26
26
  min: number;
27
27
  max: number;
28
28
  };
29
- separator: 'space' | 'comma';
29
+ separator: "space" | "comma";
30
30
  }
31
31
  /**
32
32
  * [Enumerated attributes](https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#enumerated-attribute)
@@ -48,7 +48,7 @@ export interface Enum {
48
48
  * [Numbers](https://html.spec.whatwg.org/dev/common-microsyntaxes.html#numbers)
49
49
  */
50
50
  export interface Number {
51
- type: 'float' | 'integer';
51
+ type: "float" | "integer";
52
52
  gt?: number;
53
53
  gte?: number;
54
54
  lt?: number;
@@ -66,6 +66,9 @@ export interface Directive {
66
66
  token: Type;
67
67
  ref?: string;
68
68
  }
69
+ /**
70
+ * Validates a value against a regular expression pattern or an exact string match. Use a `/regex/flags` literal form to match a regex, or a plain string for exact equality.
71
+ */
69
72
  export interface Pattern {
70
73
  pattern: string;
71
74
  }
@@ -1,3 +1,4 @@
1
+ /* eslint-disable */
1
2
  /**
2
3
  * This file was automatically generated by json-schema-to-typescript.
3
4
  * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
@@ -0,0 +1,2 @@
1
+ import type { FormattedPrimitiveTypeCreator } from '../types.js';
2
+ export declare const isEmail: FormattedPrimitiveTypeCreator;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Checks whether a string is a valid email address per the HTML spec.
3
+ *
4
+ * The regex below is the **verbatim** pattern from the HTML Living Standard.
5
+ * It intentionally uses explicit ASCII ranges (`[a-zA-Z0-9]`) instead of `\w`
6
+ * because the spec restricts valid characters to ASCII only. `\w` is equivalent
7
+ * to `[a-zA-Z0-9_]` in non-Unicode mode, but using the spec's literal ranges
8
+ * ensures correctness regardless of future regex flag changes and makes it
9
+ * easy to verify against the spec text.
10
+ *
11
+ * @see https://html.spec.whatwg.org/multipage/input.html#valid-e-mail-address
12
+ */
13
+ /* eslint-disable regexp/prefer-w -- verbatim from HTML spec; keep ASCII-explicit for spec fidelity */
14
+ const validEmailPattern = /^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i;
15
+ /* eslint-enable regexp/prefer-w */
16
+ export const isEmail = () => {
17
+ return value => validEmailPattern.test(value);
18
+ };
@@ -0,0 +1,10 @@
1
+ import type { FormattedPrimitiveTypeCreator } from '../types.js';
2
+ /**
3
+ * Checks whether a string is a valid simple color.
4
+ *
5
+ * A valid simple color is exactly seven characters long:
6
+ * a U+0023 NUMBER SIGN (#) followed by six ASCII hex digits.
7
+ *
8
+ * @see https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#valid-simple-colour
9
+ */
10
+ export declare const isSimpleColor: FormattedPrimitiveTypeCreator;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Checks whether a string is a valid simple color.
3
+ *
4
+ * A valid simple color is exactly seven characters long:
5
+ * a U+0023 NUMBER SIGN (#) followed by six ASCII hex digits.
6
+ *
7
+ * @see https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#valid-simple-colour
8
+ */
9
+ export const isSimpleColor = () => {
10
+ return value => /^#[\dA-F]{6}$/i.test(value);
11
+ };
@@ -0,0 +1,16 @@
1
+ import type { CustomSyntaxChecker } from '../types.js';
2
+ /**
3
+ * Validates a URL string (potentially surrounded by spaces) per the WHATWG
4
+ * URL Standard. Accepts both absolute and relative URLs.
5
+ *
6
+ * Uses `new URL()` for structural parsing and adds strict checks matching
7
+ * the nu-html-checker's galimatias StrictErrorHandler behavior:
8
+ * - Illegal whitespace (tabs, newlines) in URL
9
+ * - Malformed percent-encoding
10
+ * - C0 control characters
11
+ * - URLs that fail `new URL()` parsing (even with a dummy base)
12
+ *
13
+ * @see https://html.spec.whatwg.org/multipage/urls-and-fetching.html#valid-url-potentially-surrounded-by-spaces
14
+ * @see https://url.spec.whatwg.org/#url-code-points
15
+ */
16
+ export declare const checkURL: CustomSyntaxChecker;