Re: Converting @imports to links

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.)

~TJ

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