O'Reilly logo

CSS Pocket Reference, 4th Edition by Eric A. Meyer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

rest

Values:

<'rest-before'> || <'rest-after'>

Initial value:

Not defined for shorthand properties

Applies to:

All elements

Inherited:

No

Computed value:

Not specified, but likely a pair of absolute time values

Description:

A shorthand property that defines rests that precede and follow the audio rendering of an element’s content. A rest is an interval in which no content is audibly rendered, although background sounds may still be audible. See rest-before and rest-after for details on the placement of the rests.

Examples:

th {rest: 0.5s;}
strong {rest: 333ms 250ms;}

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required