W3C home > Mailing lists > Public > www-style@w3.org > May 2010

Re: [css3-text-layout] New editor's draft - margin-before/after/start/end etc.

From: Brad Kemper <brad.kemper@gmail.com>
Date: Wed, 26 May 2010 07:24:25 -0700
Cc: Sylvain Galineau <sylvaing@microsoft.com>, www-style@w3.org
Message-Id: <CB9BA322-730E-447C-94D8-6578E2350BF6@gmail.com>
To: Håkon Wium Lie <howcome@opera.com>

On May 26, 2010, at 4:51 AM, Håkon Wium Lie wrote:

> Also sprach Sylvain Galineau:
> 
>>>  p {
>>>    margin: 10px 20px;
>>>  }
>>> 
>>>  p:lang(ja) {
>>>    writing-mode: tb-rl;
>>>    margin: 20px 10px;
>>>  }
>>> 
>> 
>> OK, what does margin-left mean here. Physical left or logical left for tb-rl ?
> 
> Physical. So, in these examples there would be a 10px margin "before"
> and "after" the element, and a 20px margin at the "start" and "end".
> 
> Note that there is no mentioning of "left", "right, "before" or
> "after" in the code. As such, the language is neutral.
 
Yes, but surely you are not suggesting that an equivalent rule with with 'left', 'right', etc. that computes to the same thing couldn't also be written? E.g.:

 p {
   margin-top: 10px;
   margin-bottom: 10px;
   margin-left: 20px;
   margin-right: 20px;
 }

 p:lang(ja) {
   writing-mode: tb-rl;
   margin-top: 20px;
   margin-bottom: 20px;
   margin-left: 10px;
   margin-right: 10px;
 }
Received on Wednesday, 26 May 2010 14:25:03 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:27 GMT