Skip to content

Commit 30559d9

Browse files
committed
[css2] Added new text ("@media and @import rules with unknown media types are treated as if
the unknown media types are not present") and a new example. --HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%402552
1 parent e3ed6fd commit 30559d9

1 file changed

Lines changed: 13 additions & 8 deletions

File tree

css2/media.src

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
22
<html lang="en">
3-
<!-- $Id: media.src,v 2.38 2006-06-02 16:18:03 bbos Exp $ -->
3+
<!-- $Id: media.src,v 2.39 2006-10-09 23:40:25 howcome Exp $ -->
44
<HEAD>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<TITLE>Media types</TITLE>
@@ -179,15 +179,20 @@ one canvas and 'print' mode on another canvas.
179179
type. The 'tv' media type, for example, is a multimodal media
180180
type that renders both visually and aurally to a single canvas.
181181

182+
<p>@media and @import rules with unknown media types are treated as if
183+
the unknown media types are not present.
182184

183-
<P>Unknown media type names must not result in the @media rule or
184-
@import rule being ignored.
185+
<div class="example">
186+
<p>For example, in the following snippet, the rule on the P element applies
187+
in 'screen' mode (even though the '3D' media type is not known).
188+
189+
<pre>
190+
@media screen, 3D {
191+
P { color: green; }
192+
}
193+
</pre>
194+
</div>
185195

186-
<!--
187-
<P>Due to rapidly changing technologies, CSS2 does not specify a
188-
definitive list of media types that may be values for <span
189-
class="index-inst" title="@media">@media</span>.
190-
-->
191196

192197
<div class="note"><P>
193198
<em><strong>Note.</strong>

0 commit comments

Comments
 (0)