W3C home > Mailing lists > Public > www-style@w3.org > March 2016

Re: [css-values][css-writing-modes] ch and ic units

From: fantasai <fantasai.lists@inkedblade.net>
Date: Thu, 10 Mar 2016 16:17:05 -0500
To: www-style@w3.org
Message-ID: <56E1E451.6030503@inkedblade.net>
On 03/10/2016 06:43 AM, Behdad Esfahbod wrote:
> I like to raise an issue here: a few years ago I made Pango's
> "average character width" match something along these lines.
> Then we got a report from a browser implementation relying on
> that, having problems with too-wide <input> and <textarea> under
> CJK locales.  The "exact character count in monospace fonts"
> part is problematic for designers, as most designers asking for,
> eg, 50ch in a textarea, do NOT want twice the width for CJK...
> In Pango, we ended up dividing that by something like
> wcwidth() of characters to normalize CJK by dividing by two.

This is why we chose to measure the zero glyph for 'ch' units
instead of taking an average. So for CSS, this is a non-issue.

Received on Thursday, 10 March 2016 21:17:39 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:09:01 UTC