[Webkit-unassigned] [Bug 6799] text doesn't fit in input field @ www.etrade.com

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Nov 14 09:40:29 PST 2022


https://bugs.webkit.org/show_bug.cgi?id=6799

--- Comment #5 from Anne van Kesteren <annevk at annevk.nl> ---
It's defined in https://html.spec.whatwg.org/#the-input-element-as-a-text-entry-widget:

> If an input element whose type attribute is in one of the above states has a size attribute, and parsing that attribute's value using the rules for parsing non-negative integers doesn't generate an error, then the user agent is expected to use the attribute as a presentational hint for the 'width' property on the element, with the value obtained from applying the converting a character width to pixels algorithm to the value of the attribute.

Which ends up calling:

> The converting a character width to pixels algorithm returns (size-1)×avg + max, where size is the character width to convert, avg is the average character width of the primary font for the element for which the algorithm is being run, in pixels, and max is the maximum character width of that same font, also in pixels. (The element's 'letter-spacing' property does not affect the result.)

Which suggests you get _max_ for the test case in question.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20221114/08e91d6c/attachment.htm>


More information about the webkit-unassigned mailing list