- From: Vasilis van Gemert <vasilis@vasilis.nl>
- Date: Sun, 11 May 2014 16:55:01 +0200
- To: "Tab Atkins Jr." <jackalmage@gmail.com>
- Cc: "www-style@w3.org" <www-style@w3.org>
>> Does anyone have examples where calc() in media queries is useful? Examples >> of sites that use such breakpoints today (implemented in JS)? I usually define the max-width and min-width of the content with ‘ch’ or ‘em’, and I often use percentages for the margins around it. Combined they might define a breakpoint. Being able to use a mediaquery like @media (max-width: calc(19em + 14vw)) {} would make it much easier to create logical breakpoints. I’m sure we’ll only find more use cases now that we have more units to work with. I’d love to see this implemented everywhere. — Vasilis
Received on Sunday, 11 May 2014 14:55:29 UTC