|
1 | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
2 | 2 | <html lang="en"> |
3 | | -<!-- $Id: ui.src,v 1.11 1997-09-24 03:02:37 ian Exp $ --> |
| 3 | +<!-- $Id: ui.src,v 1.12 1997-09-24 13:54:37 ian Exp $ --> |
4 | 4 | <HEAD> |
5 | 5 | <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> |
6 | 6 | <TITLE>User interface</TITLE> |
|
19 | 19 | mouse pointer. The values have the following meanings: |
20 | 20 |
|
21 | 21 | <dl> |
22 | | -<dt>auto |
| 22 | +<dt><strong>auto</strong> |
23 | 23 | <dd>The UA determines the cursor to display based on the current |
24 | 24 | context. |
25 | | -<dt>crosshair |
| 25 | +<dt><strong>crosshair</strong> |
26 | 26 | <dd>A simple crosshair |
27 | 27 |
|
28 | | -<dt>default |
| 28 | +<dt><strong>default</strong> |
29 | 29 | <dd>The platform-dependent default cursor. Usually an arrow. |
30 | 30 |
|
31 | | -<dt>pointer |
| 31 | +<dt><strong>pointer</strong> |
32 | 32 | <dd>The cursor is a pointer of some sort. |
33 | 33 |
|
34 | | -<dt>move |
| 34 | +<dt><strong>move</strong> |
35 | 35 | <dd>Indicates something is to be moved |
36 | 36 |
|
37 | | -<dt>*-resize |
| 37 | +<dt><strong>*-resize</strong> |
38 | 38 | <dd>Indicates that the edge is to be moved. |
39 | 39 |
|
40 | | -<dt>text |
| 40 | +<dt><strong>text</strong> |
41 | 41 | <dd> Indicates text that may be edited. Usually an I-bar. |
42 | 42 |
|
43 | | -<dt>wait |
| 43 | +<dt><strong>wait</strong> |
44 | 44 | <dd>A cursor to indicate that the program is busy and the user should |
45 | 45 | wait. Usually a watch or hourglass. |
46 | 46 |
|
47 | | -<dt>help |
| 47 | +<dt><strong>help</strong> |
48 | 48 | <dd>Help is available for the object under the cursor. Usually a |
49 | 49 | question mark or a balloon. |
50 | 50 |
|
51 | | -<dt><span class="value-inst-url"><url></span> |
| 51 | +<dt><strong><span class="value-inst-url"><url></span></strong> |
52 | 52 |
|
53 | 53 | <dd>The user agent should retrieve the cursor from the resource |
54 | 54 | designated by the URL. It is considered an error if the resource is |
55 | 55 | not a proper cursor. User agents may handle this error condition in |
56 | 56 | different ways. |
57 | 57 | </dl> |
58 | 58 |
|
59 | | -<H2>User settings</H2> |
60 | | -<em>This is a place holder.</em> |
| 59 | +<H2>User preferences for colors and fonts</H2> |
| 60 | + |
| 61 | +<p>In addition to being able to assign pre-defined color and font |
| 62 | +values to text, backgrounds, etc. CSS2 allows authors to specify |
| 63 | +colors and fonts in a manner that integrates them into the user's |
| 64 | +graphic environment. For instance, color blind users may have their |
| 65 | +environment configured to avoid specific colors. Similarly, users may |
| 66 | +prefer large fonts for easier reading. Style rules that take into |
| 67 | +account user preferences thus offer the following advantages: |
| 68 | + |
| 69 | +<ol> |
| 70 | +<li>They produce pages that fit the user's defined look and feel.</li> |
| 71 | +<li>They produce pages that may be more accessible as the current user |
| 72 | +settings may be related to a disability.</li> |
| 73 | +</ol> |
| 74 | + |
| 75 | +<p>The set of values defined for system and font are intended to |
| 76 | +be exhaustive. For systems that do not expose a corresponding |
| 77 | +value, it should be mapped to the nearest system attribute, or to |
| 78 | +a default color.</p> |
| 79 | + |
| 80 | +<h3><a name="system-colors">System Colors</a></h3> |
| 81 | + |
| 82 | +<p>The following lists additional values for color related CSS |
| 83 | +attributes and their general meaning. Any color property (e.g., <span |
| 84 | +class="propinst-color">'color'</span> or <span |
| 85 | +class="propinst-background-color">'background-color'</span>) can take |
| 86 | +one of the following names:</p> |
| 87 | + |
| 88 | +<dl> |
| 89 | +<dt><strong>activeborder</strong> |
| 90 | +<dd>Active window border. |
| 91 | +<dt><strong>activecaption</strong> |
| 92 | +<dd>Active window caption. |
| 93 | +<dt><strong>appworkspace</strong> |
| 94 | +<dd>Background color of multiple document interface. |
| 95 | +<dt><strong>background</strong> |
| 96 | +<dd>Desktop background. |
| 97 | +<dt><strong>buttonface</strong> |
| 98 | +<dd>Face color for three-dimensional display elements. |
| 99 | +<dt><strong>buttonhighlight</strong> |
| 100 | +<dd>Dark shadow for three-dimensional display elements (for |
| 101 | + edges facing away from the light source). |
| 102 | +<dt><strong></strong> |
| 103 | +<dd>Shadow color for three-dimensional display elements. |
| 104 | +<dt><strong>buttontext</strong> |
| 105 | +<dd>Text on push buttons. |
| 106 | +<dt><strong>captiontext</strong> |
| 107 | +<dd>Text in caption, size box, and scroll bar arrow box. |
| 108 | +<dt><strong>graytext</strong> |
| 109 | +<dd>Grayed (disabled) text. This color is set to #000 if |
| 110 | +the current display driver does not support a solid gray color. |
| 111 | +<dt><strong>highlight</strong> |
| 112 | +<dd>Item(s) selected in a control. |
| 113 | +<dt><strong>highlighttext</strong> |
| 114 | +<dd>Text of item(s) selected in a control. |
| 115 | +<dt><strong>inactiveborder</strong> |
| 116 | +<dd>Inactive window border. |
| 117 | +<dt><strong>inactivecaption</strong> |
| 118 | +<dd>Inactive window caption. |
| 119 | +<dt><strong>inactivecaptiontext</strong> |
| 120 | +<dd>Color of text in an inactive caption. |
| 121 | +<dt><strong>infobackground</strong> |
| 122 | +<dd>Background color for tooltip controls. |
| 123 | +<dt><strong>infotext</strong> |
| 124 | +<dd>Text color for tooltip controls. |
| 125 | +<dt><strong>menu</strong> |
| 126 | +<dd>Menu background. |
| 127 | +<dt><strong>menutext</strong> |
| 128 | +<dd>Text in menus. |
| 129 | +<dt><strong>scrollbar</strong> |
| 130 | +<dd>Scroll bar gray area. |
| 131 | +<dt><strong>threeddarkshadow</strong> |
| 132 | +<dd>Dark shadow for three-dimensional display elements. |
| 133 | +<dt><strong>threedface</strong> |
| 134 | +<dd>Face color for three-dimensional display elements. |
| 135 | +<dt><strong>threedhighlight</strong> |
| 136 | +<dd>Highlight color for three-dimensional display elements. |
| 137 | +<dt><strong>threedlightshadow</strong> |
| 138 | +<dd>Light color for three-dimensional display elements |
| 139 | +(for edges facing the light source). |
| 140 | +<dt><strong>threedshadow</strong> |
| 141 | +<dd>Dark shadow for three-dimensional display elements. |
| 142 | +<dt><strong>window</strong> |
| 143 | +<dd>Window background |
| 144 | +<dt><strong>windowframe</strong> |
| 145 | +<dd>Window frame. |
| 146 | +<dt><strong>windowtext</strong> |
| 147 | +<dd>Text in windows. |
| 148 | +</dl> |
| 149 | + |
| 150 | +<div class="example"><P> |
| 151 | +For example, to set the foreground and background colors of a paragraph |
| 152 | +to the same foreground and background colors of the user's window, |
| 153 | +write the following: |
| 154 | + |
| 155 | +<PRE> |
| 156 | +P { color: windowtext; background-color: window } |
| 157 | +</PRE> |
| 158 | +</div> |
| 159 | + |
| 160 | +<h3><a name="system-fonts">System fonts</a></h3> |
| 161 | + |
| 162 | +<p>System fonts can only be accessed as a whole; that is, the |
| 163 | +font-family, size, weight, style, etc. are all set at the same |
| 164 | +time. The shorthand property <span class="propinst-font">'font'</span> |
| 165 | +is redefined to take either its normal set of font sub-properties or a |
| 166 | +string token (denoted <span class="index-def" |
| 167 | +title="<system-font>, definition of"><a |
| 168 | +name="value-def-system-font"><system-font></a></span>from the |
| 169 | +following list:</p> |
| 170 | + |
| 171 | +<dl> |
| 172 | +<dt><strong>caption</strong> |
| 173 | +<dd>Font used for captioned controls (e.g. |
| 174 | + buttons, drop-downs, etc.) |
| 175 | +<dt><strong>icon</strong> |
| 176 | +<dd>Font used to label icons |
| 177 | +<dt><strong>menu</strong> |
| 178 | +<dd>Font used in menus |
| 179 | +<dt><strong>messagebox</strong> |
| 180 | +<dd>Font used in dialog boxes, etc. |
| 181 | +<dt><strong>smallcaption</strong> |
| 182 | +<dd>Font used for labeling small controls |
| 183 | +<dt><strong>statusbar</strong> |
| 184 | +<dd>Font used in the status bar of windows |
| 185 | +</dl> |
| 186 | + |
| 187 | +<div class="example"><P> |
| 188 | +For example, to specify that the font used for paragraphs should be |
| 189 | +the same as that used for "messageboxes", write the following: |
| 190 | +<PRE> |
| 191 | +P { font: messagebox } |
| 192 | +</PRE> |
| 193 | +</div> |
| 194 | + |
| 195 | +<H2>Other rendering issues that depend on user agents</H2> |
61 | 196 |
|
62 | | -<H2>Rendering issues that depend on user agents</H2> |
63 | 197 | <H3>Magnification</H3> |
64 | 198 |
|
65 | 199 | <P>The CSS working group considers that the magnification of a |
|
0 commit comments