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