W3C home > Mailing lists > Public > www-style@w3.org > September 2012

[css, i18n] margin-start, etc.

From: Andrew Fedoniouk <news@terrainformatica.com>
Date: Tue, 25 Sep 2012 20:19:27 -0700
Message-ID: <CALRQH7-4EbdRjQq8KOxE76p8bhJH9mOMDn_6W_jk6dN5ht+3Qw@mail.gmail.com>
To: www-style@w3.org
As far as I understand properties like margin-start, margin-before,
etc. did not go through for many good reasons.
What about something like below then?

New property 'map' that accepts values:
  :  ( mirror-x | mirror-y | rotate-cw | ...)  || margin || padding ||
border || background-position || background-image || all || etc.

So if we have this:
  div { margin: 10px 100px 10px 5px; }

then by defining

div:dir(rtl) { map: mirror-x margin; }

margins will be set to these values:
top/bottom: 10px, left:100px; right:5px;

Did we discuss similar approach already?

-- 
Andrew Fedoniouk.

http://terrainformatica.com
Received on Wednesday, 26 September 2012 03:19:55 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:21:00 GMT