CSS rest Property

Description

The rest property is a shorthand for setting rest-before and rest-after. If two values are given, the first value is rest-before and the second is rest-after. If only one value is given, it applies to both properties.

The rest property has been deprecated or is no longer in any CSS working groups.

Initial value
See individual properties
Applies to
All elements
Inherited
No
Computed value
See individual properties
Animatable
No
JavaScript syntax
object.style.rest

Syntax

rest: <rest-before> <rest-after>?

Values

  • <rest-before>See rest-before CSS property for values.
  • <rest-after>See rest-after CSS property for values.

Example

.class {
   rest: weak medium; 
}

Browser Support

The following table will show you the current browser support for the CSS rest property.

Desktop
Edge Chrome Firefox Opera Safari
?????
Tablets / Mobile
Chrome Firefox Opera Safari Samsung Webview
??????