Re: [CSS21] Another ambiguity in the definition of "containing block"

On 07/14/2010 02:07 AM, fantasai wrote:
>
> http://www.w3.org/TR/CSS21/text.html#indentation-prop
> # This property specifies the indentation of the first line of text
> # in a block.
>
> <div style="text-indent: 10%">
> Indented
> <p></p>
> Indented?
> </div>

This is filed as CSS2.1 Issue 194:
   http://wiki.csswg.org/spec/css2.1#issue-194

Proposed text:

Add to section 16.1 Indentation:

   | text-indent only affects a line if it is the `first formatted line`_
   | of an element. For example, the first line of an anonymous block box
   | is only affected if it is the first child of its parent element.

   _`first formatted line`: http://www.w3.org/TR/CSS21/selector.html#first-line-pseudo

~fantasai

Received on Friday, 13 August 2010 00:34:57 UTC