Re: [mediaqueries] Add "<" and ">" syntax?

On Wed, Nov 13, 2013 at 2:06 PM, Andrew Fedoniouk
<news@terrainformatica.com> wrote:
> While we are on this page what about adding support of basic math
> there - the same set of rules/syntax used by the calc():
>
> (width < 800px + 40px)
> (width < 800px * 2 + 40px)
> (width < 800px * 3 + 40px)
>
> So calc() and media queries will use same expression syntax (reduced
> in calc case). So UAs can implement this using the same expression
> evaluation code.

Just use calc():

(width < calc(800px + 40px))

~TJ

Received on Thursday, 14 November 2013 04:17:18 UTC