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

Re: [css3-text-layout] Towards better support of CJK user requirements (was New editor's draft - margin-before/after/start/end etc)

From: David Hyatt <hyatt@apple.com>
Date: Tue, 01 Jun 2010 15:24:21 -0500
Cc: "L. David Baron" <dbaron@dbaron.org>, "MURATA Makoto (FAMILY Given)" <eb2m-mrt@asahi-net.or.jp>, Hakon Wium Lie <howcome@opera.com>, www-style@w3.org, Jaeho Lee <jaeho@uos.ac.kr>, Ning Li <ningli@public2.bta.net.cn>, komachi@y-adagio.com, "KOBAYASHI Tatsuo(FAMILY Given)" <tlk@kobysh.com>, Seiichi Kato <seiichik@microsoft.com>, Masanori Kusunoki <Masanori.Kusunoki@microsoft.com>, yjkweon@keris.or.kr, Yong-Sang Cho <zzosang@gmail.com>, Sam Gyun Oh <samoh21@gmail.com>, sblim@sookmyung.ac.kr, speeno@haansoft.com, jungkwon@haansoft.com, sadian@ksa.or.kr, hykim@incube.co.kr, shik@kats.go.kr, mike@w3.org, ishida@w3.org, bert@w3.org, masao@w3.org, phobos chang <phobos.chang@gmail.com>, selena <selena@cmex.org.tw>
Message-id: <335C7318-AEFE-42D1-A4D5-3360ABB7E138@apple.com>
To: MURAKAMI Shinyu <murakami@antenna.co.jp>
On Jun 1, 2010, at 3:04 PM, MURAKAMI Shinyu wrote:
>> I tested your example with WebKit (with s/Moz/webkit/), the result is:
> 32px
> 48px
> -webkit-margin-start: 2em; margin-left: 3em; 
> 48px
> It seems correct. I'd like to standardize this behavior.

Standardize what behavior?  I don't believe there's any rule right now for serialization order of the properties in a declaration.  In David Baron's example, the style declaration has margin-left set, then margin-start set, and then finally margin-left is set again.  Some implementations may do an in-place mutation of the existing margin-left, and then an in-order serialization would put margin-left before margin-start.  Other implementations like WebKit always just remove the old property and a append a new version on to the end, resulting in a serialization order that puts margin-start before margin-left.

In other words, the serialization order you're seeing in that example is implementation-dependent.

Received on Tuesday, 1 June 2010 20:25:02 UTC

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