Re: [mediaqueries] User-defined Media Queries?

On Fri, May 31, 2013 at 11:53 AM, Chris Eppstein <chris@eppsteins.net> wrote:
> I don't think we need to move away from the property/value pair syntax that
> is already in use:
>
> @media (name: huge) or (name: medium) { ... }

This wouldn't be - I was assuming that a string would be the media
query name, and you can assign document.css.media.foo any string value
and test for it in the media query, like:

<script>
document.css.media.foo = "bar";
</script>
<style>
@media ("foo": "bar") { ... }
</style>

But a bare string, just like a bare media query, would match if the
value was true only.

~TJ

Received on Friday, 31 May 2013 19:27:16 UTC