- From: L. David Baron <dbaron@dbaron.org>
- Date: Thu, 23 Oct 2014 17:10:36 -0400
- To: Jean-Baptiste Cordina <jbcordina@gmail.com>
- Cc: www-style@w3.org
Received on Thursday, 23 October 2014 21:11:03 UTC
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 Thursday, 23 October 2014 21:11:03 UTC