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: Sylvain Galineau <sylvaing@microsoft.com>
Date: Fri, 28 May 2010 16:33:02 +0000
To: Håkon Wium Lie <howcome@opera.com>
CC: "www-style@w3.org" <www-style@w3.org>
Message-ID: <045A765940533D4CA4933A4A7E32597E21495754@TK5EX14MBXC120.redmond.corp.microsoft.com>

> -----Original Message-----
> From: Håkon Wium Lie [mailto:howcome@opera.com]
> Sent: Friday, May 28, 2010 7:27 AM

> There are only physical values in my examples. This code:
>   p { margin: 10px 20px }
>   p:lang(ja) {
>     writing-mode: tb-rl;
>     margin: 20px 10px;
>   }
> illustrates how you can achieve automatic switching of values (as in,
> "I'd like 10px margins before and after, and 20px margins at the start
> and end") without introducing new properties/values.

I'm still not sure I understand. How margin values are interpreted is already 
defined. The 20px part applies to top/bottom while the 10px part applies
to right and left. So if you rotate made top/right/bottom/left for the margin
shorthand based on writing-mode, what happens to the longhands e.g. margin-left ?
If those stay physical then the longhand version of the shorthand will result
in a completely different result and I'd expect that to be jarring to the author.

> So, I'm saying that the problem has a solution today.

Well, yes. IE does this already it can't be bad, right ?
Received on Friday, 28 May 2010 16:33:39 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:07:46 UTC