W3C home > Mailing lists > Public > www-style@w3.org > February 2016

Re: [css-snap-size] Why restrict to width and height?

From: Koji Ishii <kojiishi@gmail.com>
Date: Mon, 22 Feb 2016 23:31:58 +0900
Message-ID: <CAN9ydbVXb+5+J-ZvC49-obNw_aNeQ3TgNhaBqWW9kuVC=HSW_w@mail.gmail.com>
To: Xidorn Quan <quanxunzhen@gmail.com>
Cc: Lea Verou <lea@verou.me>, www-style list <www-style@w3.org>
Thank you for the feedback. I'm intentionally try not to design a general
feature at this point, but I'd be very happy to discuss if there were other
use cases and interests from implementers.

Currently this feature is designed to solve specific cases of vertical
rhythm use cases. While I see its demands from web developers increasing,
we're failing to provide an interoperable feature to solve that for quite a
long time. So the goal this time is a feature that suffices the most common
demands from web developers while keeping it small enough for implementers
to encourage interoperability.

I think the best way to design a general feature is to start from specific
features, and when we have enough similar features, we can design a good
general feature. This spec is still at the first stage, so the use case
discussion and implementer interests are greatly appreciated.


On Mon, Feb 22, 2016 at 5:49 PM, Xidorn Quan <quanxunzhen@gmail.com> wrote:

> On Mon, Feb 22, 2016 at 4:09 PM, Lea Verou <lea@verou.me> wrote:
> > I really like this new Snap Size draft, badly needed functionality!
> > But why restrict to width and height? Surely, these are the most common
> > cases, but it comes up with other <length> properties too. E.g. for
> vertical
> > rhythm, you might want to snap the line-height.
> It seems to me snap-height is actually for snapping line-height, and
> there is no way to snap height in the current draft.
> - Xidorn
Received on Monday, 22 February 2016 14:32:47 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:09:00 UTC