- From: Kang-Hao (Kenny) Lu <kanghaol@oupeng.com>
- Date: Wed, 28 Nov 2012 16:13:23 +0800
- To: "Aharon (Vladimir) Lanin" <aharon@google.com>
- CC: W3C style mailing list <www-style@w3.org>
(12/11/27 17:43), 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'd note that CSS 2.1 is pretty clear about this: # 6.1.1 Specified values # # User agents must first assign a specified value to each property # based on the following mechanisms (in order of precedence): # # 1. If the cascade results in a value, use it. # 2. Otherwise, if the property is inherited and the element is not # the root of the document tree, use the computed value of the # parent element. # 3. ... It's probably worth adding a note, however. Cheers, Kenny -- Web Specialist, Oupeng Browser, Beijing Try Oupeng: http://www.oupeng.com/
Received on Wednesday, 28 November 2012 08:13:59 UTC