The use case for text-align: opposite seems to be dealing with RTL languages. Given the availability of text-align: start and text-align: end, I don't understand the need for opposite. On Thu, Oct 23, 2014 at 5:10 PM, L. David Baron <dbaron@dbaron.org> wrote: > On Tuesday 2014-10-21 17:39 +0200, Jean-Baptiste Cordina wrote: > > Just added some details because I think i forget to define the way it has > > to work. > > > > > > my-component { > > text-align : left; > > } > > > > [dir=rtl] my-component { > > text-align: right; > > } > > > > my-component .read-more { > > text-align : opposite; // if parent has text-align: left then opposite = > > right else if parent has text-align: right the opposite = left > > } > > Except for this statement: > > > opposite has no effect in cas of a parent with a text-align: center or > > justify value. > > what you want could be done using > http://dev.w3.org/csswg/css-values/#toggle-notation (although that's > not implemented yet, I don't think). > > The question is if it's an important enough use case to deserve a > separate value. > > -David > > -- > 𝄞 L. David Baron http://dbaron.org/ 𝄂 > 𝄢 Mozilla https://www.mozilla.org/ 𝄂 > Before I built a wall I'd ask to know > What I was walling in or walling out, > And to whom I was like to give offense. > - Robert Frost, Mending Wall (1914) >Received on Monday, 3 November 2014 18:47:46 UTC
This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:48 UTC