可滚动的列表,可以选中一行或多行,和“打开”对话框里的一样。
- Apple DVD Player
- Apple Video Player
- AppleCD Audio Player
- QuickTime
- Security
- SimpleText
<ul class="listbox" role="listbox" aria-label="Documents" style="width: 220px; height: 82px">
<li role="option" aria-selected="true">Apple DVD Player</li>
<li role="option">Apple Video Player</li>
<li role="option">AppleCD Audio Player</li>
<li role="option">QuickTime</li>
<li role="option">Security</li>
<li role="option">SimpleText</li>
</ul>Mac OS 四个年代并排对照
- 选择器
.listbox[role=listbox][role=option][aria-selected=true].selected- Token
--clio-list-bg--clio-list-border--clio-list-shadow--clio-list-row--clio-selection-bg--clio-selection-fg- 无障碍
- 用 role=listbox 和 role=option,并加 aria-selected。焦点的移动由你的脚本来做(roving tabindex)。
证据(6)
| 年代 | 数值 | 状态 | 来源 |
|---|---|---|---|
| System 7 | As System 6: a selected row inverts across the list | 推断 | seen in the Keyboard control panel during capture; the Color control panel's highlight colour is Black & White (System 7.5.3 in Infinite Mac); the row itself not pixel-checkedSystem 7.5.3 |
| System 6 | White list, 1px ink frame, 16px rows; a selected row inverts across the whole list width | 实测 | clio.css capture, System 6.0.8 in Infinite Mac (npm run capture:system6), frames save-dialog and list-selected (Standard File)System 6.0.8 TeachText Save As |
| Platinum | Selection is lavender #ccccff with black text | 实测 | apps/desktop/styles/65-appearance-themes.css:128GUIdebook Mac OS 9.0 Open dialog (open-list-scrollbar specimen) |
| Platinum | Rows carry no divider | 实测 | apps/desktop/styles/65-appearance-themes.css:860 (P10)Mac OS 9 native list capture 21 |
| Drawing Board | List boxes: a 2px olive #9c9c63 line, 1px of whatever is behind inside it (the pane's paper), white rows, the chosen row #ccf with black text | 实测 | clio.css capture, Mac OS 8.5 with the 8.5b6 Drawing Board theme in Infinite Mac (npm run capture:drawingboard), frame desktop-tabpattern list, lower-left corner |
| NeXTSTEP | Lists: white, 1px black frame, 16px rows; a selected row is white on a light-grey cell in a browser, light grey in a plain list | 推断 | AI System 6 69-nextstep-appearance.cssnot captured |