W3C home > Mailing lists > Public > www-style@w3.org > March 2015

Suggested Solution for more RTL\LTR Agnostic Web

From: Saad Alothman <me@saadalothman.com>
Date: Wed, 11 Mar 2015 16:14:40 +0300
Message-ID: <CAPqVnhtDohtPK1PQJB9fDWzBKguUMpoTM=7HXiVFyQFH4XOpFg@mail.gmail.com>
To: www-style@w3.org

I work a lot on multi-lingual sites, and it happens to be that most of them
contains both LTR and RTL Languages.

Everytime we have to create one style (the main stylesheet), and if the
Language is RTL, we include another stylsheet to almost flip all of what is
inside the main stylesheet to the oposite direction horizontally, if it is
a margin-left we make it margin-right,float:left becomes float:right , and
so on.

So we created a css class to do the floating that is "pull-start" and
"pull-end", this haven't solved the issue completly, but now we override
this class only instead of placing it in all classes.

if the css attributes could have properties like : margin-start:,
margin-end,Float:start,float:end, the same goes for all properties that
have left and right, including positioning of the element , so adding to
top,left,bottom, and right, the suggestion is to have start and end.

depending on the direction of the document, the browser should interpret
the start and end accordingly.


Saad Alothman
Received on Wednesday, 11 March 2015 17:00:36 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:52 UTC