[whatwg] Form input element for value-unit pairs
christoph.paeper at crissov.de
Sat Mar 5 09:26:52 PST 2011
Imagine a richt text processor done in HTML5. If you want to select the font size (of a template or class, of course) how would you do it?
Standalone word processors usually have a combo field that lets the user enter a number
possibly adding controls for increasng and decreasing
or they may allow the user to select one of the predefined recommended or frequent values.
These are commonly using, without explicitly mentioning it, the magic unit ‘point’, which users usually don’t know, especially if they’re not from the US and are not trained typographers.
In other places, software interface designers honor the variety of absolute and relative (length) units by introducing a widget that bears the number and the unit symbol,
which can both be changed, although not independently.
‘pt’→‘px’ ⇒ [12 px] not [16 px]
Some implementations are even broken in that they accept many unit symbols, but always autoconvert (and round) to a preferred unit.
[4 mm] → [11.34 pt]
Thus, would it make sense to add another new type for the ‘input’ element?
More information about the whatwg