W3C home > Mailing lists > Public > www-style@w3.org > March 2002

Re: media=" " needed in @import?

From: Sampo Syreeni <decoy@iki.fi>
Date: Mon, 25 Mar 2002 23:05:54 +0200 (EET)
To: Edward Cossette <ecossette@explorelearning.com>
cc: <www-style@w3.org>
Message-ID: <Pine.SOL.4.30.0203252302540.19327-100000@myntti.helsinki.fi>
On Mon, 25 Mar 2002, Edward Cossette wrote:

><style type="text/css">
>@import url(/style/core.css);
>@import url(/style/print.css) print;
>Do I then need to change my initial <style> tag to look like this
><style type="text/css" media="screen, print"> ?????

No. Implicitly, style elements without a media-attribute should be
interpreted as having media="all". The media types used with the import
directives then further limit what is actually imported. The first one
means, of course, @import url(..) all; .

Queries like should probably be directed to the relevant CSS authoring
newsgroup instead of www-style.

Sampo Syreeni, aka decoy - mailto:decoy@iki.fi, tel:+358-50-5756111
student/math+cs/helsinki university, http://www.iki.fi/~decoy/front
openpgp: 050985C2/025E D175 ABE5 027C 9494 EEB0 E090 8BA9 0509 85C2
Received on Monday, 25 March 2002 16:06:03 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:01 UTC