WD-css3-userint-20000216 75.1 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 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  <meta http-equiv="Content-Language" content="en">
  <title>User Interface for CSS3</title>
  <link rel="stylesheet" type="text/css" href="http://www.w3.org/StyleSheets/TR/W3C-WD">
  <style type="text/css">
.subtoc ul,.subtoc ol { list-style-type: none }
ol.objectives { list-style: decimal }
ol.issues { list-style: decimal }
.html4ss { font-size:90%}
table.twod { border: solid 2px #777; font-family:sans-serif; font-size:9px }
table.twod td { border: solid 1px #777; font-family:sans-serif; font-size:9px }
table.twod th { font-size:10px; font-weight:bold }
h1 {font-size:200%}
h2 {font-size:170%}
h3 {font-size:150%}
h4 {font-size:130%}
h5 {font-size:120%}
h6 {font-size:110%}
h1+h2 {page-break-before: avoid}
h2 {page-break-before: always}
  </style>
</head>
<body>
<div class="head">
  <a href="http://www.w3.org/">
  <img height="48" width="72" alt="W3C" src="http://www.w3.org/Icons/w3c_home" /></a>
  <h1>
    User Interface for CSS3
  </h1>
  <h2 style="page-break-before:auto">
    W3C Working Draft
    16 Feb 2000
  </h2>
  <dl>
    <dt>
      This version:
    <dd>
      <a href="http://www.w3.org/TR/2000/WD-css3-userint-20000216">http://www.w3.org/TR/2000/WD-css3-userint-20000216</a>
    <dt>
      Latest version:
    <dd>
      <a href="http://www.w3.org/TR/css3-userint">http://www.w3.org/TR/css3-userint</a>
    <dt>
      Previous version:
    <dd>
      <a href="http://www.w3.org/TR/1999/WD-css3-userint-19990916">http://www.w3.org/TR/1999/WD-css3-userint-19990916</a>
    <dt>
      Editor:
    <dd>
      Tantek &Ccedil;elik (<span class="company"><a href="http://www.microsoft.com/">Microsoft Corporation</a></span>) 
      <a href="mailto:tantekc@microsoft.com">&lt;tantekc@microsoft.com&gt;</a> 
    <dt>
      Authors:
    <dd>
      Tantek &Ccedil;elik (<span class="company"><a href="http://www.microsoft.com/">Microsoft Corporation</a></span>) 
      <a href="mailto:tantekc@microsoft.com">&lt;tantekc@microsoft.com&gt;</a> 
    <dd>
      Peter Linss&nbsp;(formerly of <span class="company"><a href="http://www.netscape.com/">Netscape 
      Communications</a>), <a href="mailto:peter@linss.com">&lt;peter@linss.com&gt;</a></span>    
    <dd>
      Sho Kuwamoto (<span class="company"><a href="http://www.macromedia.com">Macromedia</a></span>)
      <a href="mailto:sho@macromedia.com">&lt;sho@macromedia.com&gt;</a>
  </dl>
  <p class="copyright"><a href="http://www.w3.org/Consortium/Legal/ipr-notice#Copyright"> Copyright</a> &copy;2000 <a href="http://www.w3.org/"><abbr title="World Wide Web Consortium">W3C</abbr></a><sup>&reg;</sup> (<a href="http://www.lcs.mit.edu/"><abbr title="Massachusetts Institute of Technology">MIT</abbr></a>, <a href="http://www.inria.fr/"><abbr lang="fr" title="Institut National de Recherche en Informatique et Automatique">INRIA</abbr></a>, <a href="http://www.keio.ac.jp/">Keio</a>), All Rights Reserved. W3C <a href="http://www.w3.org/Consortium/Legal/ipr-notice#Legal_Disclaimer">liability</a>, <a href="http://www.w3.org/Consortium/Legal/ipr-notice#W3C_Trademarks">trademark</a>, <a href="http://www.w3.org/Consortium/Legal/copyright-documents-19990405">document use</a> and <a href="http://www.w3.org/Consortium/Legal/copyright-software-19980720">software licensing</a> rules apply.</p> 
<hr title="Separator for header" />
</div>

<h2 style="page-break-before:auto">
  <a name="abstract">Abstract</a>
</h2>
<p>This working draft contains:
<ul>
<li>Completion of the user interface features in <a href="http://www.w3.org/TR/REC-CSS2">CSS2</a>.
<li>CSS mechanisms to simulate the look and feel of various standard
form elements in <a href="http://www.w3.org/TR/html40">HTML4</a>.
<li>CSS mechanisms to augment or replace the remaining stylistic attributes in HTML4.
<li>A mechanism for CSS to enable full-screen or kiosk mode.
</ul>

<h2>
  <a name="status">Status of this document</a>
</h2>

<p>This document is a working draft of the CSS &amp; FP working group
which is part of the <a href="http://www.w3.org/Style">Style activity</a>. It contains
a proposal for features to be included in CSS level 3.

<p>Feedback is very much welcomed. Comments can be sent directly to
the editor, but the mailing list <a
href="http://www.w3.org/Mail/Lists.html#www-style">www-style@w3.org</a> (see <a
href="http://www.w3.org/Mail/Request">instructions</a>) is also open and is preferred  for discussion of
this and other drafts in the Style area.

<p>This working draft may be updated, replaced or rendered obsolete by
other W3C documents at any time. It is inappropriate to use W3C
Working Drafts as reference material or to cite them as other than
"work in progress". Its publication does not imply endorsement by the
W3C membership or the <a href="http://www.w3.org/Style/Group">CSS &amp FP Working
Group</a> (<a
href="http://cgi.w3.org/MemberAccess/AccessRequest">members only</a>).

<p>To find the latest version of this working draft, please follow
the "Latest version" link above, or visit the list of W3C <a
href="http://www.w3.org/TR">Technical Reports</a>.

<div class="subtoc">
<h2>Contents</h2>
 <ul class="toc">
   <li class="tocline2"><a href="#q1" class="tocxref">1. Introduction</a>
   <ul class="toc">
      <li class="tocline3"><a href="#purpose" class="tocxref">1.1 Purpose</a> 
      <li class="tocline3"><a href="#scope" class="tocxref">1.2 Scope</a> 
      <li class="tocline3"><a href="#summary" class="tocxref">1.3 Summary</a> 
      <li class="tocline3"><a href="#dependencies" class="tocxref">1.4 Dependencies</a> 
      <li class="tocline3"><a href="#issues" class="tocxref">1.5 Issues</a> 
   </ul>
   <li class="tocline2"><a href="#q2" class="tocxref">2. Selectors: UI element states and fragments</a>
   <ul class="toc">
      <li class="tocline3"><a href="#pseudo-classes">2.1 Pseudo-classes: UI element states</a>
	  <ul class="toc">
	      <li class="tocline4"><a href="#pseudo-active" class="tocxref">2.1.1 :active and :focus - addition to the CSS2 definitions</a>
	      <li class="tocline4"><a href="#pseudo-enabled" class="tocxref">2.1.2 :enabled</a>
	      <li class="tocline4"><a href="#pseudo-disabled" class="tocxref">2.1.3 :disabled</a>
	      <li class="tocline4"><a href="#pseudo-checked" class="tocxref">2.1.4 :checked</a>
	      <li class="tocline4"><a href="#pseudo-indeterminate" class="tocxref">2.1.5 :indeterminate</a>
      </ul>
      <li class="tocline3"><a href="#pseudo-elements">2.2 Pseudo-elements: UI element fragments</a>
	  <ul class="toc">
	      <li class="tocline4"><a href="#pseudo-selection" 	class="tocxref">2.2.1 :selection</a>
	      <li class="tocline4"><a href="#pseudo-menu" 	class="tocxref">2.2.2 :menu</a>
      </ul>
   </ul>
   <li class="tocline2"><a href="#q3" class="tocxref">3. Media Types and Preferences</a>
   <ul class="toc">
      <li class="tocline3"><a href="#media-pres">3.1 Media type 'presentation'</a>
      <li class="tocline3"><a href="#at-pref">3.2 @preference</a>
   </ul>
   <li class="tocline2"><a href="#q4" class="tocxref">4. Addition(s) to CSS2 properties</a>
   <ul class="toc">
      <li class="tocline3"><a href="#cursor" class="tocxref">4.1 cursor</a>
      <li class="tocline3"><a href="#color" class="tocxref">4.2 color (including background and border)</a>
      <li class="tocline3"><a href="#font" class="tocxref">4.3 font</a>
      <li class="tocline3"><a href="#box-sizing" class="tocxref">4.4 width and height interpretation: 'box-sizing'</a>
      <li class="tocline3"><a href="#display" class="tocxref">4.5 display</a>
      <li class="tocline3"><a href="#content" class="tocxref">4.6 content</a>
      <li class="tocline3"><a href="#list-style-type" class="tocxref">4.7 list-style-type</a>
   </ul>
   <li class="tocline2"><a href="#q5" class="tocxref">5. Interactivity Additions</a>
   <ul class="toc">
      <li class="tocline3"><a href="#resizer" class="tocxref">5.1 resizer - counterpart to overflow: scroll</a>
      <li class="tocline3"><a href="#keyboard" class="tocxref">5.2 Keyboard control</a>
      <ul class="toc">
          <li class="tocline4"><a href="#key-equivalent" class="tocxref">5.2.1 'key-equivalent'</a>
          <li class="tocline4"><a href="#tab-index" class="tocxref">5.2.2 'tab-index'</a>
      </ul>
      <li class="tocline3"><a href="#dynamic" class="tocxref">5.3 Dynamic presentation</a>
      <ul class="toc">
          <li class="tocline4"><a href="#user-input" class="tocxref">5.3.1 'user-input': enabling user interface elements</a>
	      <li class="tocline4"><a href="#user-modify" class="tocxref">5.3.2 'user-modify': modifiability of an element</a>
		  <li class="tocline4"><a href="#user-select" class="tocxref">5.3.3 'user-select': content selection granularity</a>
	      <li class="tocline4"><a href="#user-focus" class="tocxref">5.3.4 'user-focus': focus selection behavior</a>
          <ul class="toc">
              <li class="tocline5"><a href="#user-focus-key" class="tocxref">5.3.4.1 'user-focus-key': via keyboard input</a>
              <li class="tocline5"><a href="#user-focus-pointer" class="tocxref">5.3.4.2 'user-focus-pointer': via a pointing device</a>
          </ul>
	  </ul>
	  <li class="tocline3"><a href="#toggle">5.4 Toggle Groups</a>
	  <ul class="toc">
	      <li class="tocline4"><a href="#toggle-group">5.4.1 'toggle-group'</a>
	      <li class="tocline4"><a href="#group-reset">5.4.2 'group-reset'</a>
	  </ul>
   </ul>
   <li class="tocline2"><a href="#qA" class="tocxref">Appendix A. Additions to the Base Style Sheet for HTML4</a>
 </ul>
</div>

<h2><a name="q1">1. Introduction</a></h2>
<p><a href="http://www.w3.org/TR/REC-CSS1#anchor-pseudo-classes">Section 2.1 of CSS1</a> and <a href="http://www.w3.org/TR/REC-CSS2/ui.html">Chapter 18 of CSS2</a> introduced several user interface related pseudo-classes, properties and values. This proposal extends them to provide the ability, through CSS, to style elements based upon their various user interface related states, and to make an arbitrary structural element take on the dynamic presentation, or system default look and feel, of various standard user interface widgets.
<h3><a name="purpose">1.1 Purpose</a></h3>
<p>The purpose of this proposal is to achieve the following objectives:
<ul>
<li>Fill-out or complete the user interface features in CSS2.
<li>Provide additional CSS mechanisms to simulate the look and feel of the various standard form elements in HTML4.
<li>Provide additional CSS mechanisms to augment or replace the remaining stylistic attributes in HTML4.
<li>Add a mechanism to CSS to enable full-screen or kiosk mode.
</ul>
<h3><a name="scope">1.2 Scope</a></h3>
<p>This proposal intends only to specify the look and feel of various elements, and specifically does not address the meaning behind what a specific look and feel may imply.  For example, with the additions in the proposal, an author can make any element look and even feel like a submit button.   Yet, that arbitrary element has no meaning, so pushing it does nothing by default, and certainly doesn't imply that it submits a form.
</p>
<p>
Similarly, the SELECT element for example, provides a list or menu of choices to the user.  The meaning of the SELECT element is that it allows the user to make a choice, to choose something among several alternatives.  This says nothing about its look and feel, and in fact, the "concept" of a SELECT could be visually implemented as a list-box, a popup-menu, or a group of radio-buttons.  Each visual instantiation has a different look and feel, but maintains its original meaning, a choice among several alternatives.  This proposal addresses only the former (look and feel), not the latter (meaning).
</p>
<p>
Since this proposal serves to simulate various user interface and forms elements in HTML4, it is perhaps useful to call out what specifically is believed to be outside the scope of CSS, or better suited to document structure rather than style and therefore not addressed by this proposal:
</p>
<ul>
<li>Form semantics, including, but not limited to, submission, resetting, naming, what determines being successful or valid, and how to process form data.
<li>Form contents, including, but not limited to initial value, current value, and form content types.  The MAXLENGTH attribute, for example, determines the maximum number of characters the user can enter into an TEXT or PASSWORD input field.
<li>The FORM element and its unique attributes (action, method, enctype, accept, accept-charset).
<li>The file INPUT element.
<li>The FIELDSET, LEGEND and ISINDEX elements.
</ul>

<h3><a name="summary">1.3 Summary of Additions</a></h3>
<p>The proposal can be briefly summed up by the following additions to CSS:</p>
<ul>
<li>Four new pseudo-classes and two new pseudo-elements to represent the various states and relevant fragments of user interface elements
<li>Full-screen or kiosk mode - one new media type
<li>More system cursors, colors and fonts for multiple platforms
<li>Display:inline-block for BUTTON, TEXTAREA, and other elements.
<li>Content and list-style-type additions for radio button, checkbox, and checked menu visuals.
<li>Ten new properties consisting of the following:
 <ul>
 <li>ability to interpret width and height as defining the border-box
 <li>resizing mechanism for elements (to complement the scrollbars from overflow)
 <li>keyboard shortcuts, tabbing order, and focus selection control
 <li>making explicit which elements the user can interact with and modify
 </ul>
</ul>
<p>As a result, the rendering behaviors of the following fourteen HTML4 tags and four HTML4 attributes could be deprecated:</p>
<ul>
<li>HTML4 Tags
	<ul>
	<li>BUTTON
	<li>INPUT type=button
	<li>INPUT type=reset
	<li>INPUT type=submit
	<li>INPUT type=checkbox
	<li>INPUT type=radio
	<li>INPUT type=hidden
	<li>INPUT type=text
	<li>INPUT type=password
	<li>INPUT type=image
	<li>TEXTAREA
	<li>SELECT
	<li>OPTION
	<li>OPTGROUP
	</ul>
<li>HTML4 Attributes
	<ul>
	<li>ACCESSKEY
	<li>DISABLED
	<li>NORESIZE
	<li>TABINDEX
	</ul>
</ul>

<h3><a name="dependencies">1.4 Dependencies</a></h3>
<p>
The following work has dependencies on the CSS UI working draft.
</p>
<ul>
<li><a href="http://www.w3.org/TR/CSS3-selectors">CSS Selectors Module WD</a>
<li>CSS Colors Module WD
<li>CSS Font Module WD
<li>CSS Box Model Module WD
<li>CSS Media Module WD
<li>CSS UI Module WD
<li><a href="http://www.w3.org/MarkUp/Forms/">XForms</a>
</ul>

<h3><a name="issues">1.5 Issues</a></h3>
<p>This is a work in progress, and as such, has not yet addressed all issues that have been raised with respect to creating user interface elements using CSS.  The following issues remain to be resolved:</p>
<ol class=issues>
<li>Should this proposal attempt to address more of the behavior of FRAMESET and FRAME, specifically the ability to "share" resizability when elements share a border (i.e. with border-collapse for example)?
<li>Using "attr()" outside of the content property.  In the default style sheet additions at the end of this document, one of the rules is: <code>SELECT[size] { height: attr(size)em; }</code> in order to attempt to have a SELECT element that has a size attribute be vertically sized as a multiple of its font-size.  Should we discuss additional usages of the attr() expression in this proposal?
<li>key-equivalent conflicts.  what happens when two or more elements have the same key-equivalent?  what happens when an element has the same key-equivalent as some portion of the UAs intrinsic user interface?
<li>Should we add additional pseudo-classes to be able to style an element based upon it's modifiability?  E.g. :read-only, :read-write, :write-only.
<li>Should we distinguish system colors of elements in the front-most window versus non-front-most windows? Not at this point  - it doesn't make sense to address without also addressing system window layering functionality.
<li>Should we add a system color window subtype to represent palettes or floating windows (or both)?  Not at this point  - it doesn't make sense to address without also addressing system window layering functionality.
<li>Do we need to allow more control for the author to distinguish between what happens when a user interface element is focussed by the user, and when a user interface element is activated by the user?  Currently the 'user-focus' property dictates the behavior of an element when it acquires focus, but there is no such parallel property for when an element is activated (e.g. 'user-activate').  For example, in some implementations, tabbing in an element focusses it and then pressing the enter, return and sometimes spacebar key activates it.  For checkboxes and radio buttons, some implementations focus the element when the user clicks on the label or non-content portion of the element, whereas if the user clicks on the radio or check portion of the element, the element is activated.  Any property solutions to this issue should resolve what the default value of the property is for the SELECT and OPTGROUP elements in order to correctly reproduce typical behavior for those elements in HTML4 user agents - something like "user-active:select-menu;".
<li>Should we include a :hot-key (or similarly named) pseudo-element selector which selects the character or characters in an element which are the same as any key-equivalents on the element?  E.g. you could style the hot-key for any enabled user interface element with the following: <code>:enabled:hot-key{text-decoration:underline}</code>
<li>Should we add selectors for scrollbars? E.g. <code>:horizontal-scrollbar, :vertical-scrollbar</code> ? 
</ol>

<h2><a name="q2">2. Selectors: UI element states and fragments</a></h2>
<h3><a name="pseudo-classes">2.1 Pseudo-classes: UI element states</a></h3>
<h4><a name="pseudo-active">2.1.1 :active and :focus - addition to the CSS2 definitions</a></h4>
<p>The <a href="http://www.w3.org/TR/REC-CSS2/selector.html#dynamic-pseudo-classes">CSS2 definition of :active and :focus</a> states:
<ul>
<li>The :active pseudo-class applies while an element is being activated by the user. For example, between the times the user presses the mouse button and releases it. </li>
<li>The :focus pseudo-class applies while an element has the focus (accepts keyboard events or other forms of text input).</li>
</ul>
<p>This proposal adds the following:<blockquote><div>Only elements whose 'user-input' property has the value of "enabled" can become :active or acquire :focus.</div></blockquote>
<h4><a name="pseudo-enabled">2.1.2 The :enabled pseudo-class</a></h4>
<p>The purpose of the :enabled pseudo-class is to allow authors to customize the look of user interface elements which are enabled - which the user can select/activate in some fashion (e.g. clicking on a button with a mouse).  There is a need for such a pseudo-class because as of yet there is no way to programmatically specify the default appearance of say, an enabled INPUT element without also specifying what it would look like when it was disabled.</p>
<h4><a name="pseudo-disabled">2.1.3 The :disabled pseudo-class</a></h4>
<p>Similar to :enabled, :disabled allows the author to specify precisely how a disabled or inactive user interface element should look.</p>
<p>It should be noted that most elements will be neither enabled nor disabled.  An element is enabled if the user can either activate it or transfer the focus to it.  An element is disabled if it could be enabled, but the user cannot presently activate it or transfer focus to it.</p>
<h4><a name="pseudo-checked">2.1.4 The :checked pseudo-class</a></h4>
<p>The :checked pseudo-class only applies to elements which are user-input:enabled or disabled.  Radio and checkbox elements can be toggled by the user.  Some menu items are "checked" when the user selects them.  When such elements are toggled "on" the :checked pseudo-class applies.  The :checked pseudo-class initially applies to such elements that have the HTML4 SELECTED or CHECKED attribute as described in <a href="http://www.w3.org/TR/REC-html40/interact/forms.html#h-17.2.1">Section 17.2.1 of HTML4</a>, but of course the user can toggle "off" such elements in which case the :checked pseudo-class would no longer apply. While the :checked pseudo-class is dynamic in nature, and is altered by user action, since it can also be based on the presence of the semantic HTML4 SELECTED and CHECKED attribute, it applies to all media.</p>
<h4><a name="pseudo-indeterminate">2.1.5 The :indeterminate pseudo-class</a></h4>
<p>The :indeterminate pseudo-class only applies to elements which are user-input:enabled or disabled.  Radio and checkbox elements can be toggled by the user, but are sometimes in an indeterminate state, neither checked nor unchecked.  This can be due to an element attribute, or DOM manipulation. The :indeterminate pseudo-class applies to such elements.  While the :indeterminate pseudo-class is dynamic in nature, and is altered by user action, since it can also be based on the presence of an element attribute, it applies to all media.</p>

<h3><a name="pseudo-elements">2.2 Pseudo-elements: UI element fragments</a></h3>
<h4><a name="pseudo-selection">2.2.1 The :selection pseudo-element</a></h4>
<p>The :selection pseudo-element applies to the portion of a document that has been highlighted by the user. This also applies, for example, to selected text within an editable text field. Only elements that have a user-select other than 'none' can have a :selection. This pseudo-element should not be confused with the :checked pseudo-class (which used to be named :selected) or the :selected pseudo-class in the Selectors Proposal.</p>
<p>Although the :selection pseudo-element is dynamic in nature, and is altered by user action, it is reasonable to expect that when a UA rerenders to a static medium (such as a printed page) which was originally rendered to a dynamic medium (like screen), the UA may wish to transfer the current :selection state to that other medium, and have all the appropriate formatting and rendering take effect as well.  This is not required - UAs may omit the :selection pseudo-element for static media.</p>
<h4><a name="pseudo-menu">2.2.2 The :menu pseudo-element.</a></h4>
<p>Authors can specify the style and location of a generated menu with the :menu pseudo-element.  It is treated as a child of the element (and therefore inherits all styling by default - similar to :before and :after), and absolutely positioned at 0,0 with respect to the content top left corner of the element. It is made "visibility:visible" when the element itself is :active, and is "visibility:hidden" otherwise. It contains a copy of all the contents of the element itself.</p>
<h2><a name="q3">3. Media Types and Preferences</a></h2>
<h3><a name="media-pres">3.1 Media type 'presentation'</a></h3>
<div class="mediadef">
<dl>
<dt><span class="index-def" title="'presentation'"><a name="mediadef-presentation" class="mediadef-title"><strong>@media presentation</strong></a></span>
<dd>
The medium "screen" typically implies a window on a graphic display on perhaps a personal computer.  Such devices typically also have high fidelity stereo audio capabilities, and the ability to display content covering the entire graphic display, instead of just within a window.  There is significant demand to be able to author content specifically for this "mode" of interaction which can best be described as another medium - presentation.  Presentation is different from projection, in that it does not imply that it is rendered on a significantly larger screen (projection typically does).  On the contrary, presentation implies a similar sort of (perhaps the same) device as screen, but just in a different mode.
</dd>
</dl>
</div>

<h3><a name="at-pref">3.2 @preference</a></h3>
<div class="mediadef">
<dl>
<dt><span class="index-def" title="'preference'"><a name="at-rule-preference" class="atruledef-title"><strong>@preference</strong></a></span>
<dd>
<div>
CSS @media rules permit content authors to specify different appearances for content based upon what medium it is rendered to, or what kind of device it is used on.  Many devices support rendering on multiple mediums - a typical desktop computer has a printer attached and can therefore support both "screen" and "print" media.  These desktop computers typically also have audio capabilities, and therefore can support "aural" as well.  The @preference rule allows the content author to indicate which medium is preferred for rendering the content.  It does this with the "media" property.  For example, content which was designed to be rendered as a presentation, but is also suitable for screen rendering, and finally print, could have the following @preference rule in its style sheet: 
<pre>
@preference {
 media: presentation, screen, print;
}
</pre>
This @ rule instructs the UA to attempt to render the content as a presentation by default, and if unable to, render to the screen, and finally, at least provide the option of rendering to print.  Essentially, the "preference" @ rule gives hints to the UA as to how the content author believes the content is best delivered.  The only property currently defined for the @preference rule is "media", which gives an ordered list of the media that the content was intended for.  If a UA supports more than one medium in the list, it should by default use the first medium in the list which it supports.
</div>
</dd>
</dl>
</div>

<h2><a name="q4">4. Addition(s) To CSS2 Properties</a></h2>
<h3><a name="cursor">4.1 cursor (extensions to CSS2 18.1)</a></h3>
<div class="propdef">
<dl><dt>
<span class="index-def" title="'cursor'"><a name="propdef-cursor" class="propdef-title"><strong>'cursor'</strong></a></span>
<dd>
<table class="propinfo" cellspacing=0 cellpadding=0>
<tr><td><em>New&nbsp;Values:</em></td><td>copy | alias | context-menu | cell | grab | grabbing | spinning | count-up | count-down | count-up-down</td></tr>
<tr><td><em>Initial:</em></td><td>see CSS2</td></tr>
<tr><td><em>Applies to:</em></td><td>see CSS2</td></tr>
<tr><td><em>Inherited:</em></td><td>see CSS2</td></tr>
<tr><td><em>Percentages:</em></td><td>see CSS2</td></tr>
<tr><td><em>Media:</em></td><td>see CSS2</td></tr>
</table>
</dl>
</div>
<p>Description</p>
<dl>
<dt><strong>copy</strong>
<dd>Indicates something is to be copied.  Often rendered as an arrow with a small plus sign next to it.
<dt><strong>alias</strong>
<dd>Indicates an alias of/shortcut to something is to be created. Often rendered as an arrow with a small curved arrow next to it.
<dt><strong>context-menu</strong>
<dd>A context menu is available for the object under the cursor. Often rendered as an arrow with a small menu-like graphic next to it. 
<dt><strong>cell</strong>
<dd>Indicates that a cell or set of cells may be selected. Often rendered as a thick plus-sign with a dot in the middle.
<dt><strong>grab</strong>
<dd>Indicates something is to be grabbed. Often rendered as an open hand. 
<dt><strong>grabbing</strong>
<dd>Indicates that the user has grabbed something. Often rendered as a closed hand.
<dt><strong>spinning</strong>
<dd>Indicates that the program is performing some processing, but is different from 'wait' in that the user may still interact with the program. Often rendered as a spinning beach ball.
<dt><strong>count-up</strong>
<dd>Indicates that the program is performing a counting up operation.
<dt><strong>count-down</strong>
<dd>Indicates that the program is performing a count down operation.
<dt><strong>count-up-down</strong>
<dd>Indicates that the program is alternately counting up and then counting down.
</dl>

<h3><a name="color">4.2 color (including background and border, extensions to CSS2 18.2)</a></h3>
<p>
CSS2 introduced the concept of system colors which is a set of values that allows authors to specify colors in a manner that integrates them into the user's graphic environment.
</p>
<p>
This proposal extends that set of colors to allow authors to specify the specific colors for the subcomponents of a number of standard user interface elements in several states.  The proposal also recognizes that there may be other, platform specific system colors which UAs may implement in order to permit authors to take full advantage of the capabilities of that particular platform.
</p>
<p>
In addition, when the appropriate values are specified on the 'background' or 'border' shortcut properties, they behave similar to the System Font values, in that, the value indicates not only the color of the shortcut property but all other aspects (width, style, etc.) that are determined by the look of standard user interface elements on the system.  When the values are set on the shortcut 'background' or 'border' property, the individual properties such as 'background-color' or 'border-style' are still given values taken from the system, which can be independently varied.  Authors are encouraged to use the shortcut properties 'background' and 'border' rather than the properties 'background-color' and 'border-color' in order to allow the UA the flexibility to render as close to the standard look and feel of the platform.</p>

<p>The list of CSS2 System Colors, the list of HTML4 form elements, and the concept of a dialog window and an icon give us the following grouped by category list of user interface elements:</p>
<ul>
<li>icon
<li>window
<ul><li>document
    <li>workspace
    <li>desktop
    <li>tooltip (called "info" in the CSS2 system colors)
    <li>dialog
</ul>
<li>button
<ul><li>default-button
</ul>
<li>menu
<ul><li>pull-down menu
    <li>popup menu
    <li>list
</ul>
<li>field
</ul>
<p>
All UAs are expected to support rendering the appearance of the five generic user interface elements: icon, window, button, menu and field.  If a UA or platform does not support a specific user interface element (e.g. dialog), it may apply the values for the respective generic user interface element (e.g. window).
</p>
<p>
Each of these user interface elements has a number of subcomponents, each of which is typically a different color in today's modern desktop graphical user interfaces:	background, text, and border which correspond precisely to the CSS properties 'background', 'color', and 'border'.</p>

<p>
The following combinations of user interface element with subcomponent are required to abstractly construct the background, text color and border of each of the user interface elements respectively:
</p>
<ul>
<li>Icon, IconText, IconBorder
<li>Window, WindowText, WindowBorder
<ul><li>Document, DocumentText, DocumentBorder
	<li>Workspace, WorkspaceText, WorkspaceBorder
	<li>Desktop, DesktopText, DesktopBorder
	<li>Info, InfoText, InfoBorder
	<li>Dialog, DialogText, DialogBorder
</ul>
<li>Button, ButtonText, ButtonBorder
<ul><li>DefaultButton, DefaultButtonText, DefaultButtonBorder</ul>
<li>Menu, MenuText,	MenuBorder
<ul><li>PullDownMenu, PullDownMenuText, PullDownMenuBorder
	<li>PopupMenu, PopupMenuText, PopupMenuBorder
	<li>List, ListText, ListBorder
</ul>
<li>Field, FieldText, FieldBorder
</ul>
<p>
The CSS UI proposal defines a number of pseudo-classes or states for user interface elements: enabled, disabled, active, and hover.
</p>
<p>
Today's richest platform graphical user interfaces typically render differently for the first three states.  There are already applications which render their user interface elements differently even when the user is simply hovering over them, as such, it is not too great a leap to infer that future system standard user interface elements may also render differently in the hover state.
</p>
<p>
The above list of 42 system colors are expected to be rendered differently depending on the user interface state of the element.  This provides the author a simple and straight-forward mechanism for building user interface elements without having to construct rules for each possible state.
</p>
<p>
However, to enable the author to define their own rules for the look of specific states, for each of the above state independent colors, there are four state specific colors which are constructed by simply taking the given color and prepending the name of the state. E.g.</p>
<pre>
Button
	EnabledButton, DisabledButton, ActiveButton, HoverButton
</pre>
<h4>Summary of fallback handling for system colors</h4>
<p>The 42 state independent colors and their respective 168 state specific colors make a total of potentially 210 separate system colors for the UA to support.  Not all UAs or platforms may be able to support all 210 colors, so we explicitly specify a series of fallback steps:</p>
<ol>
<li>The color of the specific element as specified, e.g. <code>ActiveDefaultButtonBorder</code>
<li>The color of the generic element, e.g. <code>ActiveButtonBorder</code>
<li>The state independent version, e.g. <code>ButtonBorder</code>
</ol>
<p>An example of a very simple UA on a 1-bit video (black & white only) platform might for example, map all enabled border and text colors to black, and all background colors to white.  The disabled border and text colors could be rendered as a dithered 50% grey pattern, and the active text and background inverted.  Finally, the hover versions of the colors could simply be rendered the same as the enabled versions.
</p>


<h3><a name="font">4.3 font (extensions to CSS2 18.3)</a></h3>
<p>System Font addition(s): The system font in standard user interface widgets</p>
<div class="propdef">
<dl><dt>
<span class="index-def" title="'font'"><a name="propdef-font" class="propdef-title"><strong>'font'</strong></a></span>
<dd>
<table class="propinfo" cellspacing=0 cellpadding=0>
<tr><td><em>New&nbsp;Values:</em></td><td>window | document | workspace | desktop | info | dialog | button | pull-down-menu | list | field</td></tr>
<tr><td><em>Initial:</em></td><td>see CSS2</td></tr>
<tr><td><em>Applies to:</em></td><td>see CSS2</td></tr>
<tr><td><em>Inherited:</em></td><td>see CSS2</td></tr>
<tr><td><em>Percentages:</em></td><td>see CSS2</td></tr>
<tr><td><em>Media:</em></td><td>see CSS2</td></tr>
</table>
</dl>
</div>
<p>These additional values for 'font' symbolically specify that an element has the default font for that specific user interface element.  This is just an extension of the system font values in CSS2.  As with the other system font values, the values must be set on the shorthand property.</p>
<p>As with the extended system colors documented above, there is a specific fall back mechanism for UAs or platforms which do not support all the specific user interface elements.</p>
<ol>
<li>The font of the specific element, e.g. <code>dialog</code>
<li>The font of the generic element, e.g. <code>window</code>
</ol>
<p>Just as with the system colors, UAs are expected to support rendering at a minimum the five generic system fonts: icon, window, button, menu and field, with proper fallback treatment for the specific system fonts.</p>
<h3><a name="box-sizing">4.4 box-sizing (interpetation of width and height)</a></h3>
<div class="propdef">
<dl><dt>
<span class="index-def" title="'box-sizing'"><a name="propdef-box-sizing" class="propdef-title"><strong>'box-sizing'</strong></a></span>
<dd>
<table class="propinfo" cellspacing=0 cellpadding=0>
<tr><td><em>Values:</em></td><td>content-box | border-box | inherit</td></tr>
<tr><td><em>Initial:</em></td><td>content-box</td></tr>
<tr><td><em>Applies to:</em></td><td>all elements that accept width or height</td></tr>
<tr><td><em>Inherited:</em></td><td>no</td></tr>
<tr><td><em>Media:</em></td><td>same as width and height</td></tr>
</table>
</dl>
</div>
<p>Description</p>
<dl>
<dt><strong>content-box</strong>
<dd>This is the behavior of width and height as specified by CSS2.  The specified width and height apply to the width and height respectively of the content box of the element.  The padding and border of the element are laid out and drawn outside the specified width and height.
<dt><strong>border-box</strong>
<dd>The specified width and height on this element determine the border box of the element.  That is, any padding or border specified on the element is laid out and drawn inside this specified width and height.  The content width and height is computed by subtracting the border and padding widths of the respective sides from the specified width and height. This is the behavior of width and height as commonly implemented by legacy HTML user agents for replaced elements and input elements.
</dl>

<h3><a name="display">4.5 display</a></h3>
<p>The formatting model of the BUTTON tag, the TEXTAREA tag and other elements.</p>
<div class="propdef">
<dl><dt>
<span class="index-def" title="'display'"><a name="propdef-display" class="propdef-title"><strong>'display'</strong></a></span>
<dd>
<table class="propinfo" cellspacing=0 cellpadding=0>
<tr><td><em>New&nbsp;Values:</em></td><td>inline-block</td></tr>
<tr><td><em>Initial:</em></td><td>see CSS2</td></tr>
<tr><td><em>Applies to:</em></td><td>see CSS2</td></tr>
<tr><td><em>Inherited:</em></td><td>see CSS2</td></tr>
<tr><td><em>Percentages:</em></td><td>see CSS2</td></tr>
<tr><td><em>Media:</em></td><td>see CSS2</td></tr>
</table>
</dl>
</div>
<p>The 'inline-block' value for 'display' specifies that an element is to be formatted as a block, but that this block can sit on a line with other elements, similar to the way replaced/empty elements such as IMG and OBJECT and the containers TEXTAREA and BUTTON do.</p>
<dl>
<dt><strong>inline-block</strong>
<dd>The element is formatted as a block, and adjacent inline elements are formatted on the same line space permitting.
</dl>
<p>Example: a multi-line text field (similar to TEXTAREA): </p>
<pre>
div.field {
 color: fieldText;
 background: field;
 border: fieldBorder;
 font: field;
 display: inline-block;
 user-modify: read-write;
 user-select: text;
}
</pre>



<h3><a name="content">4.6 content</a></h3>
<p>Symbolic additions to the 'content' property</p>

<div class="propdef">
<dl><dt>
<span class="index-def" title="'content'"><a name="propdef-content" class="propdef-title"><strong>'content'</strong></a></span>
<dd>
<table class="propinfo" cellspacing=0 cellpadding=0>
<tr><td><em>New&nbsp;Values:</em></td><td>normal | &lt;uri&gt; | <br /> check | diamond | menu-check | menu-diamond | <br />
radio | radio-on | radio-off | radio-ind | <br />
enabled-radio-on | enabled-radio-off | enabled-radio-ind | <br />
disabled-radio-on | disabled-radio-off | disabled-radio-ind | <br />
active-radio-off | active-radio-on | active-radio-ind | <br />
hover-radio-off | hover-radio-on | hover-radio-ind | <br />
checkbox | checkbox-on | checkbox-off | checkbox-ind | <br />
enabled-checkbox-on | enabled-checkbox-off | enabled-checkbox-ind | <br />
disabled-checkbox-on | disabled-checkbox-off | disabled-checkbox-ind | <br />
active-checkbox-on | active-checkbox-off | active-checkbox-ind | <br />
hover-checkbox-on | hover-checkbox-off | hover-checkbox-ind</td></tr>
<tr><td><em>Initial:</em></td><td>normal</td></tr>
<tr><td><em>Applies to:</em></td><td>all elements</td></tr>
<tr><td><em>Inherited:</em></td><td>see CSS2</td></tr>
<tr><td><em>Percentages:</em></td><td>see CSS2</td></tr>
<tr><td><em>Media:</em></td><td>see CSS2</td></tr>
</table>
</dl>
</div>
<dl>
<dt><strong>normal</strong>
<dd>The contents of the element are determined by the document source.  Since the :before and :after generated content pseudo-elements have no document source to begin with, their initial content property value is effectively an empty string, as defined in CSS2.
<dt><strong>&lt;uri&gt;</strong>
<dd>Replace the contents of the element with the contents of the URI specified.
<dt><strong>check</strong>
<dd>A check mark.
<dt><strong>diamond</strong>
<dd>A filled diamond.  Like 'square' but rotated 45 degrees.
<dt><strong>menu-check</strong>
<dd>The system standard check-mark to indicate a 'checked' menu item.
<dt><strong>menu-diamond</strong>
<dd>The system standard diamond used to annotate menu items.
<dt><strong>radio</strong>
<dd>State dependent system standard rendering of a radio button.  The specific rendering of the radio button depends on its specific user interaction states (enabled vs. disabled vs. hover vs. active) and its specific user setting states, unchecked vs. checked vs. indeterminate).
<dt><strong>radio-on</strong>
<dt><strong>radio-off</strong>
<dt><strong>radio-ind</strong>
<dd>User interaction state dependent system standard rendering of a radio button.  The specific rendering of the radio button depends on its specific user interface states (enabled vs. disabled vs. hover vs. active).
<dt><strong>enabled-radio-on</strong>
<dt><strong>enabled-radio-off</strong>
<dt><strong>enabled-radio-ind</strong>
<dt><strong>disabled-radio-on</strong>
<dt><strong>disabled-radio-off</strong>
<dt><strong>disabled-radio-ind</strong>
<dt><strong>active-radio-on</strong>
<dt><strong>active-radio-off</strong>
<dt><strong>active-radio-ind</strong>
<dt><strong>hover-radio-on</strong>
<dt><strong>hover-radio-off</strong>
<dt><strong>hover-radio-ind</strong>
<dd>State specific radio buttons.  The system standard renderings of a radio button in its various user interface related states.</dd>
<dt><strong>checkbox</strong>
<dd>State dependent system standard rendering of a checkbox.  The specific rendering of the checkbox depends on its specific user interaction states (enabled vs. disabled vs. hover vs. active) and its specific user setting states, unchecked vs. checked vs. indeterminate).
<dt><strong>checkbox-on</strong>
<dt><strong>checkbox-off</strong>
<dt><strong>checkbox-ind</strong>
<dd>User interaction state dependent system standard rendering of a checkbox.  The specific rendering of the checkbox depends on its specific user interface states (enabled vs. disabled vs. hover vs. active).
<dt><strong>enabled-checkbox-on</strong>
<dt><strong>enabled-checkbox-off</strong>
<dt><strong>enabled-checkbox-ind</strong>
<dt><strong>disabled-checkbox-on</strong>
<dt><strong>disabled-checkbox-off</strong>
<dt><strong>disabled-checkbox-ind</strong>
<dt><strong>active-checkbox-on</strong>
<dt><strong>active-checkbox-off</strong>
<dt><strong>active-checkbox-ind</strong>
<dt><strong>hover-checkbox-on</strong>
<dt><strong>hover-checkbox-off</strong>
<dt><strong>hover-checkbox-ind</strong>
<dd>State specific checkboxes.  The system standard renderings of a checkbox in its various user interface related states.</dd>
</dl>
<p>These additional values for 'content' symbolically specify list annotations and menu annotations that were previously only available respectively through list-style-type and hardcoded for OPTION elements that were SELECTED.  In addition, symbolic names for the various states of a radio button and checkbox are introduced. The rendering of disc, circle, and square is identical to what is described for <a href="http://www.w3.org/TR/REC-CSS2/generate.html#lists">list-style-type</a>.  The exact rendering of check and diamond depends on the user agent, but it is suggested that the same glyph which is used on the platform to render a "checked" menu item be used for "check", and similarly for those platforms which support rendering of a "diamond" next to a menu item.  Conformant user agents may render 'diamond' the same as 'check'.  The radio- and checkbox- values are rendered as they are by default on the platform.</p>

<h3><a name="list-style-type">4.7 list-style-type</a></h3>
<p>Parallel symbolic additions to the list-style-type property.  This is simply here to keep the list-style-type property in synch with the content property.</p>
<div class="propdef">
<dl><dt>
<span class="index-def" title="'list-style-type'"><a name="propdef-list-style-type" class="propdef-title"><strong>'list-style-type'</strong></a></span>
<dd>
<table class="propinfo" cellspacing=0 cellpadding=0>
<tr><td><em>New&nbsp;Values:</em></td><td> check | diamond | menu-check | <br />
radio | radio-on | radio-off | radio-ind | <br />
enabled-radio-on | enabled-radio-off | enabled-radio-ind | <br />
disabled-radio-on | disabled-radio-off | disabled-radio-ind | <br />
active-radio-off | active-radio-on | active-radio-ind | <br />
hover-radio-off | hover-radio-on | hover-radio-ind | <br />
checkbox | checkbox-on | checkbox-off | checkbox-ind | <br />
enabled-checkbox-on | enabled-checkbox-off | enabled-checkbox-ind | <br />
disabled-checkbox-on | disabled-checkbox-off | disabled-checkbox-ind | <br />
active-checkbox-on | active-checkbox-off | active-checkbox-ind | <br />
hover-checkbox-on | hover-checkbox-off | hover-checkbox-ind</td></tr>
<tr><td><em>Initial:</em></td><td>see CSS2</td></tr>
<tr><td><em>Applies to:</em></td><td>see CSS2</td></tr>
<tr><td><em>Inherited:</em></td><td>see CSS2</td></tr>
<tr><td><em>Percentages:</em></td><td>see CSS2</td></tr>
<tr><td><em>Media:</em></td><td>see CSS2</td></tr>
</table>
</dl>
</div>
<p>See the 'content' property above for definitions of the values.</p>

<h2><a name="q5">5. Interactivity Additions</a></h2>
<h3><a name="resizer">5.1 resizer - counterpart to overflow: scroll</a></h3>
<p>Specifying resizing capabilities: the 'resizer' property</p>
<div class="propdef">
<dl><dt>
<span class="index-def" title="'resizer'"><a name="propdef-resizer" class="propdef-title"><strong>'resizer'</strong></a></span>
<dd>
<table class="propinfo" cellspacing=0 cellpadding=0>
<tr><td><em>Values: </em></td><td>auto | both | horizontal | vertical | none | inherit</td></tr>
<tr><td><em>Initial:</em></td><td>auto</td></tr>
<tr><td><em>Applies to:</em></td><td>all elements</td></tr>
<tr><td><em>Inherited:</em></td><td>no</td></tr>
<tr><td><em>Percentages:</em></td><td>n/a</td></tr>
<tr><td><em>Media:</em></td><td>interactive</td></tr>
</table>
</dl>
</div>
<p>Currently it is possible to control the appearance of the scrolling mechanism (if any) on a window using the overflow property (overflow: hidden) on the HTML (root) element.  The purpose of the resizer property is to also allow control over the appearance and function of the resize box (or other appropriate resizing mechanism) on the window.</p>
<p>Note: the resize box is NOT the same as the scrolling mechanism.  The scrolling mechanism allows the user to determine which portion of the canvas the viewport shows.  The resizing mechanism allows the user to determine the size of the viewport.</p>
<p>This property is meant to primarily apply to the HTML (root) element, yet it makes sense on any element which has scrollbars (overflow: scroll).  If the element does not have scrollbars (either through overflow: clip or default behavior of the user agent), then this property is ignored.  The appearance of the specific resizer is whatever is default for the user interface of the platform.</p>
<p>When the user manipulates the resizer, the actual width and height of the element are altered accordingly.  It is recommended that the resizer be placed in accordance with how the UA places the scrollbars. Some implementations place the scrollbars between the padding and the border.  The precise direction of resizing (i.e. altering the top left of the element or altering the bottom right) may depend on a number of factors including whether the element is absolutely positioned, whether it is positioned using the 'right' and 'bottom' properties, whether the language of the element is right-to-left etc.  The precise direction of resizing is left to the UA to properly determine for the platform.</p>
<dl>
<dt><strong>auto</strong>
<dd>Whatever is the default for the UA and platform.
<dt><strong>both</strong>
<dd>A bi-directional resizer is present on the element, and allows the user to adjust both the height and the width of the element.
<dt><strong>horizontal</strong>
<dd>A unidirectional horizontal resizer is present on the element, and allows the user to adjust only the width of the element.
<dt><strong>vertical</strong>
<dd>A unidirectional vertical resizer is present on the element, and allows the user to adjust only the height of the element.
<dt><strong>none</strong>
<dd>No resizer is present, and the user is given no direct manipulation mechanism to resize the element.
</dl>
<p>Example:</p>
<pre>
html {
       width: 100px; 
       height: 100px;
       overflow: clip;
       resizer: none 
     } /* display content in a non-resizable 100px by 100px window */
</pre>

<h3><a name="keyboard">5.2 Keyboard control</a></h3>
<h4><a name="key-equivalent">5.2.1 Key equivalents: the 'key-equivalent' property</a></h4>
<div class="propdef">
<dl><dt>
<span class="index-def" title="'key-equivalent'"><a name="propdef-key-equivalent" class="propdef-title"><strong>'key-equivalent'</strong></a></span></dt>
<dd>
<table class="propinfo" cellspacing=0 cellpadding=0>
<tr><td><em>Values: </em></td><td>none | (&lt;key-press-combination&gt; )<sup>+</sup> | &lt;system-key-equivalent&gt; | inherit</td></tr>
<tr><td><em>Initial:</em></td><td>none</td></tr>
<tr><td><em>Applies to:</em></td><td>all enabled elements</td></tr>
<tr><td><em>Inherited:</em></td><td>no</td></tr>
<tr><td><em>Percentages:</em></td><td>n/a</td></tr>
<tr><td><em>Media:</em></td><td>interactive</td></tr>
</table>
</dl>
</div>
<p>The purpose of this property is to be able to specify what key or combination of keys being simultaneously pressed activates/triggers a particular element.  This is typically used to alter the command or control key shortcut used for menu items and form buttons.  Key-equivalents are active in a document only if an element inside the document has the focus (this can include BODY).  This also applies to documents inside frames.  The frame must first acquire the focus before key-equivalents for any of the elements of its document can be active.  There may be platform and user agent limitations to key-equivalents which conflict with those inherent in the user agent and operating system.</p>
<dl>
<dt><strong>none</strong>
<dd>No key-equivalent is defined for the element
<dt><strong>(&lt;key-press-combination&gt; )<sup>+</sup></strong>
<dd><p>One or more &lt;key-press-combination&gt;s separated by spaces.  The user agent is supposed to use all &lt;key-press-combination&gt;s which it finds in the list which it and the platform is capable of supporting.  In some ways this is similar to the list of font families in the <a href="http://www.w3.org/TR/REC-CSS2/fonts.html#font-family-prop">font-family</a> property.</p>
<p>A &lt;key-press-combination&gt; is one or more <a href="http://www.w3.org/TR/REC-html40/types.html#type-character">characters</a> with one or more modifier keys separated by dashes ('-').  The characters must be specified in uppercase or as entities - the actual user input for the key-equivalency is case insensitive.  In addition to characters (representing keys), special or modifier keys can also be specified.  These are specified in all lowercase so as to be distinguished from the characters representing keys.  The actual list of supported special or modifier keys and characters is platform dependent.  For the modifier keys of which there are typically two, the right and the left, the author can either specify both, e.g. cmd, or only the right: rcmd, or only the left: lcmd.</p>
<div class="note"><p>
<em><strong>Note.</strong> Should we include "standard" keys from other consumer computing devices?</em></p></div>
<p>
&lt;key-press-combination&gt; = &lt;key&gt; ('-' &lt;key&gt;)<sup>*</sup><br />
&lt;key&gt; = space | &lt;character[CN]&gt; | &lt;special-key&gt; | attr(&lt;attribute&gt;)<br />
&lt;special-key&gt; = &lt;modifier-key&gt; | &lt;function-key&gt; | &lt;navigation-key&gt; | &lt;edit-key&gt; | &lt;misc-key&gt;<br />
&lt;modifier-key&gt; = accesskey | &lt;cmd-key&gt; | &lt;opt-key&gt; | &lt;ctrl-key&gt; | &lt;shift-key&gt; | &lt;alt-key&gt; | &lt;win-key&gt; | &lt;meta-key&gt; | fn | fcn | caps<br />
&lt;cmd-key&gt; = cmd | rcmd | lcmd<br />
&lt;opt-key&gt; = opt | ropt | lopt<br />
&lt;ctrl-key&gt; = ctrl | rctrl | lctrl<br />
&lt;shift-key&gt; = shift | rshift | lshift<br />
&lt;alt-key&gt; = alt | ralt | lalt<br />
&lt;win-key&gt; = win | rwin | lwin<br />
&lt;meta-key&gt; = meta | rmeta | lmeta<br />
&lt;function-key&gt; = f1 | f2 | f3 | f4 | f5 | f6 | f7 | f8 | f9 | f10 | f11 | f12 | f13 | f14 | f15<br />
&lt;navigation-key&gt; = tab | esc | enter | return | menu | help | namemenu | rcl | snd | &lt;arrow-key&gt; | &lt;page-key&gt;<br />
&lt;arrow-key&gt; = up | down | left | right<br />
&lt;page-key&gt; = home | end | pgup | pgdn<br />
&lt;edit-key&gt; = bs | del | ins | undo | cut | copy | paste | clr | sto<br />
&lt;misc-key&gt; = prtsc | sysrq | scrlock | pause | brk | numlock | pwr<br />
</p>
<p>'accesskey' is a symbolic value which represents the default "shortcut" or "keyboard accelerator" modifier key for the platform.  This value can be used essentially the same way that the ACCESSKEY attribute in HTML4 is used, to specify a single character to be pressed in conjunction with the default shortcut modifier key on the platform.
</p>
<p>Examples:</p>
<pre>
input.cancel { key-equivalent: esc cmd-. N }
input.ok     { key-equivalent: return enter Y }
input.open   { key-equivalent: ctrl-O cmd-O accesskey-O}
input.close  { key-equivalent: alt-f4 cmd-W}
input.copy   { key-equivalent: ctrl-C cmd-C copy accesskey-C}
</pre>
<dt><strong>&lt;system-key-equivalent&gt;</strong>
<dd><p>The author can also specify the system key-equivalent for a particular command on that platform.  System key-equivalents are all named with the system-* prefix, and refer to the command in their name.
</p>
<ul>
	<li>system-new, system-open, system-close, system-save, system-print,
	<li>system-quit, system-terminate-operation,
	<li>system-undo, system-redo,
	<li>system-cut, system-copy, system-paste, system-clear, system-duplicate,
	<li>system-select-all, system-find, system-find-again,
	<li>system-ok, system-cancel, system-apply
</ul>
<p>Examples:</p>
<pre>
input.cancel { key-equivalent: system-cancel }
input.ok     { key-equivalent: system-ok }
input.open   { key-equivalent: system-open }
input.close  { key-equivalent: system-close }
input.copy   { key-equivalent: system-copy }
</pre>
</dl>
<div class="note"><p>
<em><strong>Note.</strong> Other values may be permitted in future levels of CSS.</em>
</div>


<h4><a name="tab-index">5.2.2 Tabbing order: the 'tab-index' property</a></h4>
<div class="propdef">
<dl><dt>
<span class="index-def" title="'tab-index'"><a name="propdef-tab-index" class="propdef-title"><strong>'tab-index'</strong></a></span></dt>
<dd>
<table class="propinfo" cellspacing=0 cellpadding=0>
<tr><td><em>Values: </em></td><td>auto | &lt;number&gt; | inherit</td></tr>
<tr><td><em>Initial:</em></td><td>auto</td></tr>
<tr><td><em>Applies to:</em></td><td>all enabled elements</td></tr>
<tr><td><em>Inherited:</em></td><td>no</td></tr>
<tr><td><em>Percentages:</em></td><td>n/a</td></tr>
<tr><td><em>Media:</em></td><td>interactive</td></tr>
</table>
</dl>
</div>
<p>This property is a replacement for the HTML4 attribute <a href="http://www.w3.org/TR/REC-html40/interact/forms.html#h-17.11.1">TABINDEX</a>.  Borrowed and slightly rephrased from the HTML4 recommendation:
</p>
<blockquote>
<p>
This property specifies the position of the current element in the tabbing order for the current document.
</p>
<p>
The tabbing order defines the order in which elements will receive focus when navigated by the user via the keyboard. The tabbing order may include elements nested within other elements.
</p>
<p>
Elements that may receive focus should be navigated by user agents according to the following rules:
</p>
<ol>
<li>Those elements that support the tab-index property and assign a positive value to it are navigated first. Navigation proceeds from the element with the lowest tab-index value to the element with the highest value. Values need not be sequential nor must they begin with any particular value. Elements that have identical tab-index values should be navigated in the order they appear in the character stream.
<li>Those elements that do not support the tab-index property or support it and assign it a value of "0" are navigated next. These elements are navigated in the order they appear in the character stream. 
<li>Elements that are disabled do not participate in the tabbing order.
</ol>
<p>
Tabbing keys. The actual key sequence that causes tabbing navigation or element activation depends on the configuration of the user agent (e.g., the "tab" key is used for navigation and the "enter" key is used to activate a selected element).
</p>
<p>
User agents may also define key sequences to navigate the tabbing order in reverse. When the end (or beginning) of the tabbing order is reached, user agents may circle back to the beginning (or end)
</p>
</blockquote>

<h3><a name="dynamic">5.3 Dynamic presentation</a></h3>
<h4><a name="user-input">5.3.1 Enabling user interface elements: the 'user-input' property</a></h4>
<div class="propdef">
<dl><dt>
<span class="index-def" title="'user-input'"><a name="propdef-user-input" class="propdef-title"><strong>'user-input'</strong></a></span>
<dd>
<table class="propinfo" cellspacing=0 cellpadding=0>
<tr><td><em>Values:</em></td><td>none | enabled | disabled | inherit</td></tr>
<tr><td><em>Initial:</em></td><td>none*</td></tr>
<tr><td><em>Applies to:</em></td><td>all elements</td></tr>
<tr><td><em>Inherited:</em></td><td>yes</td></tr>
<tr><td><em>Percentages:</em></td><td>n/a</td></tr>
<tr><td><em>Media:</em></td><td>all</td></tr>
</table>
</dl>
</div>
<p>The purpose of this property is to allow the author to specify whether or not a user interface element will currently accept user input.  Typically this will be used to enable or disable specific input elements in a form.  UAs may interpret none as disabled for user interface related elements.</p>
<dl>
<dt><strong>none</strong>
<dd>The element is not an element that responds to user input.  It is considered neither enabled nor disabled.  It does not become :active.
<dt><strong>enabled</strong>
<dd>The element is functionally enabled and responds to user input.  Any applicable :enabled pseudo-class selectors are also applied.  The element can now become :active.
<dt><strong>disabled</strong>
<dd>The element is functionally disabled and does not respond to user input. Any applicable :disabled pseudo-class selectors are also applied.
</dl>
<p>*Note that although the initial value for this property is "none", user agents will typically set this value in their user agent style sheet.  Certainly, for HTML4 form elements, the user agent style sheet will have a value of "enabled" for the user-input property.</p>
<p>Any settings for the user-input property are ignored when inside a style declaration selected by either the :enabled or :disabled pseudo-classes.  This is to avoid the obvious infinite loop of setting user-input:disabled on a :enabled pseudo-class.</p>
<p>Example:</p>
<pre>
textarea { user-input: disabled } /* prevent access to contents of TEXTAREA */
</pre>

<h4><a name="user-modify">5.3.2 Modifiability of an element: the 'user-modify' property</a></h4>
<div class="propdef">
<dl><dt>
<span class="index-def" title="'user-modify'"><a name="propdef-user-modify" class="propdef-title"><strong>'user-modify'</strong></a></span>
<dd>
<table class="propinfo" cellspacing=0 cellpadding=0>
<tr><td><em>Values:</em></td><td>read-only | read-write | write-only | inherit</td></tr>
<tr><td><em>Initial:</em></td><td>read-only</td></tr>
<tr><td><em>Applies to:</em></td><td>all elements</td></tr>
<tr><td><em>Inherited:</em></td><td>yes</td></tr>
<tr><td><em>Percentages:</em></td><td>n/a</td></tr>
<tr><td><em>Media:</em></td><td>interactive</td></tr>
</table>
</dl>
</div>
<p>The purpose of this property is to allow finer control over which user interface elements are user modifiable. Input elements can be pre-filled in, with the user-modify property set to read-only so that the user cannot change them. This is useful for templates, or for update forms. The user can still activate a read-only element and copy content out of it, if that is appropriate for the content model of the element.  This is different from making the element "user-input:disabled" because that would prevent the user from activating the element.</p>
<p>Note that user agents may have a different initial value for the 'user-modify' property for some elements such as TEXTAREA which is typically user-modify:read-write.</p>
<dl>
<dt><strong>read-only</strong>
<dd>The user can view, select (if applicable) and copy information out of the element, but cannot modify the contents of the element.
<dt><strong>read-write</strong>
<dd>The user can view, select (if applicable), and edit the contents of the element.
<dt><strong>write-only</strong>
<dd>The user can select and edit the contents of the element, but is unable to view the actual contents, nor copy them out.  The rendering of the "unreadable" content is user agent dependent (perhaps rendered as nothing, a sequence of bullets or some other form of text-greeking.) 
</dl>

<h4><a name="user-select">5.3.3 Content selection granularity: the 'user-select' property</a></h4>
<div class="propdef">
<dl><dt>
<span class="index-def" title="'user-select'"><a name="propdef-user-select" class="propdef-title"><strong>'user-select'</strong></a></span>
<dd>
<table class="propinfo" cellspacing=0 cellpadding=0>
<tr><td><em>Values:</em></td><td>none | text | toggle | element | elements | all | inherit</td></tr>
<tr><td><em>Initial:</em></td><td>text</td></tr>
<tr><td><em>Applies to:</em></td><td>all elements (including 'empty') except replaced elements</td></tr>
<tr><td><em>Inherited:</em></td><td>no</td></tr>
<tr><td><em>Percentages:</em></td><td>n/a</td></tr>
<tr><td><em>Media:</em></td><td>interactive</td></tr>
</table>
</dl>
</div>
<p>This property controls the selection model and granularity of an element.  Additional selection models may be added in the future.</p>
<p>Note that although the initial value of 'user-select' is 'text', rules in the user agent's default style sheet may override this value.  For example, user agents typically do not allow selection of the contents of a BUTTON element. E.g. <code>BUTTON { user-select: none }</code></p>
<p>For the same reason, user-select: none is a typical default on the 'empty' INPUT elements.  For replaced elements the content which replaces the element determines the user-select, which is why this property does not apply.  For example, the user-select of an IFRAME is determined by the selection style of the HTML document inside.</p>
<p>This property is not inherited, but it does affect children in the same way that display: none does, it limits it.  That is if an element is user-select: none, it doesn't matter what the user-select value is of its children, the element's contents or it's childrens contents cannot be selected.</p>
<dl>
<dt><strong>none</strong>
<dd>None of the element's content can be selected.  This is a very important value of user-select for user interface elements in particular.  This value is one of the aspects of how a button behaves.  The user cannot select any of the content inside the button.  If for example, a user uses a pointing device to click on an element with user-select: none, what happens when the pointing device button is "down" is addressed by the user-input property, whereas when that pointing device button is "released", this property ensures that no selection of the contents of the element may remain.  Another way to explain this is that user-select: none is what gives a button its "push-button-springy" feel.  The value of 'none' is also useful for static text labels in a user interface which are not meant to be selected.  For example, in the header of an email message window, the portion that says "Name:" cannot be selected, whereas the content following it can be.  Such a static text label would also have user-input: none.
<dt><strong>text</strong>
<dd>The element's contents follow a standard text content selection model.
<dt><strong>toggle</strong>
<dd>The element's contents follow a standard toggling content model.
<dt><strong>element</strong>
<dd>One element at a time may be selected.
<dt><strong>elements</strong>
<dd>One or more elements at a time may be selected.
<dt><strong>all</strong>
<dd>Only the entire contents as a whole can be selected.
</dl>

<h4><a name="user-focus">5.3.4 Focus selection behavior of the contents of an element: the 'user-focus' property</a></h4>
<div class="propdef">
<dl><dt>
<span class="index-def" title="'user-focus'"><a name="propdef-user-focus" class="propdef-title"><strong>'user-focus'</strong></a></span>
<dd>
<table class="propinfo" cellspacing=0 cellpadding=0>
<tr><td><em>Values:</em></td><td>auto | normal | select-all | select-before | select-after | select-same | select-menu | inherit</td></tr>
<tr><td><em>Initial:</em></td><td>auto</td></tr>
<tr><td><em>Applies to:</em></td><td>all elements</td></tr>
<tr><td><em>Inherited:</em></td><td>yes</td></tr>
<tr><td><em>Percentages:</em></td><td>n/a</td></tr>
<tr><td><em>Media:</em></td><td>interactive</td></tr>
</table>
</dl>
</div>
<p>The purpose of this property is to determine what happens to an element when the user focusses it either by "tabbing" into it or clicking on it with a pointing device.  This property serves as both a shortcut property that sets the values of the individual user-focus-key and user-focus-pointer properties, and also serves to determine what happens for any other input methods not covered by user-focus-key and user-focus-pointer.</p>
<dl>
<dt><strong>auto</strong>
<dd>The default user agent behavior. 
<dt><strong>normal</strong>
<dd>The element simply acquires focus when activated.  Nothing else.
<dt><strong>select-all</strong>
<dd>The element's entire contents are selected.
<dt><strong>select-before</strong>
<dd>Nothing is selected, and the insertion-point is placed immediately inside the element, but before the contents of the element.
<dt><strong>select-after</strong>
<dd>Nothing is selected, and the insertion-point is placed immediately inside the element, but after the contents of the element.
<dt><strong>select-same</strong>
<dd>The selection returns to precisely what was selected last time the element had focus.  If this is the first time the element is being activated, the selection is whatever (if anything) was specified in the document markup.  If nothing was specified, nothing is initially selected - similar to the 'normal' value.
<dt><strong>select-menu</strong>
<dd>The generated :menu pseudo-element is selected when the element is focussed.
</dl>

<h5><a name="user-focus-key">5.3.4.1 Focus selection behavior of the contents of an element via keyboard input: the 'user-focus-key' property</a></h5>
<div class="propdef">
<dl><dt>
<span class="index-def" title="'user-focus-key'"><a name="propdef-user-focus-key" class="propdef-title"><strong>'user-focus-key'</strong></a></span>
<dd>
<table class="propinfo" cellspacing=0 cellpadding=0>
<tr><td><em>Values:</em></td><td>auto | normal | select-all | select-before | select-after | select-same | select-menu | inherit</td></tr>
<tr><td><em>Initial:</em></td><td>auto</td></tr>
<tr><td><em>Applies to:</em></td><td>all elements</td></tr>
<tr><td><em>Inherited:</em></td><td>yes</td></tr>
<tr><td><em>Percentages:</em></td><td>n/a</td></tr>
<tr><td><em>Media:</em></td><td>interactive</td></tr>
</table>
</dl>
</div>
<p>The purpose of this property is to determine what happens to an element when the user focusses it specifically by clicking on it with a pointing device.</p>
<p>See <a href="#user-focus" class="tocxref">'user-focus'</a> for definitions of the values.</p>

<h5><a name="user-focus-pointer">5.3.4.2 Focus selection behavior of the contents of an element via pointing device: the 'user-focus-pointer' property</a></h5>
<div class="propdef">
<dl><dt>
<span class="index-def" title="'user-focus-pointer'"><a name="propdef-user-focus-pointer" class="propdef-title"><strong>'user-focus-pointer'</strong></a></span>
<dd>
<table class="propinfo" cellspacing=0 cellpadding=0>
<tr><td><em>Values:</em></td><td>auto | normal | select-all | select-before | select-after | select-same | select-menu | inherit</td></tr>
<tr><td><em>Initial:</em></td><td>auto</td></tr>
<tr><td><em>Applies to:</em></td><td>all elements</td></tr>
<tr><td><em>Inherited:</em></td><td>yes</td></tr>
<tr><td><em>Percentages:</em></td><td>n/a</td></tr>
<tr><td><em>Media:</em></td><td>interactive</td></tr>
</table>
</dl>
</div>
<p>The purpose of this property is to determine what happens to an element when the user focusses it specifically by "tabbing" into it.</p>
<p>See <a href="#user-focus" class="tocxref">'user-focus'</a> for definitions of the values.</p>


<h3><a name="toggle">5.4 Toggle Groups - mutually exclusively toggled sets of elements</a></h3>
<p>
Mutually exclusively toggled user interface elements are controlled with two properties, 'toggle-group' and 'group-reset'. The groups defined by the group-reset property are used as values for the toggle-group property.  These properties interact and cascade similarly to the <a href="http://www.w3.org/TR/REC-CSS2/generate.html#counters">'counter-reset' and 'counter-increment'</a> properties defined in CSS2.
</p>
<h4><a name="toggle-group">5.4.1 Specifying a toggle group: the 'toggle-group' property</a></h4>
<div class="propdef">
<dl><dt>
<span class="index-def" title="'toggle-group'">
<a name="propdef-toggle-group" class="propdef-title"><strong>'toggle-group'</strong></a></span>
<dd>
<table class="propinfo" cellspacing=0 cellpadding=0>
<tr><td><em>Values:</em></td><td>&lt;identifier&gt; | none | inherit</td></tr>
<tr><td><em>Initial:</em></td><td>none</td></tr>
<tr><td><em>Applies to:</em></td><td>all elements</td></tr>
<tr><td><em>Inherited:</em></td><td>no</td></tr>
<tr><td><em>Percentages:</em></td><td>n/a</td></tr>
<tr><td><em>Media:</em></td><td>all</td></tr>
</table>
</dl>
</div>
<p>
The 'toggle-group' property accepts the name of a group (identifier). The property indicates which toggle group that the element is a member of.  Only one element belonging to any given toggle group can be :checked.
</p>
<p>
If 'toggle-group' refers to a group that is not in the scope (see below) of any 'group-reset', the group is assumed to have been reset by the root element. 
</p>

<h4><a name="group-reset">5.4.2 Resetting a group: the 'group-reset' property</a></h4>
<div class="propdef">
<dl><dt>
<span class="index-def" title="'group-reset'">
<a name="propdef-group-reset" class="propdef-title"><strong>'group-reset'</strong></a></span>
<dd>
<table class="propinfo" cellspacing=0 cellpadding=0>
<tr><td><em>Values:</em></td><td>&lt;identifier&gt;+ | none | inherit</td></tr>
<tr><td><em>Initial:</em></td><td>none</td></tr>
<tr><td><em>Applies to:</em></td><td>all elements</td></tr>
<tr><td><em>Inherited:</em></td><td>no</td></tr>
<tr><td><em>Percentages:</em></td><td>n/a</td></tr>
<tr><td><em>Media:</em></td><td>all</td></tr>
</table>
</dl>
</div>
<p>
The 'group-reset' property contains a list of one or more names of groups. 
</p>
<p>
The 'group-reset' for a group X, creates a fresh group X, the scope of which is the element, its preceding siblings, and all the descendants of the element and its preceding siblings. 
</p>
<p>
This example shows a way to create a group of three mutually exclusive radio buttons.
</p>
<pre>
.radiogroup1 { group-reset: group1 }
.radiobutton { 
    toggle-group: group1;
    display: inline-block;
    color: ButtonText;
    background: Button;
    border: ButtonBorder;
    font: button;
    white-space: nowrap;
    cursor: arrow;
    user-input: enabled;
    user-modify: read-only;
    user-select: toggle;
    user-focus: normal;
}
.radiobutton:before { content: radio }
</pre>
<pre>
&lt;div class="radiogroup1"&gt;
    &lt;div class="radiobutton"&gt;Win&lt;/div&gt;
    &lt;div class="radiobutton"&gt;Lose&lt;/div&gt;
    &lt;div class="radiobutton"&gt;Draw&lt;/div&gt;
&lt;/div&gt;
</pre>
<p>
The 'group-reset' property follows the cascading rules. Thus, due to cascading, the following style sheet:
</p>
<pre>
div { group-reset: result }
div { group-reset: choice }
</pre>
<p>
will only reset 'choice'. To reset both groups, they have to be specified together:
</p>
<pre>
div { group-reset: result choice }
</pre>
<h5>Nested groups and scope</h5>
<p>
Groups are "self-nesting", in the sense that re-using a group in a child element automatically creates a new instance of the group. This is important for situations like dependent choices and sub-choices in HTML, where elements can be nested inside themselves to arbitrary depth. It would be impossible to define uniquely named groups for each level.
</p>
<p>
The self-nesting is based on the principle that every element that has a 'group-reset' for a group X, creates a fresh group X, the scope of which is the element, its preceding siblings, and all the descendants of the element and its preceding siblings. 
</p>
<h5>Groups in elements with 'display: none'</h5>
<p>
An element that is not displayed ('display' set to 'none') cannot reset a group. 
</p>
<p>
For example, with the following style sheet, H2s with class "secret" do not reset 'group2'. 
</p>
<pre>
h2.secret {group-reset: count2; display: none}
</pre>
<p>
Elements with 'visibility' set to 'hidden', on the other hand, do reset groups.  
</p>


<h2><a name="qA">Appendix A. Additions to the Base Style Sheet for HTML4</a></h2>

<p>Potential additions to the base style sheet to express HTML4 form elements:</p>
<pre class=html4ss>

a[href] { user-input: enabled }

button,
input[type=button],
input[type=reset],
input[type=submit],
input[type=checkbox],
input[type=radio],
textarea,
input,
input[type=text],
input[type=hidden],
input[type=password],
input[type=image]
{
/* appearance of the various types of HTML4 buttons */
 display: inline-block;
 color: ButtonText;
 background: Button;
 border: ButtonBorder;
 font: button;
 white-space: nowrap;
/* dynamic interface */
 cursor: arrow;
 user-input: enabled;
 user-modify: read-only;
 user-select: none;
 user-focus: normal;
}

input[type=button],
input[type=reset],
input[type=submit]
{
/* content and formatting of text in HTML4 input buttons */
 content: attr(value);
}

input[type=submit]
{
/* appearance of a default button */
 color: DefaultButtonText;
 background: DefaultButton;
 border: DefaultButtonBorder;
}

input[type=checkbox],
input[type=radio]
{
 user-select: toggle;
}

input[type=checkbox][name],
input[type=radio][name]
{
 toggle-group: attr(name);
}

input[type=checkbox]:before { content: checkbox }

input[type=radio]:before { content: radio }

textarea,
input[type=text],
input[type=hidden],
input[type=password]
{
/* appearance of HTML4 text fields */
 color: FieldText;
 background: Field;
 border: FieldBorder;
 font: field;
 white-space: nowrap;
/* user interface */
 cursor: text;
 user-modify: read-write;
 user-select: text;
 user-focus: select-all;
}

input[type=hidden] 
{
/* appearance of the HTML4 hidden text field in particular */
 display: none;
}

input[type=password] 
{
/* appearance of the HTML4 password text field in particular */
/* user interface of the HTML4 password text field in particular */
 user-modify: write-only;
}

textarea,
button
{
/* appearance of BUTTON and TEXTAREA tags in particular */
 white-space:normal;
}

input[type=image]
{
 content: url(attr(src));
 border: none;
 user-select: none;
 user-focus: normal;
}

select[size]
{
/* SELECT with size>1 - appearance of list */
 color: ListText;
 background: List;
 border: ListBorder;
 font: List;
 display: inline-block;
 height: attr(size)em;
 user-focus: select-same;
 user-select: elements;
}

select,select[size=1]
{
/* SELECT with no size attribute, or size=1 - popup-menu */
 color: PopupMenuText;
 background: PopupMenu;
 border: PopupMenuBorder;
 font: PopupMenu;
 display: inline-block;
 height: 1em;
 overflow: clip;
 user-input: enabled;
 user-focus: select-menu;
 user-select: element;
 user-modify: read-only;
}

select[size]:active
{
/* active SELECT with size>1 - appearance of active list */
 display: inline-block;
}

select:menu,select[size=1]:menu
{
 display: block;
}

optgroup,option
{
 display: block;
 white-space: nowrap;
 user-input: enabled;
}

optgroup
{
 user-focus: select-menu;
 user-select: element;
}

optgroup[label],option[label] 
{
 content: attr(label);
}

option[selected]:before 
{ 
 content: menu-check; display: marker;
}

*[accesskey]:enabled 
{ 
 key-equivalent:accesskey-attr(accesskey);
}

*[noresize] { resizer:none }

*[tabindex] { tab-index:attr(tabindex) }

button[disabled], input[disabled], 
optgroup[disabled], option[disabled],
select[disabled], textarea[disabled] 
{
 user-input:disabled;
}

/* other inline-block elements in HTML4 */
img, object, applet, embed, iframe, frame, frameset 
{ 
 display:inline-block; 
}

</pre>
</body>
</html>