W3C home > Mailing lists > Public > www-style@w3.org > March 2014

Re: [css-line-grid] box-snap or block-snap

From: MURAKAMI Shinyu <murakami@antenna.co.jp>
Date: Wed, 19 Mar 2014 12:06:42 +0900
To: Alan Stearns <stearns@adobe.com>
Cc: "www-style@w3.org" <www-style@w3.org>
Message-Id: <20140319120641.B1B3.C598BCD7@antenna.co.jp>
Alan Stearns <stearns@adobe.com> wrote on 2014/03/19 9:30:17
> The current line-grid module has a fairly complex box-snap property. I’m
> assuming it can be simplified substantially for the first level of the
> module.
> 
> The most basic cases are to take the block and snap the top or bottom to a
> grid line, or center the whole block within two grid lines. This can be
> done with:
> 
> block-snap: before | after | center | none
> 

We (Antenna House) implemented the line grid feature and the block-snap
property (with name '-ah-baseline-block-snap'). See:
http://antennahouse.com/CSSInfo/extension.html#axf.baseline-block-snap

Value: none | [auto | before | after | center] || [border-box | margin-box]

'auto' is same as 'before' on top of column, same as 'after' at bottom 
of column, otherwise 'center'.

[border-box | margin-box] specifies the edge used to align the block on 
the line grid. 'border-box' is the default.


While we tried to implement the css-line-grid with simplified syntax 
and feature, Håkon also wrote similar proposal in his CSS Books draft.
Håkon and I had a discusion about this and now his proposal and what we 
implemented are similar.
I'd like to support css-line-grid when the spec will be finished.


Regards,

Shinyu Murakami
Antenna House
Received on Wednesday, 19 March 2014 03:07:17 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:41 UTC