Skip to content

Commit 9dadc11

Browse files
committed
[css2] Moved definition of @import here from syndata.src. Made explicit the fact that url() is optional
--HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%40923
1 parent 713f9ad commit 9dadc11

1 file changed

Lines changed: 21 additions & 3 deletions

File tree

css2/media.src

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
22
<html lang="en">
3-
<!-- $Id: media.src,v 2.4 1998-02-13 18:17:34 ijacobs Exp $ -->
3+
<!-- $Id: media.src,v 2.5 1998-02-17 00:28:56 ijacobs Exp $ -->
44
<HEAD>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<TITLE>Media types</TITLE>
@@ -97,12 +97,30 @@ sheet:</P>
9797
}
9898
</pre>
9999

100-
<H3>The media-dependent @import rule</h3>
100+
<H3><a name="at-import">The @import rule</a></h3>
101+
102+
<P>The <span class="index-def"
103+
title="@import"><dfn>'@import'</dfn></span> rule allows users to embed
104+
style sheets in other style sheets. The '@import' keyword must be
105+
followed by the name of the style sheet to include. Any @import rules
106+
must precede all rule sets in a style sheet (see the section on <a
107+
href="syndata.html#at-rules">at-rules</a> for more information).
108+
109+
<div class="example"><P>
110+
Both of these import rules are legal; the
111+
first one illustrates that the "url()" syntax may be dropped in an
112+
@import rule:</p>
113+
114+
<PRE>
115+
@import "mystyle.css";
116+
@import url(herstyle.css);
117+
</PRE>
118+
</div>
101119

102120
<p>So that user agents can avoid retrieving resources for unsupported
103121
media types, authors may specify media-dependent <span
104122
class="index-inst" title="@import"><a
105-
href="cascade.html">@import</a></span> rules. These <span
123+
href="syndata.html">@import</a></span> rules. These <span
106124
class="index-def" title="conditional import|media-dependent
107125
import">conditional imports</span> specify comma-separated media types
108126
after the URI.

0 commit comments

Comments
 (0)