[whatwg] size attribute

The algorithm [1] for converting a character width to pixels is good indeed,
except that it should be formulated in terms of glyphs and not characters
because stand-alone characters are not displayed or perceived as such for
some scripts.

If the primary font for which the algorithm is being run comprises several
scripts, as it typically does, characters of the script of the effective
language of the control should take overwhelming weight in the average.

This algorithm does not fulfill the requirements for the size attribute
formulated in section 4.10.4.2.4 [2]: when it is applied, it may happen that
the user agent will not be able to allow the user to see the whole text it
should be able to allow.  The requirement should be modified to match the
effect of the algorithm.

IMHO,
Chris

---
[1] <URL:
http://www.whatwg.org/specs/web-apps/current-work/multipage/the-xhtml-syntax
.html#converting-a-character-width-to-pixels>
[2] <URL:
http://www.whatwg.org/specs/web-apps/current-work/multipage/forms.html#attr-
input-size>

Received on Tuesday, 28 April 2009 07:00:14 UTC