Re: [csswg-drafts] [css-sizing] Rethinking how to prevent overflow in a container with an explicit aspect ratio (#3268)

@jensimmons thanks for the 'lh' unit, I wasn't aware of. It seems the above "block-step-size" property will solve the problem, looking forward to it. Another example:

I have line-height of 24 and a 40px tall image. I need that image to automatically get bottom padding of 8px to compensate for the discrepancy between real height and multiplied line-height:

`padding-bottom: round-up-to-line-height; // not hardcoded 8px, because it varies`

Regards


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

Received on Sunday, 6 January 2019 21:07:27 UTC