Re: Request for adjustable font-size: line-fit



From:  Richard Fink <rfink@readableweb.com>

  
    
  
  
>>    On 8/20/2013 8:32 AM, Lea Verou wrote:
    
      
>>      What happens when the line width depends on the font-size,
>>        such as when width is specified in ems, ch or ex?
            
    

>    I would suppose that, based on the em value initially specified in
>    the style sheet, the browser would compute a line size corresponding
>    to that, and so that would become the boundaries of the box, so to
>    speak.
    
The issue Lea is referring to - I think - is that if the element has
width:30em, the em in that length refers to the font size of the element
the width property applies to. Thus if said font-size is in turn a
function of how wide the element is you have a circularity. And in CSS,
circularity is awkward.
    

  

Received on Tuesday, 20 August 2013 19:23:17 UTC