- From: Jean-Baptiste Cordina <jbcordina@gmail.com>
- Date: Tue, 21 Oct 2014 17:39:24 +0200
- To: www-style@w3.org
- Message-ID: <CAEeo9PatF_meFE=N-oKqQKv+q+AL5=EG2Ne4neq+5bKBMCMkjw@mail.gmail.com>
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 } opposite has no effect in cas of a parent with a text-align: center or justify value. jbcordina 2014-10-21 10:34 GMT+02:00 Jean-Baptiste Cordina <jbcordina@gmail.com>: > Hi, > > I'm working on a website with multiples languages. And it's a huge thing > to redefine text-alignments for some components. So I wonder if it is > possible to add a new value to the text-align property. > > For example : > > text-align : opposite; > > > my-component { > text-align : left; > } > > [dir=rtl] my-component { > text-align: right; > } > > my-component .read-more { > text-align : opposite; // depends on the uppervalue, but I don't have to > rewrite this rule. > } > > Thx. > > Jean-Baptiste Cordina > > >
Received on Thursday, 23 October 2014 20:50:06 UTC