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

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 UTC