mostly-dom
Version:
A virtual-dom for TypeScript
1,480 lines (1,315 loc) • 125 kB
text/typescript
/* tslint:disable:max-line-length */
/**
* Value of a CSS Property. Could be a single value or a list of fallbacks
* NOTE: array is for fallbacks
*/
export type CSSValue<T> = T | Array<T>
/**
* For general purpose CSS values
*/
export type CSSValueGeneral = CSSValue<number | string>
/**
* When you are sure that the value must be a string
*/
export type CSSValueString = CSSValue<string>
/**
* CSS properties that cascade also support these
* @see https://drafts.csswg.org/css-cascade/#defaulting-keywords
*/
export type CSSGlobalValues =
| 'initial'
| 'inherit'
| /** combination of `initial` and `inherit` */ 'unset'
| 'revert'
export interface FontFace {
fontFamily?: string
/**
* Location of a font-face. Used with the @font-face at rule
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/src
*/
src?: CSSValueString
unicodeRange?: any
fontVariant?: 'common-ligatures' | 'small-caps' | CSSGlobalValues
fontFeatureSettings?: string
fontWeight?: CSSFontWeight
fontStyle?: 'normal' | 'italic' | 'oblique' | CSSGlobalValues
}
/**
* Absolute size keywords
* @see https://drafts.csswg.org/css-fonts-3/#absolute-size-value
*/
export type CSSAbsoluteSize =
| 'xx-small'
| 'x-small'
| 'small'
| 'medium'
| 'large'
| 'x-large'
| 'xx-large'
/**
* an angle; 0' | '0deg' | '0grad' | '0rad' | '0turn' | 'etc.
* @see https://drafts.csswg.org/css-values-3/#angles
*/
export type CSSAngle = CSSGlobalValues | string | 0
/**
* initial state of an animation.
* @see https://drafts.csswg.org/css-animations/#animation-play-state
*/
export type CSSAnimationPlayState = CSSGlobalValues | string | 'paused' | 'running'
/**
* blend mode
* @see https://drafts.fxtf.org/compositing-1/#ltblendmodegt
*/
export type CSSBlendMode =
| 'normal'
| 'multiply'
| 'screen'
| 'overlay'
| 'darken'
| 'lighten'
| 'color-dodge'
| 'color-burn'
| 'hard-light'
| 'soft-light'
| 'difference'
| 'exclusion'
| 'hue'
| 'saturation'
| 'color'
| 'luminosity'
/**
* border shorthand for style color and width
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/border-bottom
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/border-left
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/border-right
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/border-top
*/
export type CSSBorderShorthand = CSSGlobalValues | CSSColor | CSSLength | CSSLineStyleSet | string
/**
* Determines the area within which the background is painted.
* @see https://drafts.csswg.org/css-backgrounds/#box
*/
export type CSSBox = CSSGlobalValues | string | 'border-box' | 'padding-box' | 'content-box'
/**
* Color can be a named color, transparent, or a color function
* @see https://drafts.csswg.org/css-color-3/#valuea-def-color
*/
export type CSSColor = CSSNamedColor | CSSGlobalValues | 'currentColor' | string
export type CSSNamedColor =
| 'aliceblue'
| 'antiquewhite'
| 'aqua'
| 'aquamarine'
| 'azure'
| 'beige'
| 'bisque'
| 'black'
| 'blanchedalmond'
| 'blue'
| 'blueviolet'
| 'brown'
| 'burlywood'
| 'cadetblue'
| 'chartreuse'
| 'chocolate'
| 'coral'
| 'cornflowerblue'
| 'cornsilk'
| 'crimson'
| 'cyan'
| 'darkblue'
| 'darkcyan'
| 'darkgoldenrod'
| 'darkgray'
| 'darkgreen'
| 'darkgrey'
| 'darkkhaki'
| 'darkmagenta'
| 'darkolivegreen'
| 'darkorange'
| 'darkorchid'
| 'darkred'
| 'darksalmon'
| 'darkseagreen'
| 'darkslateblue'
| 'darkslategray'
| 'darkslategrey'
| 'darkturquoise'
| 'darkviolet'
| 'deeppink'
| 'deepskyblue'
| 'dimgray'
| 'dimgrey'
| 'dodgerblue'
| 'firebrick'
| 'floralwhite'
| 'forestgreen'
| 'fuchsia'
| 'gainsboro'
| 'ghostwhite'
| 'gold'
| 'goldenrod'
| 'gray'
| 'green'
| 'greenyellow'
| 'grey'
| 'honeydew'
| 'hotpink'
| 'indianred'
| 'indigo'
| 'ivory'
| 'khaki'
| 'lavender'
| 'lavenderblush'
| 'lawngreen'
| 'lemonchiffon'
| 'lightblue'
| 'lightcoral'
| 'lightcyan'
| 'lightgoldenrodyellow'
| 'lightgray'
| 'lightgreen'
| 'lightgrey'
| 'lightpink'
| 'lightsalmon'
| 'lightseagreen'
| 'lightskyblue'
| 'lightslategray'
| 'lightslategrey'
| 'lightsteelblue'
| 'lightyellow'
| 'lime'
| 'limegreen'
| 'linen'
| 'maroon'
| 'mediumaquamarine'
| 'mediumblue'
| 'mediumorchid'
| 'mediumpurple'
| 'mediumseagreen'
| 'mediumslateblue'
| 'mediumspringgreen'
| 'mediumturquoise'
| 'mediumvioletred'
| 'midnightblue'
| 'mintcream'
| 'mistyrose'
| 'moccasin'
| 'navajowhite'
| 'navy'
| 'oldlace'
| 'olive'
| 'olivedrab'
| 'orange'
| 'purple'
| 'rebeccapurple'
| 'red'
| 'silver'
| 'teal'
| 'transparent'
| 'white'
| 'yellow'
/**
* Special type for border-color which can use 1 or 4 colors
* @see https://drafts.csswg.org/css-backgrounds-3/#border-color
*/
export type CSSColorSet = string | CSSColor
/**
* This property specifies the type of rendering box used for an element. It is a shorthand property for many other display properties.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/display
*/
export type CSSDisplay =
/* <display-outside> values */
| 'block'
| 'inline'
| 'run-in'
/* <display-inside> values */
| 'flow'
| 'flow-root'
| 'table'
| 'flex'
| 'grid'
| 'ruby'
| 'subgrid'
/* <display-outside> plus <display-inside> values */
| 'block flow'
| 'inline table'
| 'flex run-in'
/* <display-listitem> values */
| 'list-item'
| 'list-item block'
| 'list-item inline'
| 'list-item flow'
| 'list-item flow-root'
| 'list-item block flow'
| 'list-item block flow-root'
| 'flow list-item block'
/* <display-internal> values */
| 'table-row-group'
| 'table-header-group'
| 'table-footer-group'
| 'table-row'
| 'table-cell'
| 'table-column-group'
| 'table-column'
| 'table-caption'
| 'ruby-base'
| 'ruby-text'
| 'ruby-base-container'
| 'ruby-text-container'
/* <display-box> values */
| 'contents'
| 'none'
/* <display-legacy> values */
| 'inline-block'
| 'inline-list-item'
| 'inline-table'
| 'inline-flex'
| 'inline-grid'
/**
* CSS Type <baseline-position> of Box Alignment
* @see https://www.w3.org/TR/css-align-3/#typedef-baseline-position
*/
export type CSSBoxAlignmentBaselinePosition = 'baseline' | 'first baseline' | 'last baseline'
/**
* CSS Type <content-distribution> of Box Alignment
* @see https://www.w3.org/TR/css-align-3/#typedef-content-distribution
*/
export type CSSBoxAlignmentContentDistribution =
| 'space-between'
| 'space-around'
| 'space-evenly'
| 'stretch'
export type CSSBoxAlignmentContentPositionWithOverflow =
| 'center'
| 'start'
| 'end'
| 'flex-start'
| 'flex-end'
| 'unsafe center'
| 'unsafe start'
| 'unsafe end'
| 'unsafe flex-start'
| 'unsafe flex-end'
| 'safe center'
| 'safe start'
| 'safe end'
| 'safe flex-start'
| 'safe flex-end'
export type CSSBoxAlignmentSelfPositionWithOverflow =
| 'center'
| 'start'
| 'end'
| 'self-start'
| 'self-end'
| 'flex-start'
| 'flex-end'
| 'unsafe center'
| 'unsafe start'
| 'unsafe end'
| 'unsafe self-start'
| 'unsafe self-end'
| 'unsafe flex-start'
| 'unsafe flex-end'
| 'safe center'
| 'safe start'
| 'safe end'
| 'safe self-start'
| 'safe self-end'
| 'safe flex-start'
| 'safe flex-end'
export type CSSBoxAlignmentLeftRightWithOverflow =
| 'left'
| 'right'
| 'unsafe left'
| 'unsafe right'
| 'safe left'
| 'safe right'
/**
* Type for justify-content in flex or grid
* @see https://www.w3.org/TR/css-align-3/#propdef-justify-content
*/
export type JustifyContent =
| 'normal'
| CSSBoxAlignmentContentDistribution
| CSSBoxAlignmentContentPositionWithOverflow
| 'left'
| 'right'
/**
* Type for align-content in flex or grid
* @see https://www.w3.org/TR/css-align-3/#propdef-align-content
*/
export type AlignContent =
| 'normal'
| CSSBoxAlignmentBaselinePosition
| CSSBoxAlignmentContentDistribution
| CSSBoxAlignmentContentPositionWithOverflow
/**
* Type for justify-items in flex or grid
* @see https://www.w3.org/TR/css-align-3/#propdef-justify-items
*/
export type JustifyItems =
| 'normal'
| 'stretch'
| CSSBoxAlignmentBaselinePosition
| CSSBoxAlignmentSelfPositionWithOverflow
| 'left'
| 'right'
| 'center'
| 'legacy left'
| 'legacy right'
| 'legacy center'
/**
* Type for align-items in flex or grid
* @see https://www.w3.org/TR/css-align-3/#propdef-align-items
*/
export type AlignItems =
| 'normal'
| 'stretch'
| CSSBoxAlignmentBaselinePosition
| CSSBoxAlignmentSelfPositionWithOverflow
/**
* Type for justify-self in flex or grid
* @see https://www.w3.org/TR/css-align-3/#propdef-justify-self
*/
export type JustifySelf =
| 'auto'
| 'normal'
| 'stretch'
| CSSBoxAlignmentBaselinePosition
| CSSBoxAlignmentSelfPositionWithOverflow
| CSSBoxAlignmentLeftRightWithOverflow
/**
* Type for align-self in flex or grid
* @see https://www.w3.org/TR/css-align-3/#propdef-align-self
*/
export type AlignSelf =
| 'auto'
| 'normal'
| 'stretch'
| CSSBoxAlignmentBaselinePosition
| CSSBoxAlignmentSelfPositionWithOverflow
/**
* a gradient function like linear-gradient
* @see https://drafts.csswg.org/css-images-3/#gradients
*/
export type CSSGradient = CSSGlobalValues | string
/**
* complex type that describes the size of fonts
* @see https://drafts.csswg.org/css-fonts-3/#propdef-font-size
*/
export type CSSFontSize =
| CSSGlobalValues
| CSSLength
| CSSPercentage
| CSSAbsoluteSize
| CSSRelativeSize
/**
* The numeric-figure-values Controls the usage of alternate glyphs for numbers, fractions, and ordinal markers.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/font-variant-numeric
*/
export type CSSNumericFigureValue =
| CSSGlobalValues
| 'normal'
| 'ordinal'
| 'slashed-zero'
| 'lining-nums'
| 'oldstyle-nums'
| 'proportional-nums'
| 'tabular-nums'
| 'diagonal-fractions'
| 'stacked-fractions'
| 'oldstyle-nums stacked-fractions'
/**
* a value that serves as an image
* @see https://drafts.csswg.org/css-images-3/#typedef-image
*/
export type CSSImage = CSSGlobalValues | string | CSSGradient | CSSUrl
/**
* an length; 0 | '0px' | '0em' etc.
* @see https://drafts.csswg.org/css-values-3/#lengths
*/
export type CSSLength = CSSGlobalValues | string | number
/**
* Style of a line (e.g. border-style)
* @see https://drafts.csswg.org/css-backgrounds-3/#line-style
*/
export type CSSLineStyle =
| string
| 'none'
| 'hidden'
| 'dotted'
| 'dashed'
| 'solid'
| 'double'
| 'groove'
| 'ridge'
| 'inset'
| 'outset'
/**
* Special type for border-style which can use 1 or 4 line-style
* @see https://drafts.csswg.org/css-backgrounds-3/#border-style
*/
export type CSSLineStyleSet = string | CSSLineStyle
/**
* Specifies how the contents of a replaced element should be fitted to the box established by its used height and width.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit
*/
export type CSSObjectFit = 'fill' | 'contain' | 'cover' | 'none' | 'scale-down' | CSSGlobalValues
/**
* Overflow modes
* @see https://drafts.csswg.org/css-overflow-3/#propdef-overflow
*/
export type CSSOverflow = 'visible' | 'hidden' | 'scroll' | 'clip' | 'auto'
/**
* a percentage; 0 | '0%' etc.
* @see https://drafts.csswg.org/css-values-3/#percentage
*/
export type CSSPercentage = CSSGlobalValues | string | 0
/**
* Defines a position (e.g. background-position)
* @see https://drafts.csswg.org/css-backgrounds-3/#position
*/
export type CSSPosition = CSSAngle | string
/**
* Relative size keywords
* @see https://drafts.csswg.org/css-fonts-3/#relative-size-value
*/
export type CSSRelativeSize = 'larger' | 'smaller'
/**
* Specifies how background images are tiled after they have been sized and positioned
* @see https://drafts.csswg.org/css-backgrounds/#repeat-style
*/
export type CSSRepeatStyle =
| 'repeat-x'
| 'repeat-y'
| 'repeat'
| 'space'
| 'round'
| 'no-repeat'
| 'repeat repeat'
| 'repeat space'
| 'repeat round'
| 'repeat no-repeat'
| 'space repeat'
| 'space space'
| 'space round'
| 'space no-repeat'
| 'round repeat'
| 'round space'
| 'round round'
| 'round no-repeat'
| 'no-repeat repeat'
| 'no-repeat space'
| 'no-repeat round'
| 'no-repeat no-repeat'
/**
* Tranform list for the element.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function
*/
export type CSSTransformFunction = string | 'none'
/**
* Starting position for many gradients
* @see https://drafts.csswg.org/css-images-3/#typedef-side-or-corner
*/
export type CSSSideOrCorner =
| CSSAngle
| 'left'
| 'right'
| 'top'
| 'bottom'
| 'to left'
| 'to right'
| 'to top'
| 'to bottom'
| 'left top'
| 'right top'
| 'left bottom'
| 'right bottom'
| 'top left'
| 'top right'
| 'bottom left'
| 'bottom right'
| 'to left top'
| 'to right top'
| 'to left bottom'
| 'to right bottom'
| 'to top left'
| 'to top right'
| 'to bottom left'
| 'to bottom right'
export type CSSRadialGradientEndingShape = 'circle' | 'ellipse'
/**
* Radial Gradient Size.
* @see https://drafts.csswg.org/css-images-3/#ending-shape
*/
export type CSSRadialGradientSize =
| CSSLength
| Array<CSSLength>
| 'closest-side'
| 'farthest-side'
| 'closest-corner'
| 'closest-side'
/** Supporting by `-timing-function` properties */
export type CSSTimingFunction = /** e.g. steps(int,start|end)|cubic-bezier(n,n,n,n) */
| string
| CSSGlobalValues
| 'ease'
| 'ease-in'
| 'ease-out'
| 'ease-in-out'
| 'linear'
| 'step-start'
| 'step-end'
/**
* Expressed as url('protocol://')
* @see https://drafts.csswg.org/css-values-3/#urls
*/
export type CSSUrl = string
/**
* Font weights
*/
export type CSSFontWeight =
| 'normal'
| 'bold'
| 'bolder'
| 'lighter'
| 100
| 200
| 300
| 400
| 500
| 600
| 700
| 800
| 900
| number
| CSSGlobalValues
/**
* This interface documents key CSS properties for autocomplete
*/
export interface CSSProperties {
/**
* Typestyle configuration options
*/
/**
* The generated CSS selector gets its own unique location in the generated CSS (disables deduping).
* So instead of `.classA,.classB{same properties}`
* you get `.classA {same properties} .classB {same properties}`
* This is needed for certain browser edge cases like placeholder styling
*/
$unique?: boolean
/**
* Smooth scrolling on an iPhone. Specifies whether to use native-style scrolling in an element.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/-webkit-overflow-scrolling
*/
'-webkit-overflow-scrolling'?: 'auto' | 'touch'
/**
* Aligns a flex container's lines within the flex container when there is extra space in the cross-axis, similar to how justify-content aligns individual items within the main-axis.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/align-content
*/
alignContent?: AlignContent
/**
* Sets the default alignment in the cross axis for all of the flex container's items, including anonymous flex items, similarly to how justify-content aligns items along the main axis.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/align-items
*/
alignItems?: CSSValue<AlignItems>
'-ms-align-items'?: CSSValue<AlignItems>
'-webkit-align-items'?: CSSValue<AlignItems>
/**
* Allows the default alignment to be overridden for individual flex items.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/align-self
*/
alignSelf?: CSSValue<AlignSelf>
'-webkit-align-self'?: CSSValue<AlignSelf>
'-ms-flex-item-align'?: string
/**
* This property allows precise alignment of elements, such as graphics, that do not have a baseline-table or lack the desired baseline in their baseline-table. With the alignment-adjust property, the position of the baseline identified by the alignment-baseline can be explicitly determined. It also determines precisely the alignment point for each glyph within a textual element.
*/
alignmentAdjust?: any
/**
* The alignment-baseline attribute specifies how an object is aligned with respect to its parent.
* @see https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/alignment-baseline
*/
alignmentBaseline?:
| 'auto'
| 'baseline'
| 'before-edge'
| 'text-before-edge'
| 'middle'
| 'central'
| 'after-edge'
| 'text-after-edge'
| 'ideographic'
| 'alphabetic'
| 'hanging'
| 'mathematical'
| 'inherit'
/**
* Shorthand property for animation-name, animation-duration, animation-timing-function, animation-delay,
* animation-iteration-count, animation-direction, animation-fill-mode, and animation-play-state.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/animation
*/
animation?: CSSValueString
/**
* Defines a length of time to elapse before an animation starts, allowing an animation to begin execution some time after it is applied.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/animation-delay
*/
animationDelay?: any
/**
* Defines whether an animation should run in reverse on some or all cycles.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/animation-direction
*/
animationDirection?: CSSGlobalValues | 'normal' | 'alternate' | 'reverse' | 'alternate-reverse'
/**
* The animation-duration CSS property specifies the length of time that an animation should take to complete one cycle.
* A value of '0s', which is the default value, indicates that no animation should occur.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/animation-duration
*/
animationDuration?: CSSValue<string>
/**
* Specifies how a CSS animation should apply styles to its target before and after it is executing.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/animation-fill-mode
*/
animationFillMode?: 'none' | 'forwards' | 'backwards' | 'both'
/**
* Specifies how many times an animation cycle should play.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/animation-iteration-count
*/
animationIterationCount?: CSSValue<number | 'infinite'>
/**
* Defines the list of animations that apply to the element.
* Note: You probably want animationDuration as well
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/animation-name
*/
animationName?: CSSValue<string>
/**
* Defines whether an animation is running or paused.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/animation-play-state
*/
animationPlayState?: CSSValue<CSSAnimationPlayState>
/**
* Sets the pace of an animation
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/animation-timing-function
*/
animationTimingFunction?: CSSValue<CSSTimingFunction>
/**
* Allows changing the style of any element to platform-based interface elements or vice versa.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/appearance
*/
appearance?: CSSValue<'auto' | 'none'>
/**
* Determines whether or not the “back” side of a transformed element is visible when facing the viewer.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/backface-visibility
*/
backfaceVisibility?: CSSGlobalValues | 'visible' | 'hidden'
/**
* Shorthand property to set the values for one or more of:
* background-clip, background-color, background-image,
* background-origin, background-position, background-repeat,
* background-size, and background-attachment.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/background
*/
background?: any
/**
* If a background-image is specified, this property determines
* whether that image's position is fixed within the viewport,
* or scrolls along with its containing block.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/background-attachment
*/
backgroundAttachment?: 'scroll' | 'fixed' | 'local'
/**
* This property describes how the element's background images should blend with each other and the element's background color.
* The value is a list of blend modes that corresponds to each background image. Each element in the list will apply to the corresponding element of background-image. If a property doesn’t have enough comma-separated values to match the number of layers, the UA must calculate its used value by repeating the list of values until there are enough.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/background-blend-mode
*/
backgroundBlendMode?: CSSValue<CSSBlendMode>
/**
* Specifies whether an element's background, either the color or image, extends underneath its border.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/background-clip
*/
backgroundClip?: CSSValue<CSSBox | 'text'>
/**
* Sets the background color of an element.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/background-color
*/
backgroundColor?: CSSValue<CSSColor>
/**
* Sets a compositing style for background images and colors.
*/
backgroundComposite?: any
/**
* Applies one or more background images to an element. These can be any valid CSS image, including url() paths to image files or CSS gradients.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/background-image
*/
backgroundImage?: CSSValue<CSSImage>
/**
* Specifies what the background-position property is relative to.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/background-origin
*/
backgroundOrigin?: CSSValue<CSSBox>
/**
* Sets the position of a background image.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/background-position
*/
backgroundPosition?: CSSValue<CSSPosition>
/**
* Background-repeat defines if and how background images will be repeated after they have been sized and positioned
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/background-repeat
*/
backgroundRepeat?: CSSValue<CSSRepeatStyle | string>
/**
* Background-size specifies the size of a background image
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/background-size
*/
backgroundSize?: 'auto' | 'cover' | 'contain' | CSSLength | CSSPercentage | CSSGlobalValues
/**
* Obsolete - spec retired, not implemented.
* @see https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/baseline-shift
*/
baselineShift?: any
/**
* Non standard. Sets or retrieves the location of the Dynamic HTML (DHTML) behavior.
* @see https://msdn.microsoft.com/en-us/library/ms530723(v=vs.85).aspx
*/
behavior?: any
/**
* Shorthand property that defines the different properties of all four sides of an element's border in a single declaration. It can be used to set border-width, border-style and border-color, or a subset of these.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/border
*/
border?: any
/**
* Shorthand that sets the values of border-bottom-color,
* border-bottom-style, and border-bottom-width.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/border-bottom
*/
borderBottom?: CSSBorderShorthand
/**
* Sets the color of the bottom border of an element.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/border-bottom-color
*/
borderBottomColor?: CSSValue<CSSColor>
/**
* Defines the shape of the border of the bottom-left corner.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/border-bottom-left-radius
*/
borderBottomLeftRadius?: any
/**
* Defines the shape of the border of the bottom-right corner.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/border-bottom-right-radius
*/
borderBottomRightRadius?: any
/**
* Sets the line style of the bottom border of a box.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/border-bottom-style
*/
borderBottomStyle?: CSSValue<CSSLineStyle>
/**
* Sets the width of an element's bottom border. To set all four borders, use the border-width shorthand property which sets the values simultaneously for border-top-width, border-right-width, border-bottom-width, and border-left-width.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/border-bottom-width
*/
borderBottomWidth?: CSSValue<CSSLength | CSSPercentage>
/**
* Border-collapse can be used for collapsing the borders between table cells
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/border-collapse
*/
borderCollapse?: any
/**
* The CSS border-color property sets the color of an element's four borders. This property can have from one to four values, made up of the elementary properties:
* • border-top-color
* • border-right-color
* • border-bottom-color
* • border-left-color The default color is the currentColor of each of these values.
* If you provide one value, it sets the color for the element. Two values set the horizontal and vertical values, respectively. Providing three values sets the top, vertical, and bottom values, in that order. Four values set all for sides: top, right, bottom, and left, in that order.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/border-color
*/
borderColor?: CSSValue<CSSColorSet>
/**
* Specifies different corner clipping effects, such as scoop (inner curves), bevel (straight cuts) or notch (cut-off rectangles). Works along with border-radius to specify the size of each corner effect.
*/
borderCornerShape?: any
/**
* The property border-image-source is used to set the image to be used instead of the border style. If this is set to none the border-style is used instead.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/border-image-source
*/
borderImageSource?: CSSValue<CSSImage>
/**
* The border-image-width CSS property defines the offset to use for dividing the border image in nine parts, the top-left corner, central top edge, top-right-corner, central right edge, bottom-right corner, central bottom edge, bottom-left corner, and central right edge. They represent inward distance from the top, right, bottom, and left edges.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/border-image-width
*/
borderImageWidth?: CSSValue<CSSLength | CSSPercentage>
/**
* Shorthand property that defines the border-width, border-style and border-color of an element's left border in a single declaration. Note that you can use the corresponding longhand properties to set specific individual properties of the left border — border-left-width, border-left-style and border-left-color.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/border-left
*/
borderLeft?: CSSBorderShorthand
/**
* The CSS border-left-color property sets the color of an element's left border. This page explains the border-left-color value, but often you will find it more convenient to fix the border's left color as part of a shorthand set, either border-left or border-color.
* Colors can be defined several ways. For more information, see Usage.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/border-left-color
*/
borderLeftColor?: CSSValue<CSSColor>
/**
* Sets the style of an element's left border. To set all four borders, use the shorthand property, border-style. Otherwise, you can set the borders individually with border-top-style, border-right-style, border-bottom-style, border-left-style.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/border-left-style
*/
borderLeftStyle?: CSSValue<CSSLineStyle>
/**
* Sets the width of an element's left border. To set all four borders, use the border-width shorthand property which sets the values simultaneously for border-top-width, border-right-width, border-bottom-width, and border-left-width.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/border-left-width
*/
borderLeftWidth?: CSSValue<CSSLength | CSSPercentage>
/**
* Allows Web authors to define how rounded border corners are
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius
*/
borderRadius?: CSSValue<CSSLength | CSSPercentage>
/**
* Shorthand property that defines the border-width, border-style and border-color of an element's right border in a single declaration. Note that you can use the corresponding longhand properties to set specific individual properties of the right border — border-right-width, border-right-style and border-right-color.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/border-right
*/
borderRight?: CSSBorderShorthand
/**
* Sets the color of an element's right border. This page explains the border-right-color value, but often you will find it more convenient to fix the border's right color as part of a shorthand set, either border-right or border-color.
* Colors can be defined several ways. For more information, see Usage.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/border-right-color
*/
borderRightColor?: CSSValue<CSSColor>
/**
* Sets the style of an element's right border. To set all four borders, use the shorthand property, border-style. Otherwise, you can set the borders individually with border-top-style, border-right-style, border-bottom-style, border-left-style.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/border-right-style
*/
borderRightStyle?: CSSValue<CSSLineStyle>
/**
* Sets the width of an element's right border. To set all four borders, use the border-width shorthand property which sets the values simultaneously for border-top-width, border-right-width, border-bottom-width, and border-left-width.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/border-right-width
*/
borderRightWidth?: CSSValue<CSSLength | CSSPercentage>
/**
* Specifies the distance between the borders of adjacent cells.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/border-spacing
*/
borderSpacing?: CSSLength | string | 'inherit'
/**
* Sets the style of an element's four borders. This property can have from one to four values. With only one value, the value will be applied to all four borders; otherwise, this works as a shorthand property for each of border-top-style, border-right-style, border-bottom-style, border-left-style, where each border style may be assigned a separate value.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/border-style
*/
borderStyle?: CSSValue<CSSLineStyleSet>
/**
* Shorthand property that defines the border-width, border-style and border-color of an element's top border in a single declaration. Note that you can use the corresponding longhand properties to set specific individual properties of the top border — border-top-width, border-top-style and border-top-color.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/border-top
*/
borderTop?: CSSBorderShorthand
/**
* Sets the color of an element's top border. This page explains the border-top-color value, but often you will find it more convenient to fix the border's top color as part of a shorthand set, either border-top or border-color.
* Colors can be defined several ways. For more information, see Usage.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/border-top-color
*/
borderTopColor?: CSSValue<CSSColor>
/**
* Sets the rounding of the top-left corner of the element.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/border-top-left-radius
*/
borderTopLeftRadius?: any
/**
* Sets the rounding of the top-right corner of the element.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/border-top-right-radius
*/
borderTopRightRadius?: any
/**
* Sets the style of an element's top border. To set all four borders, use the shorthand property, border-style. Otherwise, you can set the borders individually with border-top-style, border-right-style, border-bottom-style, border-left-style.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/border-top-style
*/
borderTopStyle?: CSSValue<CSSLineStyle>
/**
* Sets the width of an element's top border. To set all four borders, use the border-width shorthand property which sets the values simultaneously for border-top-width, border-right-width, border-bottom-width, and border-left-width.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/border-top-width
*/
borderTopWidth?: CSSValue<CSSLength | CSSPercentage>
/**
* Sets the width of an element's four borders. This property can have from one to four values. This is a shorthand property for setting values simultaneously for border-top-width, border-right-width, border-bottom-width, and border-left-width.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/border-width
*/
borderWidth?: CSSValue<CSSLength | CSSPercentage>
/**
* This property specifies how far an absolutely positioned box's bottom margin edge is offset above the bottom edge of the box's containing block. For relatively positioned boxes, the offset is with respect to the bottom edges of the box itself (i.e., the box is given a position in the normal flow, then offset from that position according to these properties).
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/bottom
*/
bottom?: CSSValue<'auto' | CSSLength | CSSPercentage | CSSGlobalValues>
/**
* Obsolete.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/box-align
*/
boxAlign?: any
/**
* Breaks a box into fragments creating new borders, padding and repeating backgrounds or lets it stay as a continuous box on a page break, column break, or, for inline elements, at a line break.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/box-decoration-break
*/
boxDecorationBreak?: any
/**
* Deprecated
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/box-direction
*/
boxDirection?: any
/**
* Do not use. This property has been replaced by the flex-wrap property.
* Gets or sets a value that specifies the direction to add successive rows or columns when the value of box-lines is set to multiple.
*/
boxLineProgression?: any
/**
* Do not use. This property has been replaced by the flex-wrap property.
* Gets or sets a value that specifies whether child elements wrap onto multiple lines or columns based on the space available in the object.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/box-lines
*/
boxLines?: any
/**
* Do not use. This property has been replaced by flex-order.
* Specifies the ordinal group that a child element of the object belongs to. This ordinal value identifies the display order (along the axis defined by the box-orient property) for the group.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/box-ordinal-group
*/
boxOrdinalGroup?: any
/**
* Deprecated.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/box-flex
*/
boxFlex?: number
/**
* box sizing
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/box-sizing
*/
boxSizing?: CSSGlobalValues | 'content-box' | 'border-box'
'-moz-box-sizing'?: CSSGlobalValues | 'content-box' | 'border-box'
'-webkit-box-sizing'?: CSSGlobalValues | 'content-box' | 'border-box'
/**
* Box shadow
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/box-shadow
*/
boxShadow?: CSSValueGeneral
/**
* Deprecated.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/box-flex-group
*/
boxFlexGroup?: number
/**
* The CSS break-after property allows you to force a break on multi-column layouts. More specifically, it allows you to force a break after an element. It allows you to determine if a break should occur, and what type of break it should be. The break-after CSS property describes how the page, column or region break behaves after the generated box. If there is no generated box, the property is ignored.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/break-after
*/
breakAfter?:
| 'auto'
| 'avoid'
| 'avoid-page'
| 'page'
| 'left'
| 'right'
| 'recto'
| 'verso'
| 'avoid-column'
| 'column'
| 'avoid-region'
| 'region'
/**
* Control page/column/region breaks that fall above a block of content
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/break-before
*/
breakBefore?:
| 'auto'
| 'avoid'
| 'avoid-page'
| 'page'
| 'left'
| 'right'
| 'recto'
| 'verso'
| 'avoid-column'
| 'column'
| 'avoid-region'
| 'region'
/**
* Control page/column/region breaks that fall within a block of content
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/break-inside
*/
breakInside?: 'auto' | 'avoid' | 'avoid-page' | 'avoid-column' | 'avoid-region'
/**
* The caption-side CSS property positions the content of a table's <caption> on the specified side.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/caption-side
*/
captionSide?:
| CSSGlobalValues
| 'top'
| 'bottom'
| 'block-start'
| 'block-end'
| 'inline-start'
| 'inline-end'
/**
* The clear CSS property specifies if an element can be positioned next to or must be positioned below the floating elements that precede it in the markup.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/clear
*/
clear?: CSSGlobalValues | 'none' | 'left' | 'right' | 'both'
/**
* Deprecated; see clip-path.
* Lets you specify the dimensions of an absolutely positioned element that should be visible, and the element is clipped into this shape, and displayed.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/clip
*/
clip?: any
/**
* Clipping crops an graphic, so that only a portion of the graphic is rendered, or filled. This clip-rule property, when used with the clip-path property, defines which clip rule, or algorithm, to use when filling the different parts of a graphics.
* @see https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/clip-rule
*/
clipRule?: any
/**
* The color property sets the color of an element's foreground content (usually text), accepting any standard CSS color from keywords and hex values to RGB(a) and HSL(a).
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/color
*/
color?: CSSValue<CSSColor>
/**
* Describes the number of columns of the element.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/column-count
*/
columnCount?: number
/**
* Specifies how to fill columns (balanced or sequential).
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/column-fill
*/
columnFill?: any
/**
* The column-gap property controls the width of the gap between columns in multi-column elements.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/column-gap
*/
columnGap?: any
/**
* Sets the width, style, and color of the rule between columns.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/column-rule
*/
columnRule?: any
/**
* Specifies the color of the rule between columns.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/column-rule-color
*/
columnRuleColor?: CSSValue<CSSColor>
/**
* Specifies the width of the rule between columns.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/column-rule-width
*/
columnRuleWidth?: CSSValue<CSSLength | CSSPercentage>
/**
* The column-span CSS property makes it possible for an element to span across all columns when its value is set to all. An element that spans more than one column is called a spanning element.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/column-span
*/
columnSpan?: any
/**
* Specifies the width of columns in multi-column elements.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/column-width
*/
columnWidth?: CSSValue<CSSLength | CSSPercentage>
/**
* This property is a shorthand property for setting column-width and/or column-count.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/columns
*/
columns?: any
/**
* The content property is used with the :before and :after pseudo-elements, to insert generated content.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/content
*/
content?: CSSValueString
/**
* The counter-increment property accepts one or more names of counters (identifiers), each one optionally followed by an integer which specifies the value by which the counter should be incremented (e.g. if the value is 2, the counter increases by 2 each time it is invoked).
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/counter-increment
*/
counterIncrement?: any
/**
* The counter-reset property contains a list of one or more names of counters, each one optionally followed by an integer (otherwise, the integer defaults to 0.) Each time the given element is invoked, the counters specified by the property are set to the given integer.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/counter-reset
*/
counterReset?: any
/**
* The cue property specifies sound files (known as an "auditory icon") to be played by speech media agents before and after presenting an element's content; if only one file is specified, it is played both before and after. The volume at which the file(s) should be played, relative to the volume of the main element, may also be specified. The icon files may also be set separately with the cue-before and cue-after properties.
*/
cue?: any
/**
* The cue-after property specifies a sound file (known as an "auditory icon") to be played by speech media agents after presenting an element's content; the volume at which the file should be played may also be specified. The shorthand property cue sets cue sounds for both before and after the element is presented.
*/
cueAfter?: any
/**
* Specifies the mouse cursor displayed when the mouse pointer is over an element.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/cursor
*/
cursor?: CSSValue<
| CSSGlobalValues
| string
| 'auto'
| 'default'
| 'none'
| 'context-menu'
| 'help'
| 'pointer'
| 'progress'
| 'wait'
| 'cell'
| 'crosshair'
| 'text'
| 'vertical-text'
| 'alias'
| 'copy'
| 'move'
| 'no-drop'
| 'not-allowed'
| 'e-resize'
| 'n-resize'
| 'ne-resize'
| 'nw-resize'
| 's-resize'
| 'se-resize'
| 'sw-resize'
| 'w-resize'
| 'ew-resize'
| 'ns-resize'
| 'nesw-resize'
| 'nwse-resize'
| 'col-resize'
| 'row-resize'
| 'all-scroll'
| 'zoom-in'
| 'zoom-out'
| 'grab'
| 'grabbing'
>
/**
* The direction CSS property specifies the text direction/writing direction. The rtl is used for Hebrew or Arabic text, the ltr is for other languages.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/direction
*/
direction?: CSSGlobalValues | 'ltr' | 'rtl'
/**
* This property specifies the type of rendering box used for an element. It is a shorthand property for many other display properties.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/display
*/
display?: CSSValue<CSSGlobalValues | CSSDisplay>
/**
* SVG: Used to determine or re-determine a scaled-baseline-table.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/dominant-baseline
*/
dominantBaseline?:
| 'auto'
| 'use-script'
| 'no-change'
| 'reset-size'
| 'ideographic'
| 'alphabetic'
| 'hanging'
| 'mathematical'
| 'central'
| 'middle'
| 'text-after-edge'
| 'text-before-edge'
| 'inherit'
/**
* The ‘empty-cells’ CSS property specifies how the user agent should render borders and backgrounds around <table> cells that have no visible content.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/empty-cells
*/
emptyCells?: CSSGlobalValues | 'show' | 'hide'
/**
* The ‘fill’ property paints the interior of the given graphical element. The area to be painted consists of any areas inside the outline of the shape. To determine the inside of the shape, all subpaths are considered, and the interior is determined according to the rules associated with the current value of the ‘fill-rule’ property. The zero-width geometric outline of a shape is included in the area to be painted.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/fill
*/
fill?: CSSColor | 'context-stroke' | 'context-fill'
/**
* SVG: Specifies the opacity of the color or the content the current object is filled with.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/fill-opacity
*/
fillOpacity?: number
/**
* The ‘fill-rule’ property indicates the algorithm which is to be used to determine what parts of the canvas are included inside the shape. For a simple, non-intersecting path, it is intuitively clear what region lies "inside"; however, for a more complex path, such as a path that intersects itself or where one subpath encloses another, the interpretation of "inside" is not so obvious.
* The ‘fill-rule’ property provides two options for how the inside of a shape is determined:
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/fill-rule
*/
fillRule?: 'nonzero' | 'evenodd'
/**
* Applies various image processing effects. This property is largely unsupported. See Compatibility section for more information.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/filter
*/
filter?: string
/**
* Shorthand for `flex-grow`, `flex-shrink`, and `flex-basis`.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/flex
*/
flex?: number | string
'-webkit-flex'?: number | string
'-ms-flex'?: number | string
/**
* Obsolete, do not use. This property has been renamed to align-items.
* Specifies the alignment (perpendicular to the layout axis defined by the flex-direction property) of child elements of the object.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/flex-align
*/
flexAlign?: any
'-ms-flex-align'?: any
'-webkit-flex-align'?: any
/**
* The flex-basis CSS property describes the initial main size of the flex item before any free space is distributed according to the flex factors described in the flex property (flex-grow and flex-shrink).
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/flex-basis
*/
flexBasis?: any
/**
* The flex-direction CSS property describes how flex items are placed in the flex container, by setting the direction of the flex container's main axis.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/flex-direction
*/
flexDirection?: any
'-ms-flex-direction'?: any
'-webkit-flex-direction'?: any
/**
* The flex-flow CSS property defines the flex container's main and cross axis. It is a shorthand property for the flex-direction and flex-wrap properties.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/flex-flow
*/
flexFlow?: any
/**
* Specifies the flex grow factor of a flex item.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/flex-grow
*/
flexGrow?: number
'-ms-flex-grow'?: number
'-webkit-flex-grow'?: number
/**
* Do not use. This property has been renamed to align-self
* Specifies the alignment (perpendicular to the layout axis defined by flex-direction) of child elements of the object.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/flex-item-align
*/
flexItemAlign?: any
/**
* Do not use. This property has been renamed to align-content.
* Specifies how a flexbox's lines align within the flexbox when there is extra space along the axis that is perpendicular to the axis defined by the flex-direction property.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/flex-line-pack
*/
flexLinePack?: any
flexPositive?: any
'-ms-flex-positive'?: any
'-webkit-flex-positive'?: any
flexNegative?: any
'-ms-flex-negative'?: any
'-webkit-flex-negative'?: any
/**
* Gets or sets a value that specifies the ordinal group that a flexbox element belongs to. This ordinal value identifies the display order for the group.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/flex-order
*/
flexOrder?: any
/**
* Specifies the flex shrink factor of a flex item.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/flex-shrink
*/
flexShrink?: number
'-ms-flex-shrink'?: number
'-webkit-flex-shrink'?: number
/**
* Specifies whether flex items are forced into a single line or can be wrapped onto multiple lines.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/flex-wrap
*/
flexWrap?: CSSGlobalValues | 'nowrap' | 'wrap' | 'wrap-reverse'
'-ms-flex-wrap'?: CSSGlobalValues | 'nowrap' | 'wrap' | 'wrap-reverse'
'-webkit-flex-wrap'?: CSSGlobalValues | 'nowrap' | 'wrap' | 'wrap-reverse'
/**
* Elements which have the style float are floated horizontally. These elements can move as far to the left or right of the containing element. All elements after the floating element will flow around it, but elements before the floating element are not impacted. If several floating elements are placed after each other, they will float next to each other as long as there is room.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/float
*/
float?: CSSGlobalValues | 'left' | 'right' | 'none' | 'inline-start' | 'inline-end'
/**
* Flows content from a named flow (specified by a corresponding flow-into) through selected elements to form a dynamic chain of layout regions.
*/
flowFrom?: a