W3C home > Mailing lists > Public > www-style@w3.org > November 2013

Re: [css-text] 'text-indent' comments

From: Koji Ishii <kojiishi@gluesoft.co.jp>
Date: Tue, 12 Nov 2013 01:52:30 -0500
To: "Kang-Hao (Kenny) Lu" <kanghaol@opera.com>, WWW Style <www-style@w3.org>
Message-ID: <CEA7EF38.4CBD7%kojiishi@gluesoft.co.jp>
On 11/11/13 12:35 PM, "Kang-Hao (Kenny) Lu" <kanghaol@opera.com> wrote:

>I think the keyword value 'each-line' is misleading but I agree
>'after-break' as proposed by Håkon[1] is not converying the right
>intent either. What about 'each-paragraph'?

Ok, I'll take this as an open issue for the WG to discuss.

>Fundamentally, I am not sure what use case this value is trying to
>solve, and why isn't it solved by 'padding'.

Can you demonstrate how 'padding' can do the same thing as 'each-line'?
The two look quite different to me.

>(The rest is probably editorial but let's give the spec some
>theoritcal rigor :)
>  # The indent is treated as a margin applied to the start edge of
>  # the line box.
>This is somewhat ambiguous because it's not clear if the width of
>the line box is calculated as either
>  * A block-level box, where margin decreases the width.
>  * A inine box, where the width is a constant.

I'm not super experts here, tell me if you think I don't understand
correctly and I'll ask someone else to jump in, but as far as I
understand, the spec says "line box", not "box", and a line box is inline.
Am I mistaken?

>I also think it would nice to specify that the 'width' of a line box
>is determined by:
>  * First, lay out floats and do the line box shortening.
>  * Second, apply 'text-indent' for further shortening.
>  * Thrid, push line box down and jump to first if no content.
>Or otherwise, any ordering of the above seems to be allowed by the
>current specs.

I don't think it's appropriate for the 'text-indent' property to describe
how line boxes are calculated. It's in CSS 2.1, and in future, it should
be CSS Line Box to update the description if needed.

As far as I quickly checked, CSS 2.1 Visual formatting model[1] has text:
# The width of a line box is determined by a containing block
# and the presence of floats.
And 'text-indent' adds margin to the line box, so it looks to me that this
is pretty clear. No?

[1] http://www.w3.org/TR/CSS2/visuren.html#inline-boxes

Received on Tuesday, 12 November 2013 06:52:36 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:34 UTC