W3C home > Mailing lists > Public > www-style@w3.org > April 2010

Re: Suggestion: A new text attribute to scale the size of text to follow the size of a box

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Fri, 30 Apr 2010 09:58:56 -0400
Message-ID: <4BDAE220.7070401@mit.edu>
To: sam <samuelp@iinet.net.au>
CC: Gabriel Zackari <gabriel.zackari@gmail.com>, www-style@w3.org
On 4/30/10 6:08 AM, sam wrote:
> So what is really being asked for is the ability lock a block's
> font-size to its height: this.font-size = this.height ...

This isn't doable in general.  Consider this case:

   <div style="width: 0; font-size: our-magic-value">
     Some text

What's the height of the div?

 > Very useful when making buttons of different sizes.
 > The text would allways keep to the size of the button.

As someone who habitually browses with a 13px minimal font size set, I 
can tell you that people who do this sort of thing right now end up with 
text in their buttons wrapping and covering up other things...  Makes 
some websites well-nigh unusable.

Received on Friday, 30 April 2010 13:59:32 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:34 UTC