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

Re: [mediaqueries] User-defined Media Queries?

From: Kenneth Rohde Christiansen <kenneth.christiansen@gmail.com>
Date: Sat, 1 Jun 2013 10:24:53 +0200
Message-ID: <CAEC208teMHcJAQ4uT9SBgszhq68QUqT8DG1-ht6hMq17Dk_yQQ@mail.gmail.com>
To: Chris Eppstein <chris@eppsteins.net>
Cc: "Tab Atkins Jr." <jackalmage@gmail.com>, Yehuda Katz <wycats@gmail.com>, www-style list <www-style@w3.org>
I agree. Do not abuse media types, use media features instead.


On Fri, May 31, 2013 at 8:53 PM, 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) { ... }
>
> -Chris
>
>
> On Fri, May 31, 2013 at 11:21 AM, Tab Atkins Jr. <jackalmage@gmail.com>wrote:
>
>> On Fri, May 31, 2013 at 11:17 AM, Yehuda Katz <wycats@gmail.com> wrote:
>> > What about just:
>> >
>> >> <html>
>> >>   <script>
>> >>     if (window.outerWidth >= 600)
>> >>       document.css.media.huge = true;
>> >>     }
>> >>   </script>
>> >>   <style>
>> >>     @media ("huge") {
>> >
>> >>       .facet_sidebar {
>> >>         display: none;
>> >>       }
>> >>     }
>> >>   </style>
>> >> </html>
>>
>> Hmm, using bare strings as the media query name is interesting.  It's
>> definitely unambiguous and non-colliding, and means that authors can
>> give whatever they want as the name without having to worry about
>> escaping.  Plus, nice and short.  +1.
>>
>> ~TJ
>>
>>
>


-- 
Kenneth Rohde Christiansen
Senior Engineer, WebKit, Qt, EFL
Phone  +45 4294 9458 / E-mail kenneth at webkit.org

﹆﹆﹆
Received on Saturday, 1 June 2013 08:25:21 UTC

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