- From: Aharon (Vladimir) Lanin <aharon@google.com>
- Date: Sat, 11 May 2013 22:13:43 -0700
- To: fantasai <fantasai.lists@inkedblade.net>
- Cc: W3C style mailing list <www-style@w3.org>
- Message-ID: <CA+FsOYbxf6cBCzZKpm5cxjTORqa+8BUe9Go5zwLLMPwfrzmCtA@mail.gmail.com>
Note really; I actually find the old wording clearer. And, given the spec that Kenny quoted, I am no longer sure that a clarification is really needed. That is, given that 'match-parent' is explicitly stated to have a computed value of 'left' or 'right' when it inherits 'start' or 'end', then that an element inheriting from that element with match-parent will also have a computed value of 'left' or 'right' follows directly from the spec as quoted by Kenny ("if the property is inherited and the element is not the root of the document tree, use the computed value of the parent element"). On Fri, May 10, 2013 at 6:54 PM, fantasai <fantasai.lists@inkedblade.net>wrote: > On 11/27/2012 01:43 AM, Aharon (Vladimir) Lanin wrote: > >> http://dev.w3.org/csswg/css3-**text/#text-align<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 Sunday, 12 May 2013 05:14:30 UTC