22.12.2013 Views

W3C CSS2 Cascading Style Sheets, level 2 - instructional media + ...

W3C CSS2 Cascading Style Sheets, level 2 - instructional media + ...

W3C CSS2 Cascading Style Sheets, level 2 - instructional media + ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Values outside the device gamut should be clipped: the red, green, and blue<br />

values must be changed to fall within the range supported by the device. For a<br />

typical CRT monitor, whose device gamut is the same as sRGB, the three rules<br />

below are equivalent:<br />

Example(s):<br />

EM { color: rgb(255,0,0) } /* integer range 0 - 255 */<br />

EM { color: rgb(300,0,0) } /* clipped to rgb(255,0,0) */<br />

EM { color: rgb(255,-10,0) } /* clipped to rgb(255,0,0) */<br />

EM { color: rgb(110%, 0%, 0%) } /* clipped to rgb(100%,0%,0%) */<br />

Other devices, such as printers, have different gamuts to sRGB; some colors<br />

outside the 0..255 sRGB range will be representable (inside the device gamut),<br />

while other colors inside the 0..255 sRGB range will be outside the device gamut<br />

and will thus be clipped.<br />

Note. Although colors can add significant amounts of information to document<br />

and make them more readable, please consider that certain color combinations<br />

may cause problems for users with color blindness. If you use a background<br />

image or set the background color, please adjust foreground colors accordingly.<br />

4.3.7 Angles<br />

Angle values (denoted by in the text) are used with aural style sheets<br />

[p. 277] .<br />

Their format is an optional sign character (’+’ or ’-’, with ’+’ being the default)<br />

im<strong>media</strong>tely followed by a im<strong>media</strong>tely followed by an angle unit identifier.<br />

Angle unit identifiers are:<br />

deg: degrees<br />

grad: grads<br />

rad: radians<br />

Angle values may be negative. They should be normalized to the range<br />

0-360deg by the user agent. For example, -10deg and 350deg are equivalent.<br />

For example, a right angle is ’90deg’ or ’100grad’ or ’1.570796326794897rad’.<br />

4.3.8 Times<br />

Time values (denoted by in the text) are used with aural style sheets<br />

[p. 277] .<br />

Their format is a im<strong>media</strong>tely followed by a time unit identifier.<br />

Time unit identifiers are:<br />

ms: milliseconds<br />

s: seconds<br />

Time values may not be negative.<br />

49

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!