W3C home > Mailing lists > Public > www-style@w3.org > August 2003

[css3-text] Hanging Indent

From: Alexander Savenkov <w3@hotbox.ru>
Date: Fri, 1 Aug 2003 18:14:24 +0400
Message-ID: <146240744.20030801181424@hotbox.ru>
To: www-style@w3.org

Hello www-style,

What about the hanging indent available in the public CSS3 Text CR?

It looks like a bug in the spec as I don't see the rationale to
introduce the feature. I heard some people were applying for it but
I'd rather prefer if you provided an example of how to make hanging
indent with, say, 'margin-left' and a negative value on the
'text-indent'.

First of all, the new syntax is backwards-incompatible. Specifying
'text-indent: 3em hanging' in current UAs does nothing, you get no
indent at all. That's bad.

Secondly, if compatibility is unimportant here, the property seems to
be unfinished. Hanging indents are just one type of indents. Let's
have a look at the following:

Usual indent:
|   The amount of indentation is given by the  length  or  percentage|
|value. Percentages are relative to the containing block, even in the|
|presence of floats.                                                 |

Hanging indent:
|The amount of indentation is  given  by  the  length  or  percentage|
|    value. Percentages are relative to the containing block, even in|
|    the presence of floats.                                         |

Another indent type:
|The amount of indentation is given by the length or                 |
|percentage value. Percentages are relative  to  the                 |
|containing block, even in the presence of floats.                   |

Yet another indent type:
|                 The amount of indentation is given by the length or|
|                 percentage value. Percentages are relative  to  the|
|                 containing block, even in the presence of floats.  |

Yet another indent type:
|The amount of indentation is  given  by  the  length  or  percentage|
|value. Percentages are relative to  the  containing                 |
|block,   even   in   the   presence    of   floats.                 |

...Or any other combination of these. How are these different from
'hanging', and why do you discriminate against them?

Hence, I suggest to drop the 'hanging' value in favor of the
'text-indent'+'margin' combination.

Regards,
Alex.
-- 
  Alexander "Croll" Savenkov                  http://www.thecroll.com/
  w3@hotbox.ru                                     http://croll.da.ru/
Received on Friday, 1 August 2003 10:19:31 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:23 GMT