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

Re: [css-text] clarification may be needed for text-align:match-parent

From: fantasai <fantasai.lists@inkedblade.net>
Date: Fri, 10 May 2013 18:54:12 -0700
Message-ID: <518DA4C4.9040804@inkedblade.net>
To: www-style@w3.org
On 11/27/2012 01:43 AM, Aharon (Vladimir) Lanin wrote:
> http://dev.w3.org/csswg/css3-text/#text-align currently defines text-align:match-parent as follows:
>
>     This value behaves the same as ‘inherit’ except that an inherited ‘start’ or ‘end’ keyword is calculated against its
>     parent's ‘direction’ value and results in a computed value of either ‘left’ or ‘right’.
>
> There is also a note on text-align's computed value generally:
>
>     Computed value:specified value, except for ‘match-parent’ (see prose)
>
> Simon Montagu and I think that the definition above may need to be clarified to the effect that the text-align value inherited
> /from/ an element with text-align:match-parent is its computed text-align value, and thus is never 'match-parent' (or 'start'
> or 'end').

I've updated the spec to say

  | This value behaves the same as 'inherit' (computes to its parent's computed value)
  | except that a 'start' or 'end' keyword is interpreted against its parent's
  | 'direction' value and results in a computed value of either 'left' or 'right'.

Is this clear enough?

~fantasai
Received on Saturday, 11 May 2013 01:54:40 UTC

This archive was generated by hypermail 2.3.1 : Saturday, 11 May 2013 01:54:41 UTC