W3C home > Mailing lists > Public > www-style@w3.org > May 2013

Re: margin-inline-start and friends

From: Simon Sapin <simon.sapin@exyr.org>
Date: Thu, 09 May 2013 23:02:04 +0200
Message-ID: <518C0ECC.1000801@exyr.org>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
CC: www-style list <www-style@w3.org>
Le 09/05/2013 22:29, Tab Atkins Jr. a écrit :
> On Thu, May 9, 2013 at 6:23 AM, Simon Sapin <simon.sapin@exyr.org> wrote:
>> Le 09/05/2013 07:54, fantasai a écrit :
>>>
>>> Flow-Relative Directions
>>> ------------------------
>>>
>>>      TabAtkins: Want to see if Block-axis logical names proposal makes
>>>                 people happy
>>>
>>> <dbaron>http://lists.w3.org/Archives/Public/www-style/2013Apr/0265.html
>>>      TabAtkins: Proposal is to use 'start' and 'end' in both axes, and
>>>                 when necessary to disambiguate, use e.g. 'block-start' /
>>>                 'inline-start', or 'row-start' / 'column-start'.
>>>      TabAtkins: Would also simplify spec text referring to start/before
>>> corner
>>>      dbaron: Would existing margin-start/margin-end prefixed
>>> implementations
>>>              become margin-inline-start/ margin-inline-end?
>>>      fantasai: Yes, and that gives you very useful shorthands margin-inline
>>>                and margin-block.
>>
>>
>> Are the margin-(inline-)start and related properties specified somewhere?
>> (In WG-space or not.)
>>
>> In particular, how do they cascade or otherwise interact with
>> margin-top/right/bottom/left? Are they based on the direction/writing-mode
>> properties like layout, or on document knowledge like the :dir()
>> pseudo-class?
>
> Not specified anywhere, but supported prefixed in WebKit/Blink at least.

I’m curious how the prefixed implementation works, if that’s documented 
anywhere.


> No clue what the cascading story is.  I suspect, when we specify them,
> we'll use the established aliasing rules - the logical properties will
> be treated as shortcuts for the physical ones.  If we want them to
> cascade as an alias, we'll need to base them on document knowledge,
> but if we pursue some other strategy that lets them stick around until
> computed-value time, we can use the writing-mode properties to direct
> them.

How would that work in the latter case, would we need to have a special 
initial value that means "use the other set of properties"?

-- 
Simon Sapin
Received on Thursday, 9 May 2013 21:02:30 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 9 May 2013 21:02:30 UTC