Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
interface StandardShorthandPropertiesHyphen
import { type StandardShorthandPropertiesHyphen } from "https://deno.land/x/pagic@v1.6.1/cdn.pagic.org/csstype@3.0.3/index.d.ts";

Type Parameters

optional
TLength = (string & { }) | 0
optional
TTime = string & { }

Properties

optional
all: Property.All

The **all** shorthand CSS property resets all of an element's properties except unicode-bidi, direction, and CSS Custom Properties. It can set properties to their initial or inherited values, or to the values specified in another stylesheet origin.

Syntax: initial | inherit | unset | revert

Initial value: There is no practical initial value for it.

Chrome Firefox Safari Edge IE
37 27 9.1 79 No
optional
animation: Property.Animation<TTime>

The animation shorthand CSS property applies an animation between styles. It is a shorthand for animation-name, animation-duration, animation-timing-function, animation-delay, animation-iteration-count, animation-direction, animation-fill-mode, and animation-play-state.

Syntax: <single-animation>#

Chrome Firefox Safari Edge IE
43 16 9 12 10
3 -x- 5 -x- 4 -x-
optional
background: Property.Background<TLength>

The background shorthand CSS property sets all background style properties at once, such as color, image, origin and size, or repeat method.

Syntax: [ <bg-layer> , ]* <final-bg-layer>

Chrome Firefox Safari Edge IE
1 1 1 12 4
optional
border: Property.Border<TLength>

The border shorthand CSS property sets an element's border. It sets the values of border-width, border-style, and border-color.

Syntax: <line-width> || <line-style> || <color>

Chrome Firefox Safari Edge IE
1 1 1 12 4
optional
border-block: Property.BorderBlock<TLength>

The border-block CSS property is a shorthand property for setting the individual logical block border property values in a single place in the style sheet.

Syntax: <'border-top-width'> || <'border-top-style'> || <'color'>

Chrome Firefox Safari Edge IE
69 66 No 79 No
optional
border-block-end: Property.BorderBlockEnd<TLength>

The border-block-end CSS property is a shorthand property for setting the individual logical block-end border property values in a single place in the style sheet.

Syntax: <'border-top-width'> || <'border-top-style'> || <'color'>

Chrome Firefox Safari Edge IE
69 41 12.1 79 No
optional
border-block-start: Property.BorderBlockStart<TLength>

The border-block-start CSS property is a shorthand property for setting the individual logical block-start border property values in a single place in the style sheet.

Syntax: <'border-top-width'> || <'border-top-style'> || <'color'>

Chrome Firefox Safari Edge IE
69 41 12.1 79 No
optional
border-bottom: Property.BorderBottom<TLength>

The border-bottom shorthand CSS property sets an element's bottom border. It sets the values of border-bottom-width, border-bottom-style and border-bottom-color.

Syntax: <line-width> || <line-style> || <color>

Chrome Firefox Safari Edge IE
1 1 1 12 4
optional
border-color: Property.BorderColor

The border-color shorthand CSS property sets the color of an element's border.

Syntax: <color>{1,4}

Chrome Firefox Safari Edge IE
1 1 1 12 4
optional
border-image: Property.BorderImage

The border-image CSS property draws an image around a given element. It replaces the element's regular border.

Syntax: <'border-image-source'> || <'border-image-slice'> [ / <'border-image-width'> | / <'border-image-width'>? / <'border-image-outset'> ]? || <'border-image-repeat'>

Chrome Firefox Safari Edge IE
16 15 6 12 11
7 -x- 3.5 -x- 3 -x-
optional
border-inline: Property.BorderInline<TLength>

The border-inline CSS property is a shorthand property for setting the individual logical inline border property values in a single place in the style sheet.

Syntax: <'border-top-width'> || <'border-top-style'> || <'color'>

Chrome Firefox Safari Edge IE
69 66 No 79 No
optional
border-inline-end: Property.BorderInlineEnd<TLength>

The border-inline-end CSS property is a shorthand property for setting the individual logical inline-end border property values in a single place in the style sheet.

Syntax: <'border-top-width'> || <'border-top-style'> || <'color'>

Chrome Firefox Safari Edge IE
69 41 12.1 79 No
optional
border-inline-start: Property.BorderInlineStart<TLength>

The border-inline-start CSS property is a shorthand property for setting the individual logical inline-start border property values in a single place in the style sheet.

Syntax: <'border-top-width'> || <'border-top-style'> || <'color'>

Chrome Firefox Safari Edge IE
69 41 12.1 79 No
optional
border-left: Property.BorderLeft<TLength>

The border-left shorthand CSS property set an element's left border.

Syntax: <line-width> || <line-style> || <color>

Chrome Firefox Safari Edge IE
1 1 1 12 4
optional
border-radius: Property.BorderRadius<TLength>

The border-radius CSS property rounds the corners of an element's outer border edge. You can set a single radius to make circular corners, or two radii to make elliptical corners.

Syntax: <length-percentage>{1,4} [ / <length-percentage>{1,4} ]?

Chrome Firefox Safari Edge IE
4 4 5 12 9
1 -x- 3 -x-
optional
border-right: Property.BorderRight<TLength>

The border-right shorthand CSS property sets the properties of an element's right border.

Syntax: <line-width> || <line-style> || <color>

Chrome Firefox Safari Edge IE
1 1 1 12 5.5
optional
border-style: Property.BorderStyle

The border-style shorthand CSS property sets the line style for all four sides of an element's border.

Syntax: <line-style>{1,4}

Chrome Firefox Safari Edge IE
1 1 1 12 4
optional
border-top: Property.BorderTop<TLength>

The border-top shorthand CSS property sets all the properties of an element's top border.

Syntax: <line-width> || <line-style> || <color>

Chrome Firefox Safari Edge IE
1 1 1 12 4
optional
border-width: Property.BorderWidth<TLength>

The border-width shorthand CSS property sets the width of an element's border.

Syntax: <line-width>{1,4}

Chrome Firefox Safari Edge IE
1 1 1 12 4
optional
column-rule: Property.ColumnRule<TLength>

The column-rule shorthand CSS property sets the width, style, and color of the line drawn between columns in a multi-column layout.

Syntax: <'column-rule-width'> || <'column-rule-style'> || <'column-rule-color'>

Chrome Firefox Safari Edge IE
50 52 9 12 10
1 -x- 3 -x-
optional
columns: Property.Columns<TLength>

The columns CSS shorthand property sets the number of columns to use when drawing an element's contents, as well as those columns' widths.

Syntax: <'column-width'> || <'column-count'>

Chrome Firefox Safari Edge IE
50 52 9 12 10
3 -x-
optional
flex: Property.Flex<TLength>

The flex CSS shorthand property sets how a flex item will grow or shrink to fit the space available in its flex container.

Syntax: none | [ <'flex-grow'> <'flex-shrink'>? || <'flex-basis'> ]

Chrome Firefox Safari Edge IE
29 20 9 12 11
21 -x- 6.1 -x- 10 -x-
optional
flex-flow: Property.FlexFlow

The flex-flow CSS shorthand property specifies the direction of a flex container, as well as its wrapping behavior.

Syntax: <'flex-direction'> || <'flex-wrap'>

Chrome Firefox Safari Edge IE
29 28 9 12 11
21 -x- 6.1 -x-
optional
font: Property.Font

The font CSS shorthand property sets all the different properties of an element's font. Alternatively, it sets an element's font to a system font.

Syntax: [ [ <'font-style'> || <font-variant-css21> || <'font-weight'> || <'font-stretch'> ]? <'font-size'> [ / <'line-height'> ]? <'font-family'> ] | caption | icon | menu | message-box | small-caption | status-bar

Chrome Firefox Safari Edge IE
1 1 1 12 3
optional
gap: Property.Gap<TLength>

The gap CSS property sets the gaps (gutters) between rows and columns. It is a shorthand for row-gap and column-gap.

Syntax: <'row-gap'> <'column-gap'>?


Supported in Flex Layout

Chrome Firefox Safari Edge IE
84 63 No 84 No

Supported in Grid Layout

Chrome Firefox Safari Edge IE
66 61 12 16 No
57 (grid-gap) 52 (grid-gap) 10.1 (grid-gap)

Supported in Multi-column Layout

Chrome Firefox Safari Edge IE
66 61 No 16 No

optional
grid: Property.Grid

The grid CSS property is a shorthand property that sets all of the explicit and implicit grid properties in a single declaration.

Syntax: <'grid-template'> | <'grid-template-rows'> / [ auto-flow && dense? ] <'grid-auto-columns'>? | [ auto-flow && dense? ] <'grid-auto-rows'>? / <'grid-template-columns'>

Chrome Firefox Safari Edge IE
57 52 10.1 16 No
optional
grid-area: Property.GridArea

The grid-area CSS shorthand property specifies a grid item’s size and location within a grid by contributing a line, a span, or nothing (automatic) to its grid placement, thereby specifying the edges of its grid area.

Syntax: <grid-line> [ / <grid-line> ]{0,3}

Chrome Firefox Safari Edge IE
57 52 10.1 16 No
optional
grid-column: Property.GridColumn

The grid-column CSS shorthand property specifies a grid item's size and location within a grid column by contributing a line, a span, or nothing (automatic) to its grid placement, thereby specifying the inline-start and inline-end edge of its grid area.

Syntax: <grid-line> [ / <grid-line> ]?

Chrome Firefox Safari Edge IE
57 52 10.1 16 No
optional
grid-row: Property.GridRow

The grid-row CSS shorthand property specifies a grid item’s size and location within the grid row by contributing a line, a span, or nothing (automatic) to its grid placement, thereby specifying the inline-start and inline-end edge of its grid area.

Syntax: <grid-line> [ / <grid-line> ]?

Chrome Firefox Safari Edge IE
57 52 10.1 16 No
optional
grid-template: Property.GridTemplate

The grid-template CSS property is a shorthand property for defining grid columns, rows, and areas.

Syntax: none | [ <'grid-template-rows'> / <'grid-template-columns'> ] | [ <line-names>? <string> <track-size>? <line-names>? ]+ [ / <explicit-track-list> ]?

Chrome Firefox Safari Edge IE
57 52 10.1 16 No
optional
line-clamp: Property.LineClamp

Syntax: none | <integer>

Initial value: none

optional
list-style: Property.ListStyle

The list-style CSS shorthand property allows you set all the list style properties at once.

Syntax: <'list-style-type'> || <'list-style-position'> || <'list-style-image'>

Chrome Firefox Safari Edge IE
1 1 1 12 4
optional
margin: Property.Margin<TLength>

The margin CSS property sets the margin area on all four sides of an element. It is a shorthand for margin-top, margin-right, margin-bottom, and margin-left.

Syntax: [ <length> | <percentage> | auto ]{1,4}

Chrome Firefox Safari Edge IE
1 1 1 12 3
optional
mask: Property.Mask<TLength>

The mask CSS shorthand property hides an element (partially or fully) by masking or clipping the image at specific points.

Syntax: <mask-layer>#

Chrome Firefox Safari Edge IE
1 2 3.2 12 No
optional
mask-border: Property.MaskBorder

The mask-border CSS shorthand property lets you create a mask along the edge of an element's border.

Syntax: <'mask-border-source'> || <'mask-border-slice'> [ / <'mask-border-width'>? [ / <'mask-border-outset'> ]? ]? || <'mask-border-repeat'> || <'mask-border-mode'>

optional
motion: Property.Offset<TLength>

The offset CSS shorthand property sets all the properties required for animating an element along a defined path.

Syntax: [ <'offset-position'>? [ <'offset-path'> [ <'offset-distance'> || <'offset-rotate'> ]? ]? ]! [ / <'offset-anchor'> ]?

Chrome Firefox Safari Edge IE
55 72 No 79 No
46 (motion)
optional
offset: Property.Offset<TLength>

The offset CSS shorthand property sets all the properties required for animating an element along a defined path.

Syntax: [ <'offset-position'>? [ <'offset-path'> [ <'offset-distance'> || <'offset-rotate'> ]? ]? ]! [ / <'offset-anchor'> ]?

Chrome Firefox Safari Edge IE
55 72 No 79 No
46 (motion)
optional
outline: Property.Outline<TLength>

The outline CSS shorthand property set all the outline properties in a single declaration.

Syntax: [ <'outline-color'> || <'outline-style'> || <'outline-width'> ]

Chrome Firefox Safari Edge IE
1 1.5 1.2 12 8
optional
overflow: Property.Overflow

The overflow CSS shorthand property sets the desired behavior for an element's overflow — i.e. when an element's content is too big to fit in its block formatting context — in both directions.

Syntax: [ visible | hidden | clip | scroll | auto ]{1,2}

Initial value: visible

Chrome Firefox Safari Edge IE
1 1 1 12 4
optional
padding: Property.Padding<TLength>

The padding CSS shorthand property sets the padding area on all four sides of an element at once.

Syntax: [ <length> | <percentage> ]{1,4}

Chrome Firefox Safari Edge IE
1 1 1 12 4
optional
place-items: Property.PlaceItems

The CSS place-items shorthand property allows you to align items along both the block and inline directions at once (i.e. the align-items and justify-items properties) in a relevant layout system such as Grid or Flexbox. If the second value is not set, the first value is also used for it.

Syntax: <'align-items'> <'justify-items'>?


Supported in Flex Layout

Chrome Firefox Safari Edge IE
59 45 11 79 No

Supported in Grid Layout

Chrome Firefox Safari Edge IE
59 45 11 79 No

optional
place-self: Property.PlaceSelf

The place-self CSS shorthand property allows you to align an individual item in both the block and inline directions at once (i.e. the align-self and justify-self properties) in a relevant layout system such as Grid or Flexbox. If the second value is not present, the first value is also used for it.

Syntax: <'align-self'> <'justify-self'>?


Supported in Flex Layout

Chrome Firefox Safari Edge IE
59 45 No 79 No

Supported in Grid Layout

Chrome Firefox Safari Edge IE
59 45 No 79 No

optional
text-decoration: Property.TextDecoration<TLength>

The text-decoration shorthand CSS property sets the appearance of decorative lines on text. It is a shorthand for text-decoration-line, text-decoration-color, text-decoration-style, and the newer text-decoration-thickness property.

Syntax: <'text-decoration-line'> || <'text-decoration-style'> || <'text-decoration-color'> || <'text-decoration-thickness'>

Chrome Firefox Safari Edge IE
1 1 1 12 3
optional
text-emphasis: Property.TextEmphasis

The text-emphasis CSS property applies emphasis marks to text (except spaces and control characters). It is a shorthand for text-emphasis-style and text-emphasis-color.

Syntax: <'text-emphasis-style'> || <'text-emphasis-color'>

Chrome Firefox Safari Edge IE
25 -x- 46 6.1 79 -x- No
optional
transition: Property.Transition<TTime>

The transition CSS property is a shorthand property for transition-property, transition-duration, transition-timing-function, and transition-delay.

Syntax: <single-transition>#

Chrome Firefox Safari Edge IE
26 16 9 12 10
1 -x- 4 -x- 3.1 -x-