The outline shorthand property sets all the outline properties in one declaration.
/* style */
outline="solid"
/* color | style */
outline="#f66 dashed"
/* style | width */
outline="inset thick"
/* color | style | width */
outline="green solid 3px"
/* Global values */
outline="inherit"
outline="initial"
outline="revert"
outline="unset"
The outline property may be specified using one, two, or three of the values listed below. The order of the value does not matter. See outline in MDN for more details.
Note: The outline will be invisible if its style is not defined. This is because the style defaults to none. A notable exception is input elements, which are given default styling by browsers.
Values
<outline-color>
Sets the color of the outline. Defaults to currentcolor if absent.
<outline-style>
Sets the style of the outline. Defaults to none if absent.
<outline-width>
Sets the thickness of the outline. Defaults to medium if absent.
Nonnegative length
If the outline is a numeric value defined in the theme, the solid outline style will be applied as a shorthand for the outlineWidth and outlineStyle properties.
thin, medium, and thick are keywords that indicate the outline width. You can use them in the outline property, but you have to set the outlineStyle property to solid as well.
Note: Because the specification doesn't define the exact thickness denoted by each keyword, the precise result when using one of them is implementation-specific. Nevertheless, they always follow the pattern thin ≤ medium ≤ thick, and the values are constant within a single document.