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

@import -- allow at any place in stylesheet.

From: Marat Tanalin | tanalin.com <mtanalin@yandex.ru>
Date: Mon, 16 Jan 2012 19:36:51 +0400
To: www-style@w3.org
Message-Id: <894181326728211@web80.yandex.ru>
Hello. It makes sense to allow @import at any place in CSS stylesheet.

For example, if we have:

    .rule-before-example {...}
    .example {...}
    .rule-after-example {...}

We could have same expressed with @import:

    @import "before-example.css";
    .example {...}
    @import "after-example.css";

where "after-example.css" contains:

    .rule-after-example {...}

(Real-world imported stylesheets are, of course, much larger.)

So why should @import be disallowed here for importing "after-example.css"? This just makes development less usable/flexible.

Thanks.
Received on Monday, 16 January 2012 15:37:32 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:48 GMT