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

Re: [mediaqueries] User-defined Media Queries?

From: Kenneth Rohde Christiansen <kenneth.r.christiansen@intel.com>
Date: Sat, 1 Jun 2013 11:54:54 +0200
Message-ID: <CAEC208un+mkiiqnoLbWmBf9VVcu5S2a7QVR9tTwKLcNOZA52CA@mail.gmail.com>
To: François REMY <francois.remy.dev@outlook.com>
Cc: Chris Eppstein <chris@eppsteins.net>, "Tab Atkins Jr." <jackalmage@gmail.com>, Yehuda Katz <wycats@gmail.com>, www-style list <www-style@w3.org>
So how are we going to make sure that we don't conflict with future media
features? By having them be strings?

I was wondering because it would be nice to be able to polyfill new media
query features.

Kenneth


On Sat, Jun 1, 2013 at 10:46 AM, François REMY <
francois.remy.dev@outlook.com> wrote:

> > Do not abuse media types, use media features instead.
>
> Media features L3 can already be used without specified value, like the
> "color" feature. MQ L4 also add features like "script", "pointer" and
> "hover" which can be used likewise. It's even specified what it means:
>
>     @media(x) {}
>     == @media not (x:0)
>           and not (x:0px)
>           ... ... .......
>           and not (x:none) {}
>
> That doesn't mean we shouldn't accept real pair/value to be used for
> custom MQ but simple flags are already part of the existing specs, it's not
> something created for this specific use at all.
>
Received on Saturday, 1 June 2013 09:55:20 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:12 UTC