W3C home > Mailing lists > Public > www-style@w3.org > April 2015

[css-cascade][mediaqueries] Allow custom mq before @import?

From: Glen Huang <curvedmark@gmail.com>
Date: Thu, 2 Apr 2015 13:21:14 +0800
Message-Id: <0F06BAAF-2C54-4EDB-BA3D-E7955253AA72@gmail.com>
To: www-style list <www-style@w3.org>
Currently, the CSS Cascading and Inheritance Level 4 spec says the only rule allowed before @import is @charset. I wonder if custom mq could be allowed too?

```css
@custom-media --narrow-window (max-width: 30em);
@import “style.css” (--narrow-window);
```
Received on Thursday, 2 April 2015 05:21:48 UTC

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