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

Re: media query definitions

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Sun, 23 Jun 2013 20:13:10 -0700
Message-ID: <CAAWBYDBChWAozVO+iHvAG2dLaQMg3EBVT_9qH2WmaKLD6vG5cg@mail.gmail.com>
To: Behrang Saeedzadeh <behrangsa@gmail.com>
Cc: David Newton <david@davidnewton.ca>, W3C CSS Mailing List <www-style@w3.org>
On Sun, Jun 23, 2013 at 6:17 AM, Behrang Saeedzadeh <behrangsa@gmail.com> wrote:
> @Tab, do you by any chance have a reference to the recent thread in which
> this was discussed?

Thread starts here:

This was about things that were purely defined in JS, rather than
shorthands for existing complex media queries, but my original
suggestion can be expanded to fit both cases.  For example, we can
allow MediaList objects as a valid value for a custom MQ, like:

document.css.customMedia.set("myQuery", new MediaList("only screen and
(max-width: 480px), only screen and (max-device-width: 480px)"));

@media ("myQuery") {...}

Received on Monday, 24 June 2013 03:13:56 UTC

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