clio.css窗口控件列表Menu

Slider
Chinese text garbled? Show it as pictures

把 <input type=range> 画成 Appearance 滑块,可以加刻度。

示例:slider

<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">

Slider 简介

选择器
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)

每个数值的来源(英文)
年代数值状态来源
PlatinumA 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.py
track and thumb 100% identical; the held thumb was not captured
PlatinumThe 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 erasTick marks fall on whole pixels, (width - run) / (count - 1) rounded调整clio.css
each browser rounded a fractional spacing its own way; the Mac's tick placement was not measured
Drawing BoardThe 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 keyboard
thumb and track pen found 1:1; ticks not reproduced
System 7System 7 had no slider in the Toolbox (each control panel drew its own); it uses Platinum's调整clio.css
Macintosh Human Interface Guidelines (1992), ch. 7: Controls Not Supported by the Toolbox
System 6System 6 had none; it uses Platinum's调整clio.css
—
Classic erasA 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: Sliders
no other dial control was found in any era
NeXTSTEPSlider: 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 check
fidelity nx-slider, identical in Chromium, WebKit and Firefox