W3C home > Mailing lists > Public > whatwg@whatwg.org > April 2009

[whatwg] size attribute

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 28 Apr 2009 07:34:20 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0904280733070.12381@hixie.dreamhostps.com>
On Tue, 28 Apr 2009, Kristof Zelechovski wrote:
>
> Regarding 4.10.4.2.4 The size attribute
> <URL:http://www.whatwg.org/specs/web-apps/current-work/multipage/forms.html#
> the-size-attribute>:
> 
> The user does not see characters, she sees glyphs.  If the text input
> control uses a variable-spaced typeface, the user agent must consider the
> maximum glyph width for the worst case (WWW in Latin or whatever), which may
> be excessive, or resize the control on the fly (causing a reflow, which
> would be unexpected and annoying).
> 
> My text was intended as an amendment to the first sentence only.  In
> particular, I think that the comment about ligatures is worth including.

For authors, it seems like giving any sort of detail would be misleading, 
since the actual meaning of the attribute is pretty specific and 
doesn't really match anything intuitive.

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

It's not clear to me exactly which of these you are suggesting should be 
changed, or why.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Tuesday, 28 April 2009 00:34:20 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:11 UTC