- From: Windy Road <tom@windyroad.org>
- Date: Mon, 11 Jun 2007 22:17:34 +1000
- To: www-style@w3.org
- Message-ID: <746049190706110517p3e4a4855jc08f9205236c5e7f@mail.gmail.com>
Hi, I mentioned the proposal on the webkit-dev mailing list and there was similar confusion about meaning/purpose of "font-size: auto". Instead, what do you think about adding a new property "line-length". "line-length" could be used to specify the number of characters to display for each line of the element, scaling the font to fit the line length within the padded width of the element. For example. some-element { line-length: 25em; width: 500px; padding: 0px; } This would result in a font-size of 20px. some-element { line-length: 50em; width: 500px; padding: 0px; } would result in a font-size of 10px; some-element { line-length: 25em; width: 100%; padding: 0px; } would result in a font-size that adjusts automatically according to the width of the element. In cases where both the font-size and line-length is specified, the font-size would be ignored. Thoughts? Cheers, -- Tom Howard http://windyroad.org
Received on Monday, 11 June 2007 12:17:41 UTC