- From: Brad Kemper <brad.kemper@gmail.com>
- Date: Thu, 29 Apr 2010 12:45:13 -0700
- To: François REMY <fremycompany_pub@yahoo.fr>
- Cc: Gabriel Zackari <gabriel.zackari@gmail.com>, "<www-style@w3.org>" <www-style@w3.org>
Actually, come to think of it, I believe we had talked before about using this for scaling too, via a different value. It's really more for width than height though. Height is more an aspect of line-height than of anything font-size or text-align could do by themselves. On Apr 29, 2010, at 11:15 AM, François REMY <fremycompany_pub@yahoo.fr> wrote: > All right. Wasn't aware of this property. > > -------------------------------------------------- > From: "Brad Kemper" <brad.kemper@gmail.com> > Sent: Thursday, April 29, 2010 7:49 PM > To: "François REMY" <fremycompany_pub@yahoo.fr> > Cc: "Gabriel Zackari" <gabriel.zackari@gmail.com>; <www-style@w3.org> > Subject: Re: Suggestion: A new text attribute to scale the size of > text to follow the size of a box > >> That is already covered by this: >> >> http://www.w3.org/TR/2007/WD-css3-text-20070306/#text-align-last >> >> On Apr 29, 2010, at 10:34 AM, François REMY wrote: >> >>> Another implementation would be "text-align: fill". >>> This would only distribute space between chars >>> as if "text-align: justify;" was used, but it would dis- >>> tribute it even when the line is'nt ended. >>> >>> -------------------------------------------------- >>> From: "Brad Kemper" <brad.kemper@gmail.com> >>> Sent: Thursday, April 29, 2010 6:53 PM >>> To: "Gabriel Zackari" <gabriel.zackari@gmail.com> >>> Cc: <www-style@w3.org> >>> Subject: Re: Suggestion: A new text attribute to scale the size of >>> text to follow the size of a box >>> >>>> I think I would call this 'font-size: auto', where 'auto' meant >>>> that largest size possible without breaking (except where >>>> explicitly broken by, say, a <BR> or by 'white-space: pre') and >>>> without overflowing. Most of the time this would be a horizontal >>>> constraint, but a fixed height could also constrain it. It would >>>> also mean there was no difference between 'whte-space:normal' and >>>> 'white-space:nowrap', and 'text-overflow' would never kick in. >>>> >>>> >>>> Of course, 'font-size' is inheritable, so the author would need >>>> to take care with spans and such inside such a line, and set >>>> those children to 'font-size:1em' or 'font-size:100%'. >>>> >>>> On Apr 29, 2010, at 7:14 AM, Gabriel Zackari wrote: >>>> >>>>> I´m not sure this is the right place to suggest new CSS attr >>>>> ibutes if not please excuse me: >>>>> >>>>> What I would like is an attribute that makes a text allways fill >>>>> keep the same size as that of the box its in. >>>>> >>>>> Today its possible to have an image stretch with the size of a >>>>> box but not text that is place in the box, its allways static. >>>>> However text is rendered from vector so >>>>> it should be possible to make its follow the size of another >>>>> object. >>>>> >>>>> So if the size of the box is made smaller the text size would >>>>> automatically adjust and would not overflow and having to be >>>>> hidden. >>>>> And if the size of the box is bigger the size of the text will >>>>> fit and you would not have to go back and perhaps create a new >>>>> css style to adjust the size of the text. >>>>> >>>>> Example of use: >>>>> >>>>> Very useful when making buttons of different sizes. >>>>> The text would allways keep to the size of the button. >>>>> >>>>> Regards Gabriel >>>>> >>>>> >>>>> >>>>> >>>> >>
Received on Thursday, 29 April 2010 19:46:05 UTC