Re: [indie-ui-context] boolean media queries should probably use 1/0 values, not on/off

On Wed, Dec 11, 2013 at 12:40 PM, James Craig <jcraig@apple.com> wrote:
> It was also recommended to switch the false value to “none” instead of “off” and that anything else was “truthy” which would allow the shorthand syntax.
>
> Is there a preference for 0 over none? As Tab mentioned, boolean media queries have a way of not remaining boolean.

Yes, please avoid using 0/1 for booleans; instead use none/anything
else.  (grid) is the only boolean MQ still using 0/1 because we
couldn't think of better words, and also don't really care about it.

~TJ

Received on Wednesday, 11 December 2013 03:13:06 UTC