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

> From: Håkon Wium Lie [mailto:howcome@opera.com]
> Sent: Wednesday, May 26, 2010 4:52 AM
> To: Sylvain Galineau
> Cc: www-style@w3.org
> Subject: RE: [css3-text-layout] New editor's draft - margin-
> before/after/start/end etc.
> 
> 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.

According to CSS2.1 : "If there are two values, the top and bottom margins
are set to the first value and the right and left margins are set to the second."

So you're effectively saying that margin: 20px 10px would result in the application
of logical margins based on the writing-mode and/or :lang() but if the author writes:

p:lang(ja) {
      writing-mode: tb-rl;
	margin-top:20px;
	margin-bottom:20px;
	margin-left: 10px;
	margin-right: 10px;
}

...which per CSS2.1 is equivalent, then the margin values would be set physically instead ?
 

Received on Friday, 28 May 2010 02:35:11 UTC