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

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