CSS2 Units
In addition to what we’ve covered in CSS2.1, CSS2 contains a few extra units, all of which are concerned with aural style sheets (employed by those browsers that are capable of speech). These units were not included in CSS2.1, but since they may be part of future versions of CSS, we’ll briefly discuss them here:
- Angle values
Used to define the position from which a given sound should originate. There are three types of angles: degrees (
deg), grads (grad), and radians (rad). For example, a right angle could be declared as90deg,100grad, or1.57rad; in each case, the values are translated into degrees in the range 0 through 360. This is also true of negative values, which are allowed. The measurement-90degis the same as270deg.- Time values
Used to specify delays between speaking elements. They can be expressed as either milliseconds (
ms) or seconds (s). Thus,100msand0.1sare equivalent. Time values may not be negative, as CSS is supposed to avoid paradoxes.- Frequency values
Used to declare a given frequency for the sounds that speaking browsers can produce. Frequency values can be expressed as hertz (
Hz) or megahertz (MHz) and cannot be negative. The values’ labels are case-insensitive, so10MHzand10Mhzare equivalent.
The only user agent known to support any of these values at this writing is Emacspeak, an aural style sheets implementation. See Chapter 14 for details on aural styles.
In addition to these values, there is also an old friend with ...