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