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: David Hyatt <hyatt@apple.com>
Date: Wed, 26 May 2010 14:13:54 -0500
Message-id: <7639A163-FC7D-4FD2-A98F-91586406EA5D@apple.com>
To: www-style list <www-style@w3.org>

On May 26, 2010, at 9:32 AM, MURAKAMI Shinyu wrote:

> Mozilla and WebKit already implemented *-start and *-end properties:
> http://help.dottoro.com/lcqbjiaw.php
> https://developer.mozilla.org/En/CSS:-moz-margin-start
> http://developer.apple.com/safari/library/documentation/AppleApplications/Reference/SafariCSSRef/Articles/StandardCSSProperties.html#//apple_ref/doc/uid/TP30001266--webkit-margin-start

I can't speak for Mozilla, but in WebKit our *-start and *-end properties are faked.  When applied to an element they resolve immediately to left or right (depending on the direction).  We don't carry around a real notion (possibly inherited) that the start side should be used. In other words, if you have a RTL block inside a LTR block and the LTR block has margin-start:20px on it, and the RTL block has margin: inherit on it, you will get a left margin of 20px on the RTL block.

Received on Wednesday, 26 May 2010 19:14:28 UTC

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