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

Re: Converting @imports to links

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Sat, 9 Feb 2013 09:47:05 -0700
Message-ID: <CAAWBYDDcP7=-9EvnWxgyo5_4s92rfoV_z3=yaFGvDdZU8RMjGQ@mail.gmail.com>
To: Mahesh Mylarappa <maheshmylar@gmail.com>
Cc: www-style list <www-style@w3.org>
On Thu, Feb 7, 2013 at 12:21 PM, Mahesh Mylarappa <maheshmylar@gmail.com> wrote:
> 1. Can there be a @import statement and also other style statements inside
> the <style> tag? For example:

Yes, otherwise there wouldn't be much point to @import.

> 2. If there are more than one @import statement in the beginning of  <style>
> tag body and this is not a scoped style tag. Can we convert @import
> statements to <link> statements and move just above the <style> tag? like:

Yes, those are exactly equivalent semantics.

(And note that @import can *only* appear at the top of a stylesheet,
so you can always make this transformation.)

(Well, @charset can appear before, but if you're not saving your
stylesheets in utf-8 you're Doing It Wrong.)

Received on Saturday, 9 February 2013 16:47:52 UTC

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