W3C home > Mailing lists > Public > public-css-archive@w3.org > December 2016

Re: [csswg-drafts] [css-sizing] Adding a 'size' shorthand for 'width'/'height'

From: Christoph Päper via GitHub <sysbot+gh@w3.org>
Date: Fri, 23 Dec 2016 15:24:07 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-269005008-1482506646-sysbot+gh@w3.org>
I'd say that a single length makes the box square -- assuming 1:1 is 
the default aspect ratio that the shorthand resets to: 
100px * 200px @ 1:2 --> 50px * 200px or 50px * 100px --> 100px * 
100px.

It could also keep the current AR, hence 
100px * 200px --> 50px * 200px --> 100px * 400px.

Alas, then `width` before should do, too, i.e. 
100px * 200px @ 1:2 --> 50px * 100px --> 100px * 400px. 

Otherwise, yes `box` and `box-size` would work like other shorthand 
properties. The WG would decide the most useful and compatible 
approach.

-- 
GitHub Notification of comment by Crissov
Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/820#issuecomment-269005008 
using your GitHub account
Received on Friday, 23 December 2016 15:24:09 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 19 October 2021 01:30:27 UTC