W3C home > Mailing lists > Public > whatwg@whatwg.org > November 2012

Re: [whatwg] Font Resize Event

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 20 Nov 2012 07:49:52 +0000 (UTC)
To: Hugh Guiney <hugh.guiney@gmail.com>, Scott Johnson <sjohnson@mozilla.com>
Message-ID: <Pine.LNX.4.64.1211200749010.26354@ps20323.dreamhostps.com>
Cc: whatwg <whatwg@lists.whatwg.org>
On Wed, 26 Sep 2012, Hugh Guiney wrote:
> My use case: I have a <div> with overflow: hidden that contains slides 
> as part of a JavaScript carousel. It has to be overflow: hidden because 
> otherwise the unseen slides are visible/stretch the page. And because 
> each slide is different, the containing <div> therefore needs to 
> grow/shrink in height depending on the content currently being 
> displayed. This is trivial enough to do, by changing the height to match 
> its contents whenever a slide change occurs, or a resize or 
> orientationchange event is fired, but currently if I increase or 
> decrease the font size, the content can get cut off, or there will be a 
> ton of extra white space, since the <div> height is out of sync with the 
> height of its contents. This could be easily remedied with a fontresize 
> (or textresize) event.

This sounds more like a rendering-time feature, so I would recommend 
approaching the CSS working group at www-style@w3.org with the idea. (The 
WHATWG specs currently don't cover this area of the Web platform.)

Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Tuesday, 20 November 2012 09:26:23 UTC

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