W3C home > Mailing lists > Public > www-style@w3.org > March 2011

RE: [CSS21] [css3-text] [css3-tables] text-indent percentages

From: Arron Eicholz <Arron.Eicholz@microsoft.com>
Date: Wed, 16 Mar 2011 18:13:03 +0000
To: fantasai <fantasai.lists@inkedblade.net>
CC: "www-style@w3.org" <www-style@w3.org>
Message-ID: <07349ECFC3608F48BC3B10459913E70B12D121F0@TK5EX14MBXC132.redmond.corp.microsoft.com>
Tuesday, September 14, 2010 1:20 PM fantasai wrote:
> The CSS2.1 spec says that text-indent percentages are relative to the
> containing block width, not the block element's width. I guess the goal was to
> allow use of margins + negative text indent for hanging indents, but this has
> some rather...
> odd implications for inline blocks and table cells.
> 
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> <title>Blank
> page</title> <style>
>    body {
>      border: dotted thin silver;
>    }
>    table {
>      border-spacing: 0;
>    }
>    .test {  width: 100px; text-indent: 50%; border: solid thin gray} </style>
> <table>
>    <tr> <td class="test">T
> </table>
> <p><span class="test" style="display: inline-block">T</span>
> 
> Given that padding behaves the same way, though, perhaps it's best to
> define the containing block of a table cell by splitting the table cell into two
> boxes at the padding edge and having the outer one be the containing block
> for the inner one.
> 
> And I'm wondering whether CSS3, which has explicit support for hanging
> indents, should allow for using percentages of the element's width rather
> than that of its containing block.
> 

Thank you for your feedback. The CSSWG resolved not to make these changes to the CSS 2.1 specification[1].

Please respond before 18 March, 2011 if you do not accept the current resolution.

[1] http://w3.org/TR/CSS
Received on Wednesday, 16 March 2011 18:13:38 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:38 GMT