@markuplint/ml-spec
Advanced tools
Comparing version 2.0.0-dev.20211115.0 to 2.0.0-dev.20211213.0
@@ -6,17 +6,85 @@ /** | ||
*/ | ||
export declare type AttributeType = ('String' | 'NonEmptyString' | 'Boolean' | 'Function' | 'Date' | 'Int' | 'Uint' | 'Float' | 'NonZeroUint' | 'ZeroToOne' | 'AcceptList' | 'AutoComplete' | 'BCP47' | 'Color' | 'ColSpan' | 'Coords' | 'Crossorigin' | 'DateTime' | 'Destination' | 'DOMID' | 'DOMIDList' | 'IRI' | 'ItemType' | 'LinkSizes' | 'LinkType' | 'LinkTypeList' | 'MediaQuery' | 'MediaQueryList' | 'MIMEType' | 'ReferrerPolicy' | 'RowSpan' | 'SourceSizeList' | 'SrcSet' | 'TabIndex' | 'Target' | 'URL' | 'URLHash' | 'URLList' | 'CSSAngle' | 'CSSBlendMode' | 'CSSClipPath' | 'CSSCustomIdent' | 'CSSDisplay' | 'CSSFilter' | 'CSSFontFamily' | 'CSSFontSize' | 'CSSFontVariant' | 'CSSFontWeight' | 'CSSMask' | 'CSSOpacity' | 'CSSTextDecoration' | 'CSSTransformList' | 'CSSTransformOrigin' | 'CSSURL' | 'SVGAnimatableValue' | 'SVGBeginValueList' | 'SVGClockValue' | 'SVGColorMatrix' | 'SVGDashArray' | 'SVGEndValueList' | 'SVGFilterPrimitiveReference' | 'SVGKernelMatrix' | 'SVGKeyPoints' | 'SVGKeySplines' | 'SVGKeyTimes' | 'SVGLanguageTags' | 'SVGLength' | 'SVGLengthList' | 'SVGNumberList' | 'SVGNumberOptionalNumber' | 'SVGOrigin' | 'SVGPaint' | 'SVGPathCommands' | 'SVGPercentage' | 'SVGPercentageList' | 'SVGPoints' | 'SVGPreserveAspectRatio' | 'SVGViewBox') | { | ||
enum: string[]; | ||
export declare type AttributeType = (("<'--*'>" | "<'-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>') | ('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>' | '<list-of-lengths>' | '<list-of-numbers>' | '<number-optional-number>' | '<origin>' | '<svg-path>' | '<list-of-percentages>' | '<points>' | '<preserve-aspect-ratio>' | '<view-box>' | '<rotate>' | '<text-coordinate>') | 'Boolean') | { | ||
token: ('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>' | '<list-of-lengths>' | '<list-of-numbers>' | '<number-optional-number>' | '<origin>' | '<svg-path>' | '<list-of-percentages>' | '<points>' | '<preserve-aspect-ratio>' | '<view-box>' | '<rotate>' | '<text-coordinate>') | { | ||
enum: [string, ...string[]]; | ||
disallowToSurroundBySpaces?: boolean; | ||
caseInsensitive?: boolean; | ||
invalidValueDefault?: string; | ||
missingValueDefault?: string; | ||
sameStates?: { | ||
[k: string]: unknown; | ||
}; | ||
}; | ||
disallowToSurroundBySpaces?: boolean; | ||
allowEmpty?: boolean; | ||
ordered?: boolean; | ||
unique?: boolean; | ||
caseInsensitive?: boolean; | ||
number?: ('zeroOrMore' | 'oneOrMore') | { | ||
min: number; | ||
max: number; | ||
}; | ||
separator: 'space' | 'comma'; | ||
} | { | ||
enum: [string, ...string[]]; | ||
disallowToSurroundBySpaces?: boolean; | ||
caseInsensitive?: boolean; | ||
invalidValueDefault?: string; | ||
missingValueDefault?: string; | ||
sameStates?: { | ||
[k: string]: unknown; | ||
}; | ||
} | { | ||
type: 'float' | 'integer'; | ||
gt?: number; | ||
gte?: number; | ||
lt?: number; | ||
lte?: number; | ||
clampable?: boolean; | ||
}; | ||
export declare type AttributeCondition = { | ||
ancestor: string; | ||
ancestor: Selectors; | ||
} | { | ||
self: string | string[]; | ||
self: Selectors; | ||
}; | ||
export declare type Selectors = string | [string, string, ...string[]]; | ||
export interface AttributesSchema { | ||
tag: string; | ||
attributes: (('#globalAttrs' | '#ariaAttrs' | '#SVGAnimationAdditionAttrs' | '#SVGAnimationAttributeTargetAttrs' | '#SVGAnimationEventAttrs' | '#SVGAnimationTargetElementAttrs' | '#SVGAnimationTimingAttrs' | '#SVGAnimationValueAttrs' | '#SVGConditionalProcessingAttrs' | '#SVGCoreAttrs' | '#SVGDocumentElementEventAttrs' | '#SVGDocumentEventAttrs' | '#SVGFilterPrimitiveAttrs' | '#SVGGlobalEventAttrs' | '#SVGGraphicalEventAttrs' | '#SVGPresentationAttrs' | '#SVGTransferFunctionAttrs' | '#XLinkAttrs') | AttributeJSON | DefineDefaultAttributeType)[]; | ||
ref: string; | ||
global?: GlobalAttributes; | ||
attributes: Attributes; | ||
} | ||
export interface GlobalAttributes { | ||
'#HTMLGlobalAttrs'?: boolean; | ||
'#GlobalEventAttrs'?: boolean | ('onabort' | 'onauxclick' | 'onblur' | 'oncancel' | 'oncanplay' | 'oncanplaythrough' | 'onchange' | 'onclick' | 'onclose' | 'oncontextlost' | 'oncontextmenu' | 'oncontextrestored' | 'oncuechange' | 'ondblclick' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | 'ondragover' | 'ondragstart' | 'ondrop' | 'ondurationchange' | 'onemptied' | 'onended' | 'onerror' | 'onfocus' | 'onformdata' | 'oninput' | 'oninvalid' | 'onkeydown' | 'onkeypress' | 'onkeyup' | 'onload' | 'onloadeddata' | 'onloadedmetadata' | 'onloadstart' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | 'onpause' | 'onplay' | 'onplaying' | 'onprogress' | 'onratechange' | 'onreset' | 'onresize' | 'onscroll' | 'onsecuritypolicyviolation' | 'onseeked' | 'onseeking' | 'onselect' | 'onslotchange' | 'onstalled' | 'onsubmit' | 'onsuspend' | 'ontimeupdate' | 'ontoggle' | 'onvolumechange' | 'onwaiting' | 'onwebkitanimationend' | 'onwebkitanimationiteration' | 'onwebkitanimationstart' | 'onwebkittransitionend' | 'onwheel')[]; | ||
'#DocumentElementEventAttrs'?: boolean | ('oncopy' | 'oncut' | 'onpaste')[]; | ||
'#HTMLLinkAndFetchingAttrs'?: ('crossorigin' | 'download' | 'href' | 'hreflang' | 'integrity' | 'loading' | 'media' | 'ping' | 'referrerpolicy' | 'rel' | 'target' | 'type')[]; | ||
'#HTMLEmbededAndMediaContentAttrs'?: ('autoplay' | 'controls' | 'height' | 'loop' | 'muted' | 'preload' | 'sizes' | 'src' | 'srcset' | 'width')[]; | ||
'#HTMLFormControlElementAttrs'?: ('autocomplete' | 'dirname' | 'disabled' | 'form' | 'formaction' | 'formenctype' | 'formmethod' | 'formnovalidate' | 'formtarget' | 'maxlength' | 'minlength' | 'name' | 'readonly' | 'required')[]; | ||
'#HTMLTableCellElementAttrs'?: ('colspan' | 'headers' | 'rowspan')[]; | ||
'#ARIAAttrs'?: boolean; | ||
'#SVGAnimationAdditionAttrs'?: ('additive' | 'accumulate')[]; | ||
'#SVGAnimationAttributeTargetAttrs'?: ('attributeName' | 'attributeType')[]; | ||
'#SVGAnimationEventAttrs'?: ('onbegin' | 'onend' | 'onrepeat')[]; | ||
'#SVGAnimationTargetElementAttrs'?: ('href' | 'xlink:href')[]; | ||
'#SVGAnimationTimingAttrs'?: ('begin' | 'dur' | 'end' | 'min' | 'max' | 'restart' | 'repeatCount' | 'repeatDur' | 'fill')[]; | ||
'#SVGAnimationValueAttrs'?: ('calcMode' | 'values' | 'keyTimes' | 'keySplines' | 'from' | 'to' | 'by' | 'accelerate' | 'decelerate' | 'autoReverse' | 'speed')[]; | ||
'#SVGConditionalProcessingAttrs'?: ('requiredExtensions' | 'systemLanguage' | 'requiredFeatures')[]; | ||
'#SVGCoreAttrs'?: ('id' | 'tabindex' | 'autofocus' | 'lang' | 'xml:space' | 'class' | 'style' | 'xmlns' | 'xml:lang' | 'xml:base')[]; | ||
'#SVGFilterPrimitiveAttrs'?: ('x' | 'y' | 'width' | 'height' | 'result' | 'in')[]; | ||
'#SVGPresentationAttrs'?: ('cx' | 'cy' | 'height' | 'width' | 'x' | 'y' | 'r' | 'rx' | 'ry' | 'd' | 'fill' | 'transform' | 'patternTransform' | 'gradientTransform' | 'alignment-baseline' | 'baseline-shift' | 'clip-path' | 'clip-rule' | 'color' | 'color-interpolation' | 'color-interpolation-filters' | 'cursor' | 'direction' | 'display' | 'dominant-baseline' | 'fill-opacity' | 'fill-rule' | 'filter' | 'flood-color' | 'flood-opacity' | 'font' | 'font-family' | 'font-size' | 'font-size-adjust' | 'font-stretch' | 'font-style' | 'font-variant' | 'font-weight' | 'glyph-orientation-horizontal' | 'glyph-orientation-vertical' | 'image-rendering' | 'isolation' | 'letter-spacing' | 'lighting-color' | 'marker' | 'marker-end' | 'marker-mid' | 'marker-start' | 'mask' | 'mask-type' | 'opacity' | 'overflow' | 'paint-order' | 'pointer-events' | 'shape-rendering' | 'stop-color' | 'stop-opacity' | 'stroke' | 'stroke-dasharray' | 'stroke-dashoffset' | 'stroke-linecap' | 'stroke-linejoin' | 'stroke-miterlimit' | 'stroke-opacity' | 'stroke-width' | 'text-anchor' | 'text-decoration' | 'text-overflow' | 'text-rendering' | 'transform-origin' | 'unicode-bidi' | 'vector-effect' | 'visibility' | 'white-space' | 'word-spacing' | 'writing-mode' | 'clip' | 'color-profile' | 'color-rendering' | 'enable-background' | 'kerning')[]; | ||
'#SVGTransferFunctionAttrs'?: ('type' | 'tableValues' | 'slope' | 'intercept' | 'amplitude' | 'exponent' | 'offset')[]; | ||
'#XLinkAttrs'?: ('xlink:href' | 'xlink:title' | 'xlink:actuate' | 'xlink:arcrole' | 'xlink:role' | 'xlink:show' | 'xlink:type')[]; | ||
} | ||
export interface Attributes { | ||
[k: string]: AttributeJSON; | ||
} | ||
/** | ||
* This interface was referenced by `Attributes`'s JSON-Schema definition | ||
* via the `patternProperty` ".*". | ||
*/ | ||
export interface AttributeJSON { | ||
name: string; | ||
type: AttributeType | [AttributeType, ...AttributeType[]]; | ||
_TODO_?: string; | ||
ref: string; | ||
type?: AttributeType | [AttributeType, ...AttributeType[]]; | ||
defaultValue?: string; | ||
@@ -28,6 +96,4 @@ deprecated?: boolean; | ||
condition?: AttributeCondition; | ||
ineffective?: Selectors; | ||
animatable?: boolean; | ||
} | ||
export interface DefineDefaultAttributeType { | ||
name: string; | ||
defaultValue: string; | ||
} |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getSpecByTagName = void 0; | ||
function getSpecOM({ specs }) { | ||
const get_attr_specs_1 = require("./get-attr-specs"); | ||
function getSpecOM(spec) { | ||
const som = {}; | ||
for (const el of specs) { | ||
for (const el of spec.specs) { | ||
const attributes = (0, get_attr_specs_1.getAttrSpecs)(el.name, spec); | ||
som[el.name] = { | ||
@@ -14,3 +16,3 @@ experimental: !!el.experimental, | ||
permittedStructures: el.permittedStructures, | ||
attributes: el.attributes.filter((attr) => !(typeof attr === 'string')), | ||
attributes: Object.values(attributes || {}), | ||
}; | ||
@@ -17,0 +19,0 @@ } |
@@ -25,6 +25,6 @@ "use strict"; | ||
if ((_a = extendedSpec.def['#globalAttrs']) === null || _a === void 0 ? void 0 : _a['#extends']) { | ||
result.def['#globalAttrs']['#HTMLGlobalAttrs'] = [ | ||
...(((_b = result.def['#globalAttrs']) === null || _b === void 0 ? void 0 : _b['#HTMLGlobalAttrs']) || []), | ||
...(((_c = extendedSpec.def['#globalAttrs']) === null || _c === void 0 ? void 0 : _c['#extends']) || []), | ||
]; | ||
result.def['#globalAttrs']['#HTMLGlobalAttrs'] = { | ||
...(((_b = result.def['#globalAttrs']) === null || _b === void 0 ? void 0 : _b['#HTMLGlobalAttrs']) || {}), | ||
...(((_c = extendedSpec.def['#globalAttrs']) === null || _c === void 0 ? void 0 : _c['#extends']) || {}), | ||
}; | ||
} | ||
@@ -60,3 +60,7 @@ if (extendedSpec.def['#roles']) { | ||
...exSpec, | ||
attributes: (0, utils_1.mergeArray)(elSpec.attributes, exSpec.attributes), | ||
globalAttrs: { | ||
...elSpec.globalAttrs, | ||
...exSpec.globalAttrs, | ||
}, | ||
attributes: mergeAttrSpec(elSpec.attributes, exSpec.attributes), | ||
categories: (0, utils_1.mergeArray)(elSpec.categories, exSpec.categories), | ||
@@ -71,1 +75,14 @@ }); | ||
exports.getSpec = getSpec; | ||
function mergeAttrSpec(std, ex = {}) { | ||
const result = {}; | ||
const keys = Array.from(new Set([...Object.keys(std), ...Object.keys(ex)])); | ||
for (const key of keys) { | ||
const _std = std[key]; | ||
const _ex = ex[key]; | ||
result[key] = { | ||
..._std, | ||
..._ex, | ||
}; | ||
} | ||
return result; | ||
} |
export * from './permitted-structres'; | ||
export * from './attributes'; | ||
export * from './get-attr-specs'; | ||
export * from './get-spec-by-tag-name'; | ||
@@ -4,0 +5,0 @@ export * from './get-spec'; |
@@ -6,2 +6,3 @@ "use strict"; | ||
(0, tslib_1.__exportStar)(require("./attributes"), exports); | ||
(0, tslib_1.__exportStar)(require("./get-attr-specs"), exports); | ||
(0, tslib_1.__exportStar)(require("./get-spec-by-tag-name"), exports); | ||
@@ -8,0 +9,0 @@ (0, tslib_1.__exportStar)(require("./get-spec"), exports); |
@@ -19,2 +19,8 @@ /** | ||
parent: string; | ||
/** | ||
* Not support yet | ||
*/ | ||
hasNotAttr?: string; | ||
_TODO_?: string; | ||
_parent?: string; | ||
}; | ||
@@ -32,2 +38,3 @@ contents: PermittedContentSpec | boolean; | ||
min?: number; | ||
_TODO_?: string; | ||
} | ||
@@ -39,2 +46,3 @@ export interface PermittedContentOptional { | ||
max?: number; | ||
_TODO_?: string; | ||
} | ||
@@ -46,2 +54,3 @@ export interface PermittedContentOneOrMore { | ||
max?: number; | ||
_TODO_?: string; | ||
} | ||
@@ -53,2 +62,3 @@ export interface PermittedContentZeroOrMore { | ||
max?: number; | ||
_TODO_?: string; | ||
} | ||
@@ -63,5 +73,7 @@ export interface PermittedContentChoice { | ||
]; | ||
_TODO_?: string; | ||
} | ||
export interface PermittedContentInterleave { | ||
interleave: [PermittedContentSpec, PermittedContentSpec, ...PermittedContentSpec[]]; | ||
_TODO_?: string; | ||
} |
@@ -1,2 +0,3 @@ | ||
import type { AttributeCondition, AttributeType } from './attributes'; | ||
import type { AttributeJSON } from '.'; | ||
import type { AttributeType, GlobalAttributes } from './attributes'; | ||
import type { ContentModel, PermittedStructuresSchema } from './permitted-structres'; | ||
@@ -11,4 +12,5 @@ /** | ||
} | ||
declare type ExtendedElementSpec = Partial<ElementSpec> & { | ||
export declare type ExtendedElementSpec = Partial<Omit<ElementSpec, 'name' | 'attributes'>> & { | ||
name: ElementSpec['name']; | ||
attributes?: Record<string, Partial<Attribute>>; | ||
}; | ||
@@ -26,5 +28,5 @@ export declare type ExtendedSpec = { | ||
'#globalAttrs': Partial<{ | ||
'#extends': Attribute[]; | ||
'#HTMLGlobalAttrs': Attribute[]; | ||
[OtherGlobalAttrs: string]: Attribute[]; | ||
'#extends': Record<string, Partial<Attribute>>; | ||
'#HTMLGlobalAttrs': Record<string, Partial<Attribute>>; | ||
[OtherGlobalAttrs: string]: Record<string, Partial<Attribute>>; | ||
}>; | ||
@@ -111,5 +113,9 @@ '#ariaAttrs': ARIAAttribute[]; | ||
/** | ||
* Global Attributes | ||
*/ | ||
globalAttrs: GlobalAttributes; | ||
/** | ||
* Attributes | ||
*/ | ||
attributes: (Attribute | string)[]; | ||
attributes: Record<string, Attribute>; | ||
}; | ||
@@ -135,4 +141,4 @@ /** | ||
name: string; | ||
type: AttributeType | [AttributeType, ...AttributeType[]]; | ||
description: string; | ||
type: AttributeType | AttributeType[]; | ||
description?: string; | ||
caseSensitive?: true; | ||
@@ -143,7 +149,4 @@ experimental?: true; | ||
nonStandard?: true; | ||
required?: boolean | AttributeCondition; | ||
requiredEither?: string[]; | ||
noUse?: boolean; | ||
condition?: AttributeCondition; | ||
}; | ||
} & ExtendableAttributeSpec; | ||
declare type ExtendableAttributeSpec = Omit<AttributeJSON, 'ref' | '_TODO_' | 'type'>; | ||
export declare type ARIRRoleAttribute = { | ||
@@ -150,0 +153,0 @@ name: string; |
{ | ||
"name": "@markuplint/ml-spec", | ||
"version": "2.0.0-dev.20211115.0", | ||
"version": "2.0.0-dev.20211213.0", | ||
"description": "Types and schema that specs of the Markup languages for markuplint", | ||
@@ -18,5 +18,6 @@ "repository": "git@github.com:markuplint/markuplint.git", | ||
"clean": "tsc --build --clean", | ||
"schema:gen": "ts-node ./gen/gen.ts; prettier --write './schemas/*.json';", | ||
"schema:structures": "json2ts ./schemas/permitted-structures.schema.json > ./src/permitted-structres.ts; prettier --write ./src/permitted-structres.ts; eslint --fix --config ../../../.eslintrc ./src/permitted-structres.ts", | ||
"schema:attributes": "json2ts ./schemas/attributes.schema.json > ./src/attributes.ts; prettier --write ./src/attributes.ts; eslint --fix --config ../../../.eslintrc ./src/attributes.ts", | ||
"schema": "yarn schema:structures; yarn schema:attributes;" | ||
"schema:attributes": "json2ts ./schemas/attributes.schema.json --cwd ./schemas > ./src/attributes.ts; prettier --write ./src/attributes.ts; eslint --fix --config ../../../.eslintrc ./src/attributes.ts", | ||
"schema": "yarn schema:gen; yarn schema:structures; yarn schema:attributes; tsc;" | ||
}, | ||
@@ -27,5 +28,6 @@ "dependencies": { | ||
"devDependencies": { | ||
"@markuplint/types": "1.0.0-dev.20211213.0", | ||
"json-schema-to-typescript": "^10.1.5" | ||
}, | ||
"gitHead": "11bcb81138ae11362add9b502124011735cc784a" | ||
"gitHead": "8f4682ca3e0937082af8c39b999443afa4a1aef3" | ||
} |
{ | ||
"definitions": { | ||
"AttributeName": { "type": "string", "pattern": "^(?:(xml|xlink):)?[a-z][a-zA-Z0-9-]*$" }, | ||
"AttributeCondition": { | ||
@@ -9,7 +10,3 @@ "oneOf": [ | ||
"required": ["ancestor"], | ||
"properties": { | ||
"ancestor": { | ||
"type": "string" | ||
} | ||
} | ||
"properties": { "ancestor": { "$ref": "#/definitions/Selectors" } } | ||
}, | ||
@@ -20,136 +17,26 @@ { | ||
"required": ["self"], | ||
"properties": { | ||
"self": { | ||
"type": ["string", "array"], | ||
"items": { | ||
"type": "string", | ||
"minItems": 2 | ||
} | ||
} | ||
} | ||
"properties": { "self": { "$ref": "#/definitions/Selectors" } } | ||
} | ||
] | ||
}, | ||
"AttributeType": { | ||
"oneOf": [ | ||
{ | ||
"type": "string", | ||
"enum": [ | ||
"String", | ||
"NonEmptyString", | ||
"Boolean", | ||
"Function", | ||
"Date", | ||
"Int", | ||
"Uint", | ||
"Float", | ||
"NonZeroUint", | ||
"ZeroToOne", | ||
"AcceptList", | ||
"AutoComplete", | ||
"BCP47", | ||
"Color", | ||
"ColSpan", | ||
"Coords", | ||
"Crossorigin", | ||
"DateTime", | ||
"Destination", | ||
"DOMID", | ||
"DOMIDList", | ||
"IRI", | ||
"ItemType", | ||
"LinkSizes", | ||
"LinkType", | ||
"LinkTypeList", | ||
"MediaQuery", | ||
"MediaQueryList", | ||
"MIMEType", | ||
"ReferrerPolicy", | ||
"RowSpan", | ||
"SourceSizeList", | ||
"SrcSet", | ||
"TabIndex", | ||
"Target", | ||
"URL", | ||
"URLHash", | ||
"URLList", | ||
"CSSAngle", | ||
"CSSBlendMode", | ||
"CSSClipPath", | ||
"CSSCustomIdent", | ||
"CSSDisplay", | ||
"CSSFilter", | ||
"CSSFontFamily", | ||
"CSSFontSize", | ||
"CSSFontVariant", | ||
"CSSFontWeight", | ||
"CSSMask", | ||
"CSSOpacity", | ||
"CSSTextDecoration", | ||
"CSSTransformList", | ||
"CSSTransformOrigin", | ||
"CSSURL", | ||
"SVGAnimatableValue", | ||
"SVGBeginValueList", | ||
"SVGClockValue", | ||
"SVGColorMatrix", | ||
"SVGDashArray", | ||
"SVGEndValueList", | ||
"SVGFilterPrimitiveReference", | ||
"SVGKernelMatrix", | ||
"SVGKeyPoints", | ||
"SVGKeySplines", | ||
"SVGKeyTimes", | ||
"SVGLanguageTags", | ||
"SVGLength", | ||
"SVGLengthList", | ||
"SVGNumberList", | ||
"SVGNumberOptionalNumber", | ||
"SVGOrigin", | ||
"SVGPaint", | ||
"SVGPathCommands", | ||
"SVGPercentage", | ||
"SVGPercentageList", | ||
"SVGPoints", | ||
"SVGPreserveAspectRatio", | ||
"SVGViewBox" | ||
] | ||
}, | ||
{ | ||
"type": "object", | ||
"additionalProperties": false, | ||
"required": ["enum"], | ||
"properties": { | ||
"enum": { | ||
"type": "array", | ||
"minLength": 1, | ||
"uniqueItems": true, | ||
"items": { | ||
"type": "string" | ||
} | ||
} | ||
} | ||
} | ||
] | ||
"Selectors": { | ||
"oneOf": [{ "type": "string" }, { "type": "array", "minItems": 2, "items": { "type": "string" } }] | ||
}, | ||
"AttributeType": { "$ref": "../../types/types.schema.json#/definitions/type" }, | ||
"AttributeJSON": { | ||
"type": "object", | ||
"additionalProperties": false, | ||
"required": ["name", "type"], | ||
"required": ["ref"], | ||
"minProperties": 2, | ||
"properties": { | ||
"name": { | ||
"type": "string" | ||
}, | ||
"_TODO_": { "type": "string" }, | ||
"ref": { "type": "string", "format": "uri" }, | ||
"type": { | ||
"oneOf": [ | ||
{ "$ref": "#/definitions/AttributeType" }, | ||
{ | ||
"$ref": "#/definitions/AttributeType" | ||
}, | ||
{ | ||
"type": "array", | ||
"minItems": 1, | ||
"uniqueItems": true, | ||
"items": { | ||
"$ref": "#/definitions/AttributeType" | ||
} | ||
"items": { "$ref": "#/definitions/AttributeType" } | ||
} | ||
@@ -160,34 +47,168 @@ ] | ||
"deprecated": { "type": "boolean" }, | ||
"required": { | ||
"required": { "oneOf": [{ "type": "boolean" }, { "$ref": "#/definitions/AttributeCondition" }] }, | ||
"requiredEither": { "type": "array", "items": { "type": "string" } }, | ||
"noUse": { "type": "boolean" }, | ||
"condition": { "$ref": "#/definitions/AttributeCondition" }, | ||
"ineffective": { "$ref": "#/definitions/Selectors" }, | ||
"animatable": { "type": "boolean" } | ||
} | ||
}, | ||
"GlobalAttributes": { | ||
"type": "object", | ||
"additionalProperties": false, | ||
"propertyNames": { | ||
"type": "string", | ||
"enum": [ | ||
"#HTMLGlobalAttrs", | ||
"#GlobalEventAttrs", | ||
"#DocumentElementEventAttrs", | ||
"#HTMLLinkAndFetchingAttrs", | ||
"#HTMLEmbededAndMediaContentAttrs", | ||
"#HTMLFormControlElementAttrs", | ||
"#HTMLTableCellElementAttrs", | ||
"#ARIAAttrs", | ||
"#SVGAnimationAdditionAttrs", | ||
"#SVGAnimationAttributeTargetAttrs", | ||
"#SVGAnimationEventAttrs", | ||
"#SVGAnimationTargetElementAttrs", | ||
"#SVGAnimationTimingAttrs", | ||
"#SVGAnimationValueAttrs", | ||
"#SVGConditionalProcessingAttrs", | ||
"#SVGCoreAttrs", | ||
"#SVGFilterPrimitiveAttrs", | ||
"#SVGPresentationAttrs", | ||
"#SVGTransferFunctionAttrs", | ||
"#XLinkAttrs" | ||
] | ||
}, | ||
"properties": { | ||
"#HTMLGlobalAttrs": { "type": "boolean" }, | ||
"#GlobalEventAttrs": { | ||
"oneOf": [ | ||
{ "type": "boolean" }, | ||
{ | ||
"type": "boolean" | ||
}, | ||
"type": "array", | ||
"minItems": 0, | ||
"uniqueItems": true, | ||
"items": { "$ref": "./global-attributes.schema.json#/definitions/GlobalEventAttrs" } | ||
} | ||
] | ||
}, | ||
"#DocumentElementEventAttrs": { | ||
"oneOf": [ | ||
{ "type": "boolean" }, | ||
{ | ||
"$ref": "#/definitions/AttributeCondition" | ||
"type": "array", | ||
"minItems": 0, | ||
"uniqueItems": true, | ||
"items": { | ||
"$ref": "./global-attributes.schema.json#/definitions/DocumentElementEventAttrs" | ||
} | ||
} | ||
] | ||
}, | ||
"requiredEither": { | ||
"#HTMLLinkAndFetchingAttrs": { | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
} | ||
"minItems": 0, | ||
"uniqueItems": true, | ||
"items": { "$ref": "./global-attributes.schema.json#/definitions/HTMLLinkAndFetchingAttrs" } | ||
}, | ||
"noUse": { | ||
"type": "boolean" | ||
"#HTMLEmbededAndMediaContentAttrs": { | ||
"type": "array", | ||
"minItems": 0, | ||
"uniqueItems": true, | ||
"items": { "$ref": "./global-attributes.schema.json#/definitions/HTMLEmbededAndMediaContentAttrs" } | ||
}, | ||
"condition": { | ||
"$ref": "#/definitions/AttributeCondition" | ||
"#HTMLFormControlElementAttrs": { | ||
"type": "array", | ||
"minItems": 0, | ||
"uniqueItems": true, | ||
"items": { "$ref": "./global-attributes.schema.json#/definitions/HTMLFormControlElementAttrs" } | ||
}, | ||
"#HTMLTableCellElementAttrs": { | ||
"type": "array", | ||
"minItems": 0, | ||
"uniqueItems": true, | ||
"items": { "$ref": "./global-attributes.schema.json#/definitions/HTMLTableCellElementAttrs" } | ||
}, | ||
"#ARIAAttrs": { "type": "boolean" }, | ||
"#SVGAnimationAdditionAttrs": { | ||
"type": "array", | ||
"minItems": 0, | ||
"uniqueItems": true, | ||
"items": { "$ref": "./global-attributes.schema.json#/definitions/SVGAnimationAdditionAttrs" } | ||
}, | ||
"#SVGAnimationAttributeTargetAttrs": { | ||
"type": "array", | ||
"minItems": 0, | ||
"uniqueItems": true, | ||
"items": { "$ref": "./global-attributes.schema.json#/definitions/SVGAnimationAttributeTargetAttrs" } | ||
}, | ||
"#SVGAnimationEventAttrs": { | ||
"type": "array", | ||
"minItems": 0, | ||
"uniqueItems": true, | ||
"items": { "$ref": "./global-attributes.schema.json#/definitions/SVGAnimationEventAttrs" } | ||
}, | ||
"#SVGAnimationTargetElementAttrs": { | ||
"type": "array", | ||
"minItems": 0, | ||
"uniqueItems": true, | ||
"items": { "$ref": "./global-attributes.schema.json#/definitions/SVGAnimationTargetElementAttrs" } | ||
}, | ||
"#SVGAnimationTimingAttrs": { | ||
"type": "array", | ||
"minItems": 0, | ||
"uniqueItems": true, | ||
"items": { "$ref": "./global-attributes.schema.json#/definitions/SVGAnimationTimingAttrs" } | ||
}, | ||
"#SVGAnimationValueAttrs": { | ||
"type": "array", | ||
"minItems": 0, | ||
"uniqueItems": true, | ||
"items": { "$ref": "./global-attributes.schema.json#/definitions/SVGAnimationValueAttrs" } | ||
}, | ||
"#SVGConditionalProcessingAttrs": { | ||
"type": "array", | ||
"minItems": 0, | ||
"uniqueItems": true, | ||
"items": { "$ref": "./global-attributes.schema.json#/definitions/SVGConditionalProcessingAttrs" } | ||
}, | ||
"#SVGCoreAttrs": { | ||
"type": "array", | ||
"minItems": 0, | ||
"uniqueItems": true, | ||
"items": { "$ref": "./global-attributes.schema.json#/definitions/SVGCoreAttrs" } | ||
}, | ||
"#SVGFilterPrimitiveAttrs": { | ||
"type": "array", | ||
"minItems": 0, | ||
"uniqueItems": true, | ||
"items": { "$ref": "./global-attributes.schema.json#/definitions/SVGFilterPrimitiveAttrs" } | ||
}, | ||
"#SVGPresentationAttrs": { | ||
"type": "array", | ||
"minItems": 0, | ||
"uniqueItems": true, | ||
"items": { "$ref": "./global-attributes.schema.json#/definitions/SVGPresentationAttrs" } | ||
}, | ||
"#SVGTransferFunctionAttrs": { | ||
"type": "array", | ||
"minItems": 0, | ||
"uniqueItems": true, | ||
"items": { "$ref": "./global-attributes.schema.json#/definitions/SVGTransferFunctionAttrs" } | ||
}, | ||
"#XLinkAttrs": { | ||
"type": "array", | ||
"minItems": 0, | ||
"uniqueItems": true, | ||
"items": { "$ref": "./global-attributes.schema.json#/definitions/XLinkAttrs" } | ||
} | ||
} | ||
}, | ||
"DefineDefaultAttributeType": { | ||
"Attributes": { | ||
"type": "object", | ||
"additionalProperties": false, | ||
"required": ["name", "defaultValue"], | ||
"properties": { | ||
"name": { "type": "string" }, | ||
"defaultValue": { "type": "string" } | ||
} | ||
"propertyNames": { "$ref": "#/definitions/AttributeName" }, | ||
"patternProperties": { ".*": { "$ref": "#/definitions/AttributeJSON" } } | ||
} | ||
@@ -197,43 +218,9 @@ }, | ||
"additionalProperties": false, | ||
"required": ["tag", "attributes"], | ||
"required": ["tag", "ref", "attributes"], | ||
"properties": { | ||
"tag": { "type": "string" }, | ||
"attributes": { | ||
"type": "array", | ||
"uniqueItems": true, | ||
"items": { | ||
"anyOf": [ | ||
{ | ||
"type": "string", | ||
"enum": [ | ||
"#globalAttrs", | ||
"#ariaAttrs", | ||
"#SVGAnimationAdditionAttrs", | ||
"#SVGAnimationAttributeTargetAttrs", | ||
"#SVGAnimationEventAttrs", | ||
"#SVGAnimationTargetElementAttrs", | ||
"#SVGAnimationTimingAttrs", | ||
"#SVGAnimationValueAttrs", | ||
"#SVGConditionalProcessingAttrs", | ||
"#SVGCoreAttrs", | ||
"#SVGDocumentElementEventAttrs", | ||
"#SVGDocumentEventAttrs", | ||
"#SVGFilterPrimitiveAttrs", | ||
"#SVGGlobalEventAttrs", | ||
"#SVGGraphicalEventAttrs", | ||
"#SVGPresentationAttrs", | ||
"#SVGTransferFunctionAttrs", | ||
"#XLinkAttrs" | ||
] | ||
}, | ||
{ | ||
"$ref": "#/definitions/AttributeJSON" | ||
}, | ||
{ | ||
"$ref": "#/definitions/DefineDefaultAttributeType" | ||
} | ||
] | ||
} | ||
} | ||
"ref": { "type": "string", "format": "uri" }, | ||
"global": { "$ref": "#/definitions/GlobalAttributes" }, | ||
"attributes": { "$ref": "#/definitions/Attributes" } | ||
} | ||
} |
{ | ||
"definitions": { | ||
"category": { | ||
"type": "string", | ||
"enum": [ | ||
"#HTMLGlobalAttrs", | ||
"#GlobalEventAttrs", | ||
"#DocumentElementEventAttrs", | ||
"#HTMLLinkAndFetchingAttrs", | ||
"#HTMLEmbededAndMediaContentAttrs", | ||
"#HTMLFormControlElementAttrs", | ||
"#HTMLTableCellElementAttrs", | ||
"#ARIAAttrs", | ||
"#SVGAnimationAdditionAttrs", | ||
"#SVGAnimationAttributeTargetAttrs", | ||
"#SVGAnimationEventAttrs", | ||
"#SVGAnimationTargetElementAttrs", | ||
"#SVGAnimationTimingAttrs", | ||
"#SVGAnimationValueAttrs", | ||
"#SVGConditionalProcessingAttrs", | ||
"#SVGCoreAttrs", | ||
"#SVGFilterPrimitiveAttrs", | ||
"#SVGPresentationAttrs", | ||
"#SVGTransferFunctionAttrs", | ||
"#XLinkAttrs" | ||
] | ||
}, | ||
"HTMLGlobalAttrs": { | ||
"type": "string", | ||
"enum": [ | ||
"accesskey", | ||
"autocapitalize", | ||
"autofocus", | ||
"contenteditable", | ||
"dir", | ||
"draggable", | ||
"enterkeyhint", | ||
"hidden", | ||
"inputmode", | ||
"is", | ||
"itemid", | ||
"itemprop", | ||
"itemref", | ||
"itemscope", | ||
"itemtype", | ||
"lang", | ||
"nonce", | ||
"spellcheck", | ||
"style", | ||
"tabindex", | ||
"title", | ||
"translate", | ||
"class", | ||
"id", | ||
"slot", | ||
"xmlns", | ||
"xml:lang", | ||
"xml:space" | ||
] | ||
}, | ||
"GlobalEventAttrs": { | ||
"type": "string", | ||
"enum": [ | ||
"onabort", | ||
"onauxclick", | ||
"onblur", | ||
"oncancel", | ||
"oncanplay", | ||
"oncanplaythrough", | ||
"onchange", | ||
"onclick", | ||
"onclose", | ||
"oncontextlost", | ||
"oncontextmenu", | ||
"oncontextrestored", | ||
"oncuechange", | ||
"ondblclick", | ||
"ondrag", | ||
"ondragend", | ||
"ondragenter", | ||
"ondragleave", | ||
"ondragover", | ||
"ondragstart", | ||
"ondrop", | ||
"ondurationchange", | ||
"onemptied", | ||
"onended", | ||
"onerror", | ||
"onfocus", | ||
"onformdata", | ||
"oninput", | ||
"oninvalid", | ||
"onkeydown", | ||
"onkeypress", | ||
"onkeyup", | ||
"onload", | ||
"onloadeddata", | ||
"onloadedmetadata", | ||
"onloadstart", | ||
"onmousedown", | ||
"onmouseenter", | ||
"onmouseleave", | ||
"onmousemove", | ||
"onmouseout", | ||
"onmouseover", | ||
"onmouseup", | ||
"onpause", | ||
"onplay", | ||
"onplaying", | ||
"onprogress", | ||
"onratechange", | ||
"onreset", | ||
"onresize", | ||
"onscroll", | ||
"onsecuritypolicyviolation", | ||
"onseeked", | ||
"onseeking", | ||
"onselect", | ||
"onslotchange", | ||
"onstalled", | ||
"onsubmit", | ||
"onsuspend", | ||
"ontimeupdate", | ||
"ontoggle", | ||
"onvolumechange", | ||
"onwaiting", | ||
"onwebkitanimationend", | ||
"onwebkitanimationiteration", | ||
"onwebkitanimationstart", | ||
"onwebkittransitionend", | ||
"onwheel" | ||
] | ||
}, | ||
"DocumentElementEventAttrs": { "type": "string", "enum": ["oncopy", "oncut", "onpaste"] }, | ||
"HTMLLinkAndFetchingAttrs": { | ||
"type": "string", | ||
"enum": [ | ||
"crossorigin", | ||
"download", | ||
"href", | ||
"hreflang", | ||
"integrity", | ||
"loading", | ||
"media", | ||
"ping", | ||
"referrerpolicy", | ||
"rel", | ||
"target", | ||
"type" | ||
] | ||
}, | ||
"HTMLEmbededAndMediaContentAttrs": { | ||
"type": "string", | ||
"enum": ["autoplay", "controls", "height", "loop", "muted", "preload", "sizes", "src", "srcset", "width"] | ||
}, | ||
"HTMLFormControlElementAttrs": { | ||
"type": "string", | ||
"enum": [ | ||
"autocomplete", | ||
"dirname", | ||
"disabled", | ||
"form", | ||
"formaction", | ||
"formenctype", | ||
"formmethod", | ||
"formnovalidate", | ||
"formtarget", | ||
"maxlength", | ||
"minlength", | ||
"name", | ||
"readonly", | ||
"required" | ||
] | ||
}, | ||
"HTMLTableCellElementAttrs": { "type": "string", "enum": ["colspan", "headers", "rowspan"] }, | ||
"ARIAAttrs": { "type": "string", "enum": ["role"] }, | ||
"SVGAnimationAdditionAttrs": { "type": "string", "enum": ["additive", "accumulate"] }, | ||
"SVGAnimationAttributeTargetAttrs": { "type": "string", "enum": ["attributeName", "attributeType"] }, | ||
"SVGAnimationEventAttrs": { "type": "string", "enum": ["onbegin", "onend", "onrepeat"] }, | ||
"SVGAnimationTargetElementAttrs": { "type": "string", "enum": ["href", "xlink:href"] }, | ||
"SVGAnimationTimingAttrs": { | ||
"type": "string", | ||
"enum": ["begin", "dur", "end", "min", "max", "restart", "repeatCount", "repeatDur", "fill"] | ||
}, | ||
"SVGAnimationValueAttrs": { | ||
"type": "string", | ||
"enum": [ | ||
"calcMode", | ||
"values", | ||
"keyTimes", | ||
"keySplines", | ||
"from", | ||
"to", | ||
"by", | ||
"accelerate", | ||
"decelerate", | ||
"autoReverse", | ||
"speed" | ||
] | ||
}, | ||
"SVGConditionalProcessingAttrs": { | ||
"type": "string", | ||
"enum": ["requiredExtensions", "systemLanguage", "requiredFeatures"] | ||
}, | ||
"SVGCoreAttrs": { | ||
"type": "string", | ||
"enum": [ | ||
"id", | ||
"tabindex", | ||
"autofocus", | ||
"lang", | ||
"xml:space", | ||
"class", | ||
"style", | ||
"xmlns", | ||
"xml:lang", | ||
"xml:base" | ||
] | ||
}, | ||
"SVGFilterPrimitiveAttrs": { "type": "string", "enum": ["x", "y", "width", "height", "result", "in"] }, | ||
"SVGPresentationAttrs": { | ||
"type": "string", | ||
"enum": [ | ||
"cx", | ||
"cy", | ||
"height", | ||
"width", | ||
"x", | ||
"y", | ||
"r", | ||
"rx", | ||
"ry", | ||
"d", | ||
"fill", | ||
"transform", | ||
"patternTransform", | ||
"gradientTransform", | ||
"alignment-baseline", | ||
"baseline-shift", | ||
"clip-path", | ||
"clip-rule", | ||
"color", | ||
"color-interpolation", | ||
"color-interpolation-filters", | ||
"cursor", | ||
"direction", | ||
"display", | ||
"dominant-baseline", | ||
"fill-opacity", | ||
"fill-rule", | ||
"filter", | ||
"flood-color", | ||
"flood-opacity", | ||
"font", | ||
"font-family", | ||
"font-size", | ||
"font-size-adjust", | ||
"font-stretch", | ||
"font-style", | ||
"font-variant", | ||
"font-weight", | ||
"glyph-orientation-horizontal", | ||
"glyph-orientation-vertical", | ||
"image-rendering", | ||
"isolation", | ||
"letter-spacing", | ||
"lighting-color", | ||
"marker", | ||
"marker-end", | ||
"marker-mid", | ||
"marker-start", | ||
"mask", | ||
"mask-type", | ||
"opacity", | ||
"overflow", | ||
"paint-order", | ||
"pointer-events", | ||
"shape-rendering", | ||
"stop-color", | ||
"stop-opacity", | ||
"stroke", | ||
"stroke-dasharray", | ||
"stroke-dashoffset", | ||
"stroke-linecap", | ||
"stroke-linejoin", | ||
"stroke-miterlimit", | ||
"stroke-opacity", | ||
"stroke-width", | ||
"text-anchor", | ||
"text-decoration", | ||
"text-overflow", | ||
"text-rendering", | ||
"transform-origin", | ||
"unicode-bidi", | ||
"vector-effect", | ||
"visibility", | ||
"white-space", | ||
"word-spacing", | ||
"writing-mode", | ||
"clip", | ||
"color-profile", | ||
"color-rendering", | ||
"enable-background", | ||
"kerning" | ||
] | ||
}, | ||
"SVGTransferFunctionAttrs": { | ||
"type": "string", | ||
"enum": ["type", "tableValues", "slope", "intercept", "amplitude", "exponent", "offset"] | ||
}, | ||
"XLinkAttrs": { | ||
"type": "string", | ||
"enum": [ | ||
"xlink:href", | ||
"xlink:title", | ||
"xlink:actuate", | ||
"xlink:arcrole", | ||
"xlink:role", | ||
"xlink:show", | ||
"xlink:type" | ||
] | ||
} | ||
}, | ||
"type": "object", | ||
"additionalProperties": false, | ||
"patternProperties": { | ||
"^#[a-zA-Z]+Attrs$": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "./attributes.schema.json#/definitions/AttributeJSON" | ||
} | ||
"propertyNames": { "$ref": "#/definitions/category" }, | ||
"required": [ | ||
"#HTMLGlobalAttrs", | ||
"#GlobalEventAttrs", | ||
"#DocumentElementEventAttrs", | ||
"#HTMLLinkAndFetchingAttrs", | ||
"#HTMLEmbededAndMediaContentAttrs", | ||
"#HTMLFormControlElementAttrs", | ||
"#HTMLTableCellElementAttrs", | ||
"#ARIAAttrs", | ||
"#SVGAnimationAdditionAttrs", | ||
"#SVGAnimationAttributeTargetAttrs", | ||
"#SVGAnimationEventAttrs", | ||
"#SVGAnimationTargetElementAttrs", | ||
"#SVGAnimationTimingAttrs", | ||
"#SVGAnimationValueAttrs", | ||
"#SVGConditionalProcessingAttrs", | ||
"#SVGCoreAttrs", | ||
"#SVGFilterPrimitiveAttrs", | ||
"#SVGPresentationAttrs", | ||
"#SVGTransferFunctionAttrs", | ||
"#XLinkAttrs" | ||
], | ||
"properties": { | ||
"#HTMLGlobalAttrs": { | ||
"description": "[Global attributes]( https://html.spec.whatwg.org/multipage/dom.html#global-attributes )", | ||
"type": "object", | ||
"required": [ | ||
"accesskey", | ||
"autocapitalize", | ||
"autofocus", | ||
"contenteditable", | ||
"dir", | ||
"draggable", | ||
"enterkeyhint", | ||
"hidden", | ||
"inputmode", | ||
"is", | ||
"itemid", | ||
"itemprop", | ||
"itemref", | ||
"itemscope", | ||
"itemtype", | ||
"lang", | ||
"nonce", | ||
"spellcheck", | ||
"style", | ||
"tabindex", | ||
"title", | ||
"translate", | ||
"class", | ||
"id", | ||
"slot", | ||
"xmlns", | ||
"xml:lang", | ||
"xml:space" | ||
], | ||
"propertyNames": { "$ref": "#/definitions/HTMLGlobalAttrs" }, | ||
"patternProperties": { ".+": { "$ref": "./attributes.schema.json#/definitions/AttributeJSON" } } | ||
}, | ||
"#GlobalEventAttrs": { | ||
"description": "[GlobalEventHandlers]( https://html.spec.whatwg.org/multipage/webappapis.html#globaleventhandlers )", | ||
"type": "object", | ||
"required": [ | ||
"onabort", | ||
"onauxclick", | ||
"onblur", | ||
"oncancel", | ||
"oncanplay", | ||
"oncanplaythrough", | ||
"onchange", | ||
"onclick", | ||
"onclose", | ||
"oncontextlost", | ||
"oncontextmenu", | ||
"oncontextrestored", | ||
"oncuechange", | ||
"ondblclick", | ||
"ondrag", | ||
"ondragend", | ||
"ondragenter", | ||
"ondragleave", | ||
"ondragover", | ||
"ondragstart", | ||
"ondrop", | ||
"ondurationchange", | ||
"onemptied", | ||
"onended", | ||
"onerror", | ||
"onfocus", | ||
"onformdata", | ||
"oninput", | ||
"oninvalid", | ||
"onkeydown", | ||
"onkeypress", | ||
"onkeyup", | ||
"onload", | ||
"onloadeddata", | ||
"onloadedmetadata", | ||
"onloadstart", | ||
"onmousedown", | ||
"onmouseenter", | ||
"onmouseleave", | ||
"onmousemove", | ||
"onmouseout", | ||
"onmouseover", | ||
"onmouseup", | ||
"onpause", | ||
"onplay", | ||
"onplaying", | ||
"onprogress", | ||
"onratechange", | ||
"onreset", | ||
"onresize", | ||
"onscroll", | ||
"onsecuritypolicyviolation", | ||
"onseeked", | ||
"onseeking", | ||
"onselect", | ||
"onslotchange", | ||
"onstalled", | ||
"onsubmit", | ||
"onsuspend", | ||
"ontimeupdate", | ||
"ontoggle", | ||
"onvolumechange", | ||
"onwaiting", | ||
"onwebkitanimationend", | ||
"onwebkitanimationiteration", | ||
"onwebkitanimationstart", | ||
"onwebkittransitionend", | ||
"onwheel" | ||
], | ||
"propertyNames": { "$ref": "#/definitions/GlobalEventAttrs" }, | ||
"patternProperties": { ".+": { "$ref": "./attributes.schema.json#/definitions/AttributeJSON" } } | ||
}, | ||
"#DocumentElementEventAttrs": { | ||
"description": "[DocumentAndElementEventHandlers]( https://html.spec.whatwg.org/multipage/webappapis.html#documentandelementeventhandlers )", | ||
"type": "object", | ||
"required": ["oncopy", "oncut", "onpaste"], | ||
"propertyNames": { "$ref": "#/definitions/DocumentElementEventAttrs" }, | ||
"patternProperties": { ".+": { "$ref": "./attributes.schema.json#/definitions/AttributeJSON" } } | ||
}, | ||
"#HTMLLinkAndFetchingAttrs": { | ||
"description": "Link and fetching", | ||
"type": "object", | ||
"required": [ | ||
"crossorigin", | ||
"download", | ||
"href", | ||
"hreflang", | ||
"integrity", | ||
"loading", | ||
"media", | ||
"ping", | ||
"referrerpolicy", | ||
"rel", | ||
"target", | ||
"type" | ||
], | ||
"propertyNames": { "$ref": "#/definitions/HTMLLinkAndFetchingAttrs" }, | ||
"patternProperties": { ".+": { "$ref": "./attributes.schema.json#/definitions/AttributeJSON" } } | ||
}, | ||
"#HTMLEmbededAndMediaContentAttrs": { | ||
"description": "Embeded and media contents", | ||
"type": "object", | ||
"required": [ | ||
"autoplay", | ||
"controls", | ||
"height", | ||
"loop", | ||
"muted", | ||
"preload", | ||
"sizes", | ||
"src", | ||
"srcset", | ||
"width" | ||
], | ||
"propertyNames": { "$ref": "#/definitions/HTMLEmbededAndMediaContentAttrs" }, | ||
"patternProperties": { ".+": { "$ref": "./attributes.schema.json#/definitions/AttributeJSON" } } | ||
}, | ||
"#HTMLFormControlElementAttrs": { | ||
"description": "Form controls", | ||
"type": "object", | ||
"required": [ | ||
"autocomplete", | ||
"dirname", | ||
"disabled", | ||
"form", | ||
"formaction", | ||
"formenctype", | ||
"formmethod", | ||
"formnovalidate", | ||
"formtarget", | ||
"maxlength", | ||
"minlength", | ||
"name", | ||
"readonly", | ||
"required" | ||
], | ||
"propertyNames": { "$ref": "#/definitions/HTMLFormControlElementAttrs" }, | ||
"patternProperties": { ".+": { "$ref": "./attributes.schema.json#/definitions/AttributeJSON" } } | ||
}, | ||
"#HTMLTableCellElementAttrs": { | ||
"description": "Table cell", | ||
"type": "object", | ||
"required": ["colspan", "headers", "rowspan"], | ||
"propertyNames": { "$ref": "#/definitions/HTMLTableCellElementAttrs" }, | ||
"patternProperties": { ".+": { "$ref": "./attributes.schema.json#/definitions/AttributeJSON" } } | ||
}, | ||
"#ARIAAttrs": { | ||
"description": "[The ARIA role and aria-* attributes]( https://html.spec.whatwg.org/multipage/dom.html#global-attributes:attr-aria-role )", | ||
"type": "object", | ||
"required": ["role"], | ||
"propertyNames": { "$ref": "#/definitions/ARIAAttrs" }, | ||
"patternProperties": { ".+": { "$ref": "./attributes.schema.json#/definitions/AttributeJSON" } } | ||
}, | ||
"#SVGAnimationAdditionAttrs": { | ||
"description": "[Attributes that control whether animations are additive]( https://svgwg.org/specs/animations/#AdditionAttributes )", | ||
"type": "object", | ||
"required": ["additive", "accumulate"], | ||
"propertyNames": { "$ref": "#/definitions/SVGAnimationAdditionAttrs" }, | ||
"patternProperties": { ".+": { "$ref": "./attributes.schema.json#/definitions/AttributeJSON" } } | ||
}, | ||
"#SVGAnimationAttributeTargetAttrs": { | ||
"description": "[The target attribute]( https://www.w3.org/TR/2001/REC-smil-animation-20010904/#SpecifyingTargetAttribute )", | ||
"type": "object", | ||
"required": ["attributeName", "attributeType"], | ||
"propertyNames": { "$ref": "#/definitions/SVGAnimationAttributeTargetAttrs" }, | ||
"patternProperties": { ".+": { "$ref": "./attributes.schema.json#/definitions/AttributeJSON" } } | ||
}, | ||
"#SVGAnimationEventAttrs": { | ||
"description": "[animation event attribute]( https://svgwg.org/specs/animations/#TermAnimationEventAttribute )", | ||
"type": "object", | ||
"required": ["onbegin", "onend", "onrepeat"], | ||
"propertyNames": { "$ref": "#/definitions/SVGAnimationEventAttrs" }, | ||
"patternProperties": { ".+": { "$ref": "./attributes.schema.json#/definitions/AttributeJSON" } } | ||
}, | ||
"#SVGAnimationTargetElementAttrs": { | ||
"description": "[Attributes to identify the target element for an animation]( https://svgwg.org/specs/animations/#TargetElement )", | ||
"type": "object", | ||
"required": ["href", "xlink:href"], | ||
"propertyNames": { "$ref": "#/definitions/SVGAnimationTargetElementAttrs" }, | ||
"patternProperties": { ".+": { "$ref": "./attributes.schema.json#/definitions/AttributeJSON" } } | ||
}, | ||
"#SVGAnimationTimingAttrs": { | ||
"description": "[Attributes to control the timing of the animation]( https://svgwg.org/specs/animations/#TimingAttributes )", | ||
"type": "object", | ||
"required": ["begin", "dur", "end", "min", "max", "restart", "repeatCount", "repeatDur", "fill"], | ||
"propertyNames": { "$ref": "#/definitions/SVGAnimationTimingAttrs" }, | ||
"patternProperties": { ".+": { "$ref": "./attributes.schema.json#/definitions/AttributeJSON" } } | ||
}, | ||
"#SVGAnimationValueAttrs": { | ||
"description": "- [Attributes that define animation values over time]( https://svgwg.org/specs/animations/#ValueAttributes )\nAND\n- [SMIL 3.0 Time Manipulations]( https://www.w3.org/TR/REC-smil/smil-timemanip.html )", | ||
"type": "object", | ||
"required": [ | ||
"calcMode", | ||
"values", | ||
"keyTimes", | ||
"keySplines", | ||
"from", | ||
"to", | ||
"by", | ||
"accelerate", | ||
"decelerate", | ||
"autoReverse", | ||
"speed" | ||
], | ||
"propertyNames": { "$ref": "#/definitions/SVGAnimationValueAttrs" }, | ||
"patternProperties": { ".+": { "$ref": "./attributes.schema.json#/definitions/AttributeJSON" } } | ||
}, | ||
"#SVGConditionalProcessingAttrs": { | ||
"description": "[conditional processing attribute]( https://svgwg.org/svg2-draft/struct.html#TermConditionalProcessingAttribute )", | ||
"type": "object", | ||
"required": ["requiredExtensions", "systemLanguage", "requiredFeatures"], | ||
"propertyNames": { "$ref": "#/definitions/SVGConditionalProcessingAttrs" }, | ||
"patternProperties": { ".+": { "$ref": "./attributes.schema.json#/definitions/AttributeJSON" } } | ||
}, | ||
"#SVGCoreAttrs": { | ||
"description": "[core attributes]( https://svgwg.org/svg2-draft/struct.html#TermCoreAttribute )", | ||
"type": "object", | ||
"required": [ | ||
"id", | ||
"tabindex", | ||
"autofocus", | ||
"lang", | ||
"xml:space", | ||
"class", | ||
"style", | ||
"xmlns", | ||
"xml:lang", | ||
"xml:base" | ||
], | ||
"propertyNames": { "$ref": "#/definitions/SVGCoreAttrs" }, | ||
"patternProperties": { ".+": { "$ref": "./attributes.schema.json#/definitions/AttributeJSON" } } | ||
}, | ||
"#SVGFilterPrimitiveAttrs": { | ||
"description": "[Common filter primitive attributes]( https://drafts.fxtf.org/filter-effects/#CommonAttributes )", | ||
"type": "object", | ||
"required": ["x", "y", "width", "height", "result", "in"], | ||
"propertyNames": { "$ref": "#/definitions/SVGFilterPrimitiveAttrs" }, | ||
"patternProperties": { ".+": { "$ref": "./attributes.schema.json#/definitions/AttributeJSON" } } | ||
}, | ||
"#SVGPresentationAttrs": { | ||
"description": "[Presentation attributes]( https://svgwg.org/svg2-draft/styling.html#PresentationAttributes )", | ||
"type": "object", | ||
"required": [ | ||
"cx", | ||
"cy", | ||
"height", | ||
"width", | ||
"x", | ||
"y", | ||
"r", | ||
"rx", | ||
"ry", | ||
"d", | ||
"fill", | ||
"transform", | ||
"patternTransform", | ||
"gradientTransform", | ||
"alignment-baseline", | ||
"baseline-shift", | ||
"clip-path", | ||
"clip-rule", | ||
"color", | ||
"color-interpolation", | ||
"color-interpolation-filters", | ||
"cursor", | ||
"direction", | ||
"display", | ||
"dominant-baseline", | ||
"fill-opacity", | ||
"fill-rule", | ||
"filter", | ||
"flood-color", | ||
"flood-opacity", | ||
"font", | ||
"font-family", | ||
"font-size", | ||
"font-size-adjust", | ||
"font-stretch", | ||
"font-style", | ||
"font-variant", | ||
"font-weight", | ||
"glyph-orientation-horizontal", | ||
"glyph-orientation-vertical", | ||
"image-rendering", | ||
"isolation", | ||
"letter-spacing", | ||
"lighting-color", | ||
"marker", | ||
"marker-end", | ||
"marker-mid", | ||
"marker-start", | ||
"mask", | ||
"mask-type", | ||
"opacity", | ||
"overflow", | ||
"paint-order", | ||
"pointer-events", | ||
"shape-rendering", | ||
"stop-color", | ||
"stop-opacity", | ||
"stroke", | ||
"stroke-dasharray", | ||
"stroke-dashoffset", | ||
"stroke-linecap", | ||
"stroke-linejoin", | ||
"stroke-miterlimit", | ||
"stroke-opacity", | ||
"stroke-width", | ||
"text-anchor", | ||
"text-decoration", | ||
"text-overflow", | ||
"text-rendering", | ||
"transform-origin", | ||
"unicode-bidi", | ||
"vector-effect", | ||
"visibility", | ||
"white-space", | ||
"word-spacing", | ||
"writing-mode", | ||
"clip", | ||
"color-profile", | ||
"color-rendering", | ||
"enable-background", | ||
"kerning" | ||
], | ||
"propertyNames": { "$ref": "#/definitions/SVGPresentationAttrs" }, | ||
"patternProperties": { ".+": { "$ref": "./attributes.schema.json#/definitions/AttributeJSON" } } | ||
}, | ||
"#SVGTransferFunctionAttrs": { | ||
"description": "[transfer function element attributes,]( https://drafts.fxtf.org/filter-effects/#transfer-function-element-attributes )", | ||
"type": "object", | ||
"required": ["type", "tableValues", "slope", "intercept", "amplitude", "exponent", "offset"], | ||
"propertyNames": { "$ref": "#/definitions/SVGTransferFunctionAttrs" }, | ||
"patternProperties": { ".+": { "$ref": "./attributes.schema.json#/definitions/AttributeJSON" } } | ||
}, | ||
"#XLinkAttrs": { | ||
"description": "[Deprecated XLink URL reference attributes]( https://svgwg.org/svg2-draft/linking.html#XLinkRefAttrs )", | ||
"type": "object", | ||
"required": [ | ||
"xlink:href", | ||
"xlink:title", | ||
"xlink:actuate", | ||
"xlink:arcrole", | ||
"xlink:role", | ||
"xlink:show", | ||
"xlink:type" | ||
], | ||
"propertyNames": { "$ref": "#/definitions/XLinkAttrs" }, | ||
"patternProperties": { ".+": { "$ref": "./attributes.schema.json#/definitions/AttributeJSON" } } | ||
} | ||
} | ||
} |
@@ -101,3 +101,4 @@ { | ||
"max": { "type": "number" }, | ||
"min": { "type": "number" } | ||
"min": { "type": "number" }, | ||
"_TODO_": { "type": "string" } | ||
} | ||
@@ -117,3 +118,4 @@ }, | ||
}, | ||
"max": { "type": "number" } | ||
"max": { "type": "number" }, | ||
"_TODO_": { "type": "string" } | ||
} | ||
@@ -135,3 +137,4 @@ }, | ||
}, | ||
"max": { "type": "number" } | ||
"max": { "type": "number" }, | ||
"_TODO_": { "type": "string" } | ||
} | ||
@@ -153,3 +156,4 @@ }, | ||
}, | ||
"max": { "type": "number" } | ||
"max": { "type": "number" }, | ||
"_TODO_": { "type": "string" } | ||
} | ||
@@ -167,3 +171,4 @@ }, | ||
"maxItems": 5 | ||
} | ||
}, | ||
"_TODO_": { "type": "string" } | ||
} | ||
@@ -180,3 +185,4 @@ }, | ||
"minItems": 2 | ||
} | ||
}, | ||
"_TODO_": { "type": "string" } | ||
} | ||
@@ -212,3 +218,9 @@ } | ||
"properties": { | ||
"parent": { "type": "string" } | ||
"parent": { "type": "string" }, | ||
"hasNotAttr": { | ||
"type": "string", | ||
"description": "Not support yet" | ||
}, | ||
"_TODO_": { "type": "string" }, | ||
"_parent": { "type": "string" } | ||
} | ||
@@ -215,0 +227,0 @@ } |
@@ -10,122 +10,1402 @@ /* tslint:disable */ | ||
| ( | ||
| 'String' | ||
| 'NonEmptyString' | ||
| ( | ||
| "<'--*'>" | ||
| "<'-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>' | ||
) | ||
| ( | ||
| '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>' | ||
| '<list-of-lengths>' | ||
| '<list-of-numbers>' | ||
| '<number-optional-number>' | ||
| '<origin>' | ||
| '<svg-path>' | ||
| '<list-of-percentages>' | ||
| '<points>' | ||
| '<preserve-aspect-ratio>' | ||
| '<view-box>' | ||
| '<rotate>' | ||
| '<text-coordinate>' | ||
) | ||
| 'Boolean' | ||
| 'Function' | ||
| 'Date' | ||
| 'Int' | ||
| 'Uint' | ||
| 'Float' | ||
| 'NonZeroUint' | ||
| 'ZeroToOne' | ||
| 'AcceptList' | ||
| 'AutoComplete' | ||
| 'BCP47' | ||
| 'Color' | ||
| 'ColSpan' | ||
| 'Coords' | ||
| 'Crossorigin' | ||
| 'DateTime' | ||
| 'Destination' | ||
| 'DOMID' | ||
| 'DOMIDList' | ||
| 'IRI' | ||
| 'ItemType' | ||
| 'LinkSizes' | ||
| 'LinkType' | ||
| 'LinkTypeList' | ||
| 'MediaQuery' | ||
| 'MediaQueryList' | ||
| 'MIMEType' | ||
| 'ReferrerPolicy' | ||
| 'RowSpan' | ||
| 'SourceSizeList' | ||
| 'SrcSet' | ||
| 'TabIndex' | ||
| 'Target' | ||
| 'URL' | ||
| 'URLHash' | ||
| 'URLList' | ||
| 'CSSAngle' | ||
| 'CSSBlendMode' | ||
| 'CSSClipPath' | ||
| 'CSSCustomIdent' | ||
| 'CSSDisplay' | ||
| 'CSSFilter' | ||
| 'CSSFontFamily' | ||
| 'CSSFontSize' | ||
| 'CSSFontVariant' | ||
| 'CSSFontWeight' | ||
| 'CSSMask' | ||
| 'CSSOpacity' | ||
| 'CSSTextDecoration' | ||
| 'CSSTransformList' | ||
| 'CSSTransformOrigin' | ||
| 'CSSURL' | ||
| 'SVGAnimatableValue' | ||
| 'SVGBeginValueList' | ||
| 'SVGClockValue' | ||
| 'SVGColorMatrix' | ||
| 'SVGDashArray' | ||
| 'SVGEndValueList' | ||
| 'SVGFilterPrimitiveReference' | ||
| 'SVGKernelMatrix' | ||
| 'SVGKeyPoints' | ||
| 'SVGKeySplines' | ||
| 'SVGKeyTimes' | ||
| 'SVGLanguageTags' | ||
| 'SVGLength' | ||
| 'SVGLengthList' | ||
| 'SVGNumberList' | ||
| 'SVGNumberOptionalNumber' | ||
| 'SVGOrigin' | ||
| 'SVGPaint' | ||
| 'SVGPathCommands' | ||
| 'SVGPercentage' | ||
| 'SVGPercentageList' | ||
| 'SVGPoints' | ||
| 'SVGPreserveAspectRatio' | ||
| 'SVGViewBox' | ||
) | ||
| { | ||
enum: string[]; | ||
token: | ||
| ( | ||
| '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>' | ||
| '<list-of-lengths>' | ||
| '<list-of-numbers>' | ||
| '<number-optional-number>' | ||
| '<origin>' | ||
| '<svg-path>' | ||
| '<list-of-percentages>' | ||
| '<points>' | ||
| '<preserve-aspect-ratio>' | ||
| '<view-box>' | ||
| '<rotate>' | ||
| '<text-coordinate>' | ||
) | ||
| { | ||
enum: [string, ...string[]]; | ||
disallowToSurroundBySpaces?: boolean; | ||
caseInsensitive?: boolean; | ||
invalidValueDefault?: string; | ||
missingValueDefault?: string; | ||
sameStates?: { | ||
[k: string]: unknown; | ||
}; | ||
}; | ||
disallowToSurroundBySpaces?: boolean; | ||
allowEmpty?: boolean; | ||
ordered?: boolean; | ||
unique?: boolean; | ||
caseInsensitive?: boolean; | ||
number?: | ||
| ('zeroOrMore' | 'oneOrMore') | ||
| { | ||
min: number; | ||
max: number; | ||
}; | ||
separator: 'space' | 'comma'; | ||
} | ||
| { | ||
enum: [string, ...string[]]; | ||
disallowToSurroundBySpaces?: boolean; | ||
caseInsensitive?: boolean; | ||
invalidValueDefault?: string; | ||
missingValueDefault?: string; | ||
sameStates?: { | ||
[k: string]: unknown; | ||
}; | ||
} | ||
| { | ||
type: 'float' | 'integer'; | ||
gt?: number; | ||
gte?: number; | ||
lt?: number; | ||
lte?: number; | ||
clampable?: boolean; | ||
}; | ||
export type AttributeCondition = | ||
| { | ||
ancestor: string; | ||
ancestor: Selectors; | ||
} | ||
| { | ||
self: string | string[]; | ||
self: Selectors; | ||
}; | ||
export type Selectors = string | [string, string, ...string[]]; | ||
export interface AttributesSchema { | ||
tag: string; | ||
attributes: ( | ||
ref: string; | ||
global?: GlobalAttributes; | ||
attributes: Attributes; | ||
} | ||
export interface GlobalAttributes { | ||
'#HTMLGlobalAttrs'?: boolean; | ||
'#GlobalEventAttrs'?: | ||
| boolean | ||
| ( | ||
| '#globalAttrs' | ||
| '#ariaAttrs' | ||
| '#SVGAnimationAdditionAttrs' | ||
| '#SVGAnimationAttributeTargetAttrs' | ||
| '#SVGAnimationEventAttrs' | ||
| '#SVGAnimationTargetElementAttrs' | ||
| '#SVGAnimationTimingAttrs' | ||
| '#SVGAnimationValueAttrs' | ||
| '#SVGConditionalProcessingAttrs' | ||
| '#SVGCoreAttrs' | ||
| '#SVGDocumentElementEventAttrs' | ||
| '#SVGDocumentEventAttrs' | ||
| '#SVGFilterPrimitiveAttrs' | ||
| '#SVGGlobalEventAttrs' | ||
| '#SVGGraphicalEventAttrs' | ||
| '#SVGPresentationAttrs' | ||
| '#SVGTransferFunctionAttrs' | ||
| '#XLinkAttrs' | ||
) | ||
| AttributeJSON | ||
| DefineDefaultAttributeType | ||
| 'onabort' | ||
| 'onauxclick' | ||
| 'onblur' | ||
| 'oncancel' | ||
| 'oncanplay' | ||
| 'oncanplaythrough' | ||
| 'onchange' | ||
| 'onclick' | ||
| 'onclose' | ||
| 'oncontextlost' | ||
| 'oncontextmenu' | ||
| 'oncontextrestored' | ||
| 'oncuechange' | ||
| 'ondblclick' | ||
| 'ondrag' | ||
| 'ondragend' | ||
| 'ondragenter' | ||
| 'ondragleave' | ||
| 'ondragover' | ||
| 'ondragstart' | ||
| 'ondrop' | ||
| 'ondurationchange' | ||
| 'onemptied' | ||
| 'onended' | ||
| 'onerror' | ||
| 'onfocus' | ||
| 'onformdata' | ||
| 'oninput' | ||
| 'oninvalid' | ||
| 'onkeydown' | ||
| 'onkeypress' | ||
| 'onkeyup' | ||
| 'onload' | ||
| 'onloadeddata' | ||
| 'onloadedmetadata' | ||
| 'onloadstart' | ||
| 'onmousedown' | ||
| 'onmouseenter' | ||
| 'onmouseleave' | ||
| 'onmousemove' | ||
| 'onmouseout' | ||
| 'onmouseover' | ||
| 'onmouseup' | ||
| 'onpause' | ||
| 'onplay' | ||
| 'onplaying' | ||
| 'onprogress' | ||
| 'onratechange' | ||
| 'onreset' | ||
| 'onresize' | ||
| 'onscroll' | ||
| 'onsecuritypolicyviolation' | ||
| 'onseeked' | ||
| 'onseeking' | ||
| 'onselect' | ||
| 'onslotchange' | ||
| 'onstalled' | ||
| 'onsubmit' | ||
| 'onsuspend' | ||
| 'ontimeupdate' | ||
| 'ontoggle' | ||
| 'onvolumechange' | ||
| 'onwaiting' | ||
| 'onwebkitanimationend' | ||
| 'onwebkitanimationiteration' | ||
| 'onwebkitanimationstart' | ||
| 'onwebkittransitionend' | ||
| 'onwheel' | ||
)[]; | ||
'#DocumentElementEventAttrs'?: boolean | ('oncopy' | 'oncut' | 'onpaste')[]; | ||
'#HTMLLinkAndFetchingAttrs'?: ( | ||
| 'crossorigin' | ||
| 'download' | ||
| 'href' | ||
| 'hreflang' | ||
| 'integrity' | ||
| 'loading' | ||
| 'media' | ||
| 'ping' | ||
| 'referrerpolicy' | ||
| 'rel' | ||
| 'target' | ||
| 'type' | ||
)[]; | ||
'#HTMLEmbededAndMediaContentAttrs'?: ( | ||
| 'autoplay' | ||
| 'controls' | ||
| 'height' | ||
| 'loop' | ||
| 'muted' | ||
| 'preload' | ||
| 'sizes' | ||
| 'src' | ||
| 'srcset' | ||
| 'width' | ||
)[]; | ||
'#HTMLFormControlElementAttrs'?: ( | ||
| 'autocomplete' | ||
| 'dirname' | ||
| 'disabled' | ||
| 'form' | ||
| 'formaction' | ||
| 'formenctype' | ||
| 'formmethod' | ||
| 'formnovalidate' | ||
| 'formtarget' | ||
| 'maxlength' | ||
| 'minlength' | ||
| 'name' | ||
| 'readonly' | ||
| 'required' | ||
)[]; | ||
'#HTMLTableCellElementAttrs'?: ('colspan' | 'headers' | 'rowspan')[]; | ||
'#ARIAAttrs'?: boolean; | ||
'#SVGAnimationAdditionAttrs'?: ('additive' | 'accumulate')[]; | ||
'#SVGAnimationAttributeTargetAttrs'?: ('attributeName' | 'attributeType')[]; | ||
'#SVGAnimationEventAttrs'?: ('onbegin' | 'onend' | 'onrepeat')[]; | ||
'#SVGAnimationTargetElementAttrs'?: ('href' | 'xlink:href')[]; | ||
'#SVGAnimationTimingAttrs'?: ( | ||
| 'begin' | ||
| 'dur' | ||
| 'end' | ||
| 'min' | ||
| 'max' | ||
| 'restart' | ||
| 'repeatCount' | ||
| 'repeatDur' | ||
| 'fill' | ||
)[]; | ||
'#SVGAnimationValueAttrs'?: ( | ||
| 'calcMode' | ||
| 'values' | ||
| 'keyTimes' | ||
| 'keySplines' | ||
| 'from' | ||
| 'to' | ||
| 'by' | ||
| 'accelerate' | ||
| 'decelerate' | ||
| 'autoReverse' | ||
| 'speed' | ||
)[]; | ||
'#SVGConditionalProcessingAttrs'?: ('requiredExtensions' | 'systemLanguage' | 'requiredFeatures')[]; | ||
'#SVGCoreAttrs'?: ( | ||
| 'id' | ||
| 'tabindex' | ||
| 'autofocus' | ||
| 'lang' | ||
| 'xml:space' | ||
| 'class' | ||
| 'style' | ||
| 'xmlns' | ||
| 'xml:lang' | ||
| 'xml:base' | ||
)[]; | ||
'#SVGFilterPrimitiveAttrs'?: ('x' | 'y' | 'width' | 'height' | 'result' | 'in')[]; | ||
'#SVGPresentationAttrs'?: ( | ||
| 'cx' | ||
| 'cy' | ||
| 'height' | ||
| 'width' | ||
| 'x' | ||
| 'y' | ||
| 'r' | ||
| 'rx' | ||
| 'ry' | ||
| 'd' | ||
| 'fill' | ||
| 'transform' | ||
| 'patternTransform' | ||
| 'gradientTransform' | ||
| 'alignment-baseline' | ||
| 'baseline-shift' | ||
| 'clip-path' | ||
| 'clip-rule' | ||
| 'color' | ||
| 'color-interpolation' | ||
| 'color-interpolation-filters' | ||
| 'cursor' | ||
| 'direction' | ||
| 'display' | ||
| 'dominant-baseline' | ||
| 'fill-opacity' | ||
| 'fill-rule' | ||
| 'filter' | ||
| 'flood-color' | ||
| 'flood-opacity' | ||
| 'font' | ||
| 'font-family' | ||
| 'font-size' | ||
| 'font-size-adjust' | ||
| 'font-stretch' | ||
| 'font-style' | ||
| 'font-variant' | ||
| 'font-weight' | ||
| 'glyph-orientation-horizontal' | ||
| 'glyph-orientation-vertical' | ||
| 'image-rendering' | ||
| 'isolation' | ||
| 'letter-spacing' | ||
| 'lighting-color' | ||
| 'marker' | ||
| 'marker-end' | ||
| 'marker-mid' | ||
| 'marker-start' | ||
| 'mask' | ||
| 'mask-type' | ||
| 'opacity' | ||
| 'overflow' | ||
| 'paint-order' | ||
| 'pointer-events' | ||
| 'shape-rendering' | ||
| 'stop-color' | ||
| 'stop-opacity' | ||
| 'stroke' | ||
| 'stroke-dasharray' | ||
| 'stroke-dashoffset' | ||
| 'stroke-linecap' | ||
| 'stroke-linejoin' | ||
| 'stroke-miterlimit' | ||
| 'stroke-opacity' | ||
| 'stroke-width' | ||
| 'text-anchor' | ||
| 'text-decoration' | ||
| 'text-overflow' | ||
| 'text-rendering' | ||
| 'transform-origin' | ||
| 'unicode-bidi' | ||
| 'vector-effect' | ||
| 'visibility' | ||
| 'white-space' | ||
| 'word-spacing' | ||
| 'writing-mode' | ||
| 'clip' | ||
| 'color-profile' | ||
| 'color-rendering' | ||
| 'enable-background' | ||
| 'kerning' | ||
)[]; | ||
'#SVGTransferFunctionAttrs'?: ( | ||
| 'type' | ||
| 'tableValues' | ||
| 'slope' | ||
| 'intercept' | ||
| 'amplitude' | ||
| 'exponent' | ||
| 'offset' | ||
)[]; | ||
'#XLinkAttrs'?: ( | ||
| 'xlink:href' | ||
| 'xlink:title' | ||
| 'xlink:actuate' | ||
| 'xlink:arcrole' | ||
| 'xlink:role' | ||
| 'xlink:show' | ||
| 'xlink:type' | ||
)[]; | ||
} | ||
export interface Attributes { | ||
[k: string]: AttributeJSON; | ||
} | ||
/** | ||
* This interface was referenced by `Attributes`'s JSON-Schema definition | ||
* via the `patternProperty` ".*". | ||
*/ | ||
export interface AttributeJSON { | ||
name: string; | ||
type: AttributeType | [AttributeType, ...AttributeType[]]; | ||
_TODO_?: string; | ||
ref: string; | ||
type?: AttributeType | [AttributeType, ...AttributeType[]]; | ||
defaultValue?: string; | ||
@@ -137,6 +1417,4 @@ deprecated?: boolean; | ||
condition?: AttributeCondition; | ||
ineffective?: Selectors; | ||
animatable?: boolean; | ||
} | ||
export interface DefineDefaultAttributeType { | ||
name: string; | ||
defaultValue: string; | ||
} |
@@ -1,6 +0,9 @@ | ||
import type { Attribute, MLDOMElementSpec, MLMLSpec, SpecOM } from './types'; | ||
import type { MLDOMElementSpec, MLMLSpec, SpecOM } from './types'; | ||
function getSpecOM({ specs }: MLMLSpec): SpecOM { | ||
import { getAttrSpecs } from './get-attr-specs'; | ||
function getSpecOM(spec: MLMLSpec): SpecOM { | ||
const som: SpecOM = {}; | ||
for (const el of specs) { | ||
for (const el of spec.specs) { | ||
const attributes = getAttrSpecs(el.name, spec); | ||
som[el.name] = { | ||
@@ -13,5 +16,3 @@ experimental: !!el.experimental, | ||
permittedStructures: el.permittedStructures, | ||
attributes: el.attributes.filter( | ||
(attr: Attribute | string): attr is Attribute => !(typeof attr === 'string'), | ||
), | ||
attributes: Object.values(attributes || {}), | ||
}; | ||
@@ -18,0 +19,0 @@ } |
@@ -1,3 +0,1 @@ | ||
import type { Attribute } from '@markuplint/html-spec'; | ||
import htmlSpec from '@markuplint/html-spec'; | ||
@@ -8,13 +6,13 @@ | ||
describe('getSpec', () => { | ||
test('', () => { | ||
const exAttr: Attribute = { | ||
name: 'extended-attr', | ||
test('Overriding', () => { | ||
const exAttr = { | ||
ref: 'N/A', | ||
type: 'Boolean', | ||
description: 'For the unit test.', | ||
}; | ||
const exAttr2: Attribute = { | ||
name: 'extended-attr', | ||
} as const; | ||
const exAttr2 = { | ||
ref: 'N/A', | ||
type: 'Boolean', | ||
description: 'For the unit test. Override.', | ||
}; | ||
} as const; | ||
const mergedSpec = getSpec([ | ||
@@ -26,3 +24,3 @@ htmlSpec, | ||
name: 'a', | ||
attributes: [exAttr], | ||
attributes: { 'extended-attr': exAttr }, | ||
}, | ||
@@ -35,3 +33,3 @@ ], | ||
name: 'a', | ||
attributes: [exAttr2], | ||
attributes: { 'extended-attr': exAttr2 }, | ||
}, | ||
@@ -42,9 +40,4 @@ ], | ||
const aElAttrs = mergedSpec.specs.find(el => el.name === 'a')!.attributes; | ||
expect( | ||
aElAttrs.find((attr): attr is Attribute => !(typeof attr === 'string') && attr.name === 'href')!.name, | ||
).toBe('href'); | ||
expect( | ||
aElAttrs.find((attr): attr is Attribute => !(typeof attr === 'string') && attr.name === exAttr.name), | ||
).toStrictEqual(exAttr2); | ||
expect(aElAttrs['extended-attr']).toStrictEqual(exAttr2); | ||
}); | ||
}); |
@@ -1,2 +0,2 @@ | ||
import type { ElementSpec, ExtendedSpec, MLMLSpec } from './types'; | ||
import type { ElementSpec, ExtendedSpec, MLMLSpec, Attribute } from './types'; | ||
@@ -24,6 +24,6 @@ import { mergeArray } from './utils'; | ||
if (extendedSpec.def['#globalAttrs']?.['#extends']) { | ||
result.def['#globalAttrs']['#HTMLGlobalAttrs'] = [ | ||
...(result.def['#globalAttrs']?.['#HTMLGlobalAttrs'] || []), | ||
...(extendedSpec.def['#globalAttrs']?.['#extends'] || []), | ||
]; | ||
result.def['#globalAttrs']['#HTMLGlobalAttrs'] = { | ||
...(result.def['#globalAttrs']?.['#HTMLGlobalAttrs'] || {}), | ||
...(extendedSpec.def['#globalAttrs']?.['#extends'] || {}), | ||
}; | ||
} | ||
@@ -59,3 +59,7 @@ if (extendedSpec.def['#roles']) { | ||
...exSpec, | ||
attributes: mergeArray(elSpec.attributes, exSpec.attributes), | ||
globalAttrs: { | ||
...elSpec.globalAttrs, | ||
...exSpec.globalAttrs, | ||
}, | ||
attributes: mergeAttrSpec(elSpec.attributes, exSpec.attributes), | ||
categories: mergeArray(elSpec.categories, exSpec.categories), | ||
@@ -71,1 +75,18 @@ }); | ||
} | ||
function mergeAttrSpec( | ||
std: Record<string, Attribute>, | ||
ex: Record<string, Partial<Attribute>> = {}, | ||
): Record<string, Attribute> { | ||
const result: Record<string, Attribute> = {}; | ||
const keys = Array.from(new Set([...Object.keys(std), ...Object.keys(ex)])); | ||
for (const key of keys) { | ||
const _std = std[key]; | ||
const _ex = ex[key]; | ||
result[key] = { | ||
..._std, | ||
..._ex, | ||
}; | ||
} | ||
return result; | ||
} |
export * from './permitted-structres'; | ||
export * from './attributes'; | ||
export * from './get-attr-specs'; | ||
export * from './get-spec-by-tag-name'; | ||
@@ -4,0 +5,0 @@ export * from './get-spec'; |
@@ -60,2 +60,8 @@ /* tslint:disable */ | ||
parent: string; | ||
/** | ||
* Not support yet | ||
*/ | ||
hasNotAttr?: string; | ||
_TODO_?: string; | ||
_parent?: string; | ||
}; | ||
@@ -73,2 +79,3 @@ contents: PermittedContentSpec | boolean; | ||
min?: number; | ||
_TODO_?: string; | ||
} | ||
@@ -80,2 +87,3 @@ export interface PermittedContentOptional { | ||
max?: number; | ||
_TODO_?: string; | ||
} | ||
@@ -87,2 +95,3 @@ export interface PermittedContentOneOrMore { | ||
max?: number; | ||
_TODO_?: string; | ||
} | ||
@@ -94,2 +103,3 @@ export interface PermittedContentZeroOrMore { | ||
max?: number; | ||
_TODO_?: string; | ||
} | ||
@@ -108,5 +118,7 @@ export interface PermittedContentChoice { | ||
]; | ||
_TODO_?: string; | ||
} | ||
export interface PermittedContentInterleave { | ||
interleave: [PermittedContentSpec, PermittedContentSpec, ...PermittedContentSpec[]]; | ||
_TODO_?: string; | ||
} |
@@ -1,2 +0,3 @@ | ||
import type { AttributeCondition, AttributeType } from './attributes'; | ||
import type { AttributeJSON } from '.'; | ||
import type { AttributeType, GlobalAttributes } from './attributes'; | ||
import type { ContentModel, PermittedStructuresSchema } from './permitted-structres'; | ||
@@ -13,3 +14,6 @@ | ||
type ExtendedElementSpec = Partial<ElementSpec> & { name: ElementSpec['name'] }; | ||
export type ExtendedElementSpec = Partial<Omit<ElementSpec, 'name' | 'attributes'>> & { | ||
name: ElementSpec['name']; | ||
attributes?: Record<string, Partial<Attribute>>; | ||
}; | ||
@@ -29,5 +33,5 @@ export type ExtendedSpec = { | ||
'#globalAttrs': Partial<{ | ||
'#extends': Attribute[]; | ||
'#HTMLGlobalAttrs': Attribute[]; | ||
[OtherGlobalAttrs: string]: Attribute[]; | ||
'#extends': Record<string, Partial<Attribute>>; | ||
'#HTMLGlobalAttrs': Record<string, Partial<Attribute>>; | ||
[OtherGlobalAttrs: string]: Record<string, Partial<Attribute>>; | ||
}>; | ||
@@ -128,5 +132,10 @@ '#ariaAttrs': ARIAAttribute[]; | ||
/** | ||
* Global Attributes | ||
*/ | ||
globalAttrs: GlobalAttributes; | ||
/** | ||
* Attributes | ||
*/ | ||
attributes: (Attribute | string)[]; | ||
attributes: Record<string, Attribute>; | ||
}; | ||
@@ -158,4 +167,4 @@ | ||
name: string; | ||
type: AttributeType | [AttributeType, ...AttributeType[]]; | ||
description: string; | ||
type: AttributeType | AttributeType[]; | ||
description?: string; | ||
caseSensitive?: true; | ||
@@ -166,8 +175,6 @@ experimental?: true; | ||
nonStandard?: true; | ||
required?: boolean | AttributeCondition; | ||
requiredEither?: string[]; | ||
noUse?: boolean; | ||
condition?: AttributeCondition; | ||
}; | ||
} & ExtendableAttributeSpec; | ||
type ExtendableAttributeSpec = Omit<AttributeJSON, 'ref' | '_TODO_' | 'type'>; | ||
export type ARIRRoleAttribute = { | ||
@@ -174,0 +181,0 @@ name: string; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
191962
39
4785
2