Re: [csswg-drafts] [css-flexbox][css-grid] Choose a single option for resolving padding and margin percent values of grid/flex items

On 20 December 2017 at 20:14, jamesej <notifications@github.com> wrote:

> If you have a layout which varies in height but not width (e.g. to
> accommodate more or less content on different pages) then proportional
> spacing being relative to width makes sense as the width will remain
> constant and predictable as the height varies, so the spacing will not vary
> with how much content the layout contains. Generally you want spacing
> around an element to be the same in px horizontally and vertically or it
> looks odd.
>
> However, if you happened to want to have a layout which extended
> *vertically* to contain more content, you would actually want an
> asymettrical proportionality based on *height*. This suggests the
> addition of a CSS context property e.g. layout-base: { vertical |
> horizontal | independent } which could apply to how this works on all
> children with a default of horizontal.
>
>
>
​I am unable to see any logic in that second para.
If I want to 'spread out' vertically, why would that imply I also want the
same spreading
on the horizontal axis?

regards Dave​






-- 
Dave Pawson
XSLT XSL-FO FAQ.
Docbook FAQ.
http://www.dpawson.co.uk


-- 
GitHub Notification of comment by dpawson
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2085#issuecomment-353283520 using your GitHub account

Received on Thursday, 21 December 2017 07:58:49 UTC