Proposal : Adding an "opposite" value to "text-align" property

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