把 <input type=range> 畫成 Appearance 滑桿,可以加刻度。
<label for="clio-rate">Key Repeat Rate</label>
<input id="clio-rate" type="range" class="ticks" min="0" max="4" value="2" style="width: 120px; --clio-slider-tick-count: 5">Mac OS 四個年代並排對照
- 選擇器
input[type=range]input[type=range].ticks- Token
--clio-slider-height--clio-art-slider-track--clio-art-slider-thumb--clio-slider-tick-count- 無障礙
- 原生 range input。替它加標籤;只看數字意思不清楚時,用 aria-valuetext 說明數值。
證據(8)
| 年代 | 數值 | 狀態 | 來源 |
|---|---|---|---|
| Platinum | A 7-row track (light, black, three grey, black, white), a 15x16 thumb pointing down, tick marks of white, black and #888 | 實測 | clio.css capture, Mac OS 9.0 in Infinite Mac (driven by hand, frames in .fidelity/hig/platinum9), frame mouse (Mouse Tracking); tooling/hig-art.pytrack and thumb 100% identical; the held thumb was not captured |
| Platinum | The thumb stops 3px inside the track at both ends (Firefox's thumb is held there by padding) | 實測 | clio.css capture, Mac OS 9.0 in Infinite Mac (driven by hand, frames in .fidelity/hig/platinum9), Mouse Tracking dragged to each end (frames slider-min, slider-max)specimens p9-slider-min and p9-slider-max 100% identical in Chromium, WebKit and Firefox |
| Classic eras | Tick marks fall on whole pixels, (width - run) / (count - 1) rounded | 調整 | clio.csseach browser rounded a fractional spacing its own way; the Mac's tick placement was not measured |
| Drawing Board | The theme's 9x16 thumb (1106, through 16 bits) on a 1px pencil track (ppat 7024) | 實測 | the theme file's pxm# and ppat resources (tooling/db-art.py); clio.css capture, Mac OS 8.5 with Drawing Board in Infinite Mac (frames in .fidelity/hig/drawingboard), frame keyboardthumb and track pen found 1:1; ticks not reproduced |
| System 7 | System 7 had no slider in the Toolbox (each control panel drew its own); it uses Platinum's | 調整 | clio.cssMacintosh Human Interface Guidelines (1992), ch. 7: Controls Not Supported by the Toolbox |
| System 6 | System 6 had none; it uses Platinum's | 調整 | clio.css— |
| Classic eras | A dial is a slider: the 1992 guidelines' "slider (sometimes called a dial)", HIG87's indicator that shows and sets a value | 推斷 | Macintosh Human Interface Guidelines (1992), ch. 7: Slidersno other dial control was found in any era |
| NeXTSTEP | Slider: a 16px lane of the scroller's dots, black at the top and left, white at the bottom and right; the 20x14 knob, a raised bevel with a groove down its middle and a #555555 shadow on its right | 實測 | clio.css capture, NeXTStep 3.0 in Infinite Mac (frames in .fidelity/ns30), frame prefs3 (Preferences, Display, Automatic Dimming, 170x16); tooling/nx-art.py checkfidelity nx-slider, identical in Chromium, WebKit and Firefox |