W3C home > Mailing lists > Public > www-style@w3.org > October 2012

@import and @supports

From: Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
Date: Thu, 11 Oct 2012 08:39:03 +0200
Message-ID: <CAOxFTcys3rWyrmArnUwEi0VzfO6shO95EjfoJSok-T433WhoLA@mail.gmail.com>
To: WWW Style <www-style@w3.org>
Hello all,

I'm looking for a way to import a CSS only if the browser supports
some feature. However, apparently @import and @supports don't mix: I
cannot use @import within a @supports block because "@import must
precede other rules", and @import doesn't allow a @supports-style

Either of these two constraints should be relaxed, either by allowing
@import inside @supports or by adding @supports-style queries to

(For what it's worth, the LINK syntax to reference CSS files from HTML
should also be extended for @supports-like queries, but I believe this
is off-topic in this mailing list.)

Giuseppe "Oblomov" Bilotta
Received on Thursday, 11 October 2012 06:39:50 UTC

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