W3C home > Mailing lists > Public > www-style@w3.org > May 2013

Re: [mediaqueries] User-defined Media Queries?

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Fri, 31 May 2013 12:26:28 -0700
Message-ID: <CAAWBYDBh+NdAzPdPgDQtdL1vPztXQ_V=Hx0GmyTGTkF3aOtOFQ@mail.gmail.com>
To: Chris Eppstein <chris@eppsteins.net>
Cc: Yehuda Katz <wycats@gmail.com>, www-style list <www-style@w3.org>
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

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:30 UTC