[whatwg] size attribute

Ojan Vafai ojan at chromium.org
Tue Apr 28 12:15:04 PDT 2009


On Tue, Apr 28, 2009 at 12:34 AM, Ian Hickson <ian at hixie.ch> wrote:

> For implementors, the spec already gives, to the pixel, the length
> required (in the rendering section).
>

Speaking of which, the spec isn't quite accurate to what IE does here. The
spec lists (size-1)×avg + max as the converting a character width to pixels
algorithm, which matches IE for text inputs, but not for textareas. For
textareas it's just size×avg.

Ojan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20090428/01936b43/attachment-0002.htm>


More information about the whatwg mailing list