CSS rest-before Property

Description

The rest-before property specifies a rest or prosodic boundary to be observed before (or after) speaking an element's content.

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

Initial value
none
Applies to
All elements
Inherited
No
Media
Speech
Computed value
Specified value
Animatable
No
CSS Version
CSS3
JavaScript syntax
object.style.restBefore

Syntax

rest-before: <time> | none | x-weak | weak | medium | strong | x-strong

Values

  • <time>Expresses the rest in absolute time units (seconds and milliseconds, e.g. "+3s", "250ms"). Only non-negative values are allowed.
  • noneEquivalent to 0ms (no prosodic break is produced by the speech processor).
  • x-weakExpresses the rest by the strength of the prosodic break in speech output. The exact time is implementation-dependent. The values indicate monotonically non-decreasing (conceptually increasing) break strength between elements.
  • weakAs above
  • mediumAs above
  • strongAs above
  • x-strongAs above
  • inherit

Example

.class {
   rest-before: weak; 
}

Browser Support

Desktop
Explorer Edge Chrome Firefox Opera Safari
??????
Tablets / Mobile
Android Chrome Firefox Opera Safari Samsung
??????