W3C home > Mailing lists > Public > www-style@w3.org > February 2015

Re: [CSS21][css-text] percentages on text-indent

From: fantasai <fantasai.lists@inkedblade.net>
Date: Tue, 10 Feb 2015 20:29:51 -0500
Message-ID: <54DAB08F.3030100@inkedblade.net>
To: "L. David Baron" <dbaron@dbaron.org>, www-style@w3.org, Tantek Çelik <tantek@cs.stanford.edu>
On 02/10/2015 07:37 PM, L. David Baron wrote:
>  From a side discussion with Greg Whitworth at the face-to-face
> meeting (triggered by Greg pointing out
> https://twitter.com/HugoGiraudel/status/565093151904645120 ):
>
> Looking at either:
>    http://dev.w3.org/csswg/css2/text.html#indentation-prop
>    http://dev.w3.org/csswg/css-text/#text-indent-property
> it's not clear what percentages on text-indent mean.
>
> It says that percentages refer to the width of the containing block:
> but is that the containing block of the line with the text, or the
> containing block of the block to which text-indent applies (i.e.,
> the first block's containing block)?

Well, the 'Applies-to' line says it applies to block containers,
and a block container's containing block is the containing of the
block to which text-indent has been applied.

> Apparently browsers disagree on this.  Making the spec's wording
> more precise seems likely to help.

Spec's wording is precise. Whether it's what we want might be a
different question.

This issue was raised a long time ago, apparently:
   https://bugzilla.mozilla.org/show_bug.cgi?id=45631#c14
   https://lists.w3.org/Archives/Member/w3c-css-wg/2004JanMar/0049.html

And the result was no change, apparently?
Tantek?

~fantasai
Received on Wednesday, 11 February 2015 01:30:27 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:52:01 UTC