Skip to content

Commit 94a58e7

Browse files
committed
[dbaron revision history] Merge in changes in CSS2.1 media.html. (date: 2003/08/07 16:54:15)
1 parent ce2ac6a commit 94a58e7

1 file changed

Lines changed: 58 additions & 55 deletions

File tree

css3-syntax/Overview.src.html

Lines changed: 58 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1018,18 +1018,17 @@ <h4>Introduction to media types</h4>
10181018
etc.</p>
10191019

10201020
<p>Certain CSS properties are only designed for certain media (e.g.,
1021-
the <span class="propinst-cue-before">'cue-before'</span> property for
1022-
aural user agents). On occasion, however, style sheets for different
1023-
media types may share a property, but require different values for
1024-
that property. For example, the <span
1021+
the <span
1022+
class="propinst-page-break-before">'page-break-before'</span> property
1023+
only applies to paged media). On occasion, however, style sheets for
1024+
different media types may share a property, but require different
1025+
values for that property. For example, the <span
10251026
class="propinst-font-size">'font-size'</span> property is useful both
1026-
for screen and print media. However, the two media are different
1027-
enough to require different values for the common property; a document
1028-
will typically need a larger font on a computer screen than on paper.
1029-
Experience also shows that sans-serif fonts are easier to read on
1030-
screen, while fonts with serifs are easier to read on paper. For
1031-
these reasons, it is necessary to express that a style sheet -- or a
1032-
section of a style sheet -- applies to certain media types.</p>
1027+
for screen and print media. The two media types are different enough
1028+
to require different values for the common property; a document will
1029+
typically need a larger font on a computer screen than on paper.
1030+
Therefore, it is necessary to express that a style sheet, or a
1031+
section of a style sheet, applies to certain media types.</p>
10331032

10341033
<h4>Specifying media-dependent style sheets</h4>
10351034

@@ -1058,10 +1057,10 @@ <h4>Specifying media-dependent style sheets</h4>
10581057
style sheet, the target media can be specified as part of the
10591058
<span class="index-inst" title="@import"><code>@import</code></span> at-rule:
10601059

1061-
<div class="example"><p>
1062-
<PRE>
1063-
@import url("loudvoice.css") speech;
1064-
</PRE>
1060+
<div class="example">
1061+
<pre>
1062+
@import url("fancyfonts.css") screen;
1063+
</pre>
10651064
</div>
10661065

10671066
<p>If the style sheet is linked to the document through a <a
@@ -1100,15 +1099,15 @@ <h4 id="at-media-rule">The <code>@media</code> rule</h4>
11001099
<div class="example"><p>
11011100
<pre>
11021101
@media print {
1103-
BODY { font-size: 12pt; }
1104-
H1 { font-size: 24pt; }
1102+
body { font-size: 12pt; }
1103+
h1 { font-size: 24pt; }
11051104
}
11061105
@media screen {
1107-
BODY { font-size: medium; }
1108-
H1 { font-size: 2em; }
1106+
body { font-size: medium; }
1107+
h1 { font-size: 2em; }
11091108
}
11101109
@media screen, print {
1111-
BODY { line-height: 1.2; }
1110+
body { line-height: 1.2; }
11121111
}
11131112
</pre>
11141113
</div>
@@ -1126,10 +1125,10 @@ <h4 id="media-types">Recognized media types</h4>
11261125
and separated to make this more logical?]</span>)</p>
11271126

11281127
<p>The names chosen for CSS media types reflect target devices for
1129-
which the relevant properties make sense. In the following list of CSS
1130-
media types, the parenthetical descriptions are not normative. They
1131-
only give a sense of what device the media type is meant to refer
1132-
to.</p>
1128+
which the relevant properties make sense. The names of media types are
1129+
normative. In the following list of CSS media types, the parenthetical
1130+
descriptions are not normative. Likewise, the "Media" field in the
1131+
description of each property is informative.</p>
11331132

11341133
<dl>
11351134
<dt><strong>all</strong></dt>
@@ -1143,17 +1142,17 @@ <h4 id="media-types">Recognized media types</h4>
11431142

11441143
<dt><strong>handheld</strong></dt>
11451144
<dd>Intended for handheld devices (typically small
1146-
screen, monochrome, limited bandwidth).</dd>
1145+
screen, limited bandwidth).</dd>
11471146

11481147
<dt><strong>print</strong></dt>
1149-
<dd>Intended for paged, opaque material and for documents viewed on
1150-
screen in print preview mode. Please consult the section on <a
1151-
href="page.html">paged media</a> for information about formatting
1152-
issues that are specific to paged media.</dd>
1148+
<dd>Intended for paged material and for documents viewed on
1149+
screen in print preview mode.
1150+
Please consult the paged media module [[CSS3PAGE]] for
1151+
information about formatting issues that are specific to paged
1152+
media.</dd>
11531153

11541154
<dt><strong>projection</strong></dt>
1155-
<dd>Intended for projected presentations, for
1156-
example projectors or print to transparencies.
1155+
<dd>Intended for projected presentations.
11571156
Please consult the paged media module [[CSS3PAGE]] for
11581157
information about formatting issues that are specific to paged
11591158
media.</dd>
@@ -1166,9 +1165,9 @@ <h4 id="media-types">Recognized media types</h4>
11661165
speech module [[CSS3SPEECH]] for details.</dd>
11671166

11681167
<dt><strong>tty</strong></dt>
1169-
<dd>Intended for media using a fixed-pitch character grid, such as
1168+
<dd>Intended for media using a fixed-pitch character grid (such as
11701169
teletypes, terminals, or portable devices with limited display
1171-
capabilities.</dd>
1170+
capabilities).</dd>
11721171

11731172
<dt><strong>tv</strong>
11741173
<dd>Intended for television-type devices (low resolution, color,
@@ -1177,9 +1176,10 @@ <h4 id="media-types">Recognized media types</h4>
11771176

11781177
<p>Media type names are case-insensitive.</p>
11791178

1180-
<p>Due to rapidly changing technologies, CSS3 does not specify a
1181-
definitive list of media types that may be values for <span
1182-
class="index-inst" title="@media">@media</span>.</p>
1179+
<p>Media types are mutually exclusive in the sense that a user agent
1180+
can only support one media type when rendering a document. However,
1181+
user agents may have different modes which support different media
1182+
types.</p>
11831183

11841184
<div class="note"><p>
11851185
<em><strong>Note.</strong>
@@ -1833,6 +1833,8 @@ <h3 id="media-groups">Media groups</h3>
18331833
<p class="issue">[Some of this needs to be relaxed to deal with
18341834
profiles.]</p>
18351835

1836+
<P><em>This section is informative, not normative.</em></P>
1837+
18361838
<p>This part indicates the media groups for which the property must be
18371839
implemented by a conforming user agent.
18381840
Since properties
@@ -1846,22 +1848,22 @@ <h3 id="media-groups">Media groups</h3>
18461848
listed in its definition.
18471849
</p>
18481850

1849-
<p>CSS3 defines the following <dfn id="def-media-groups" title="media
1850-
group">media groups</dfn> based on the <a href="#media-types">recognized
1851-
media types</a>:</p>
1852-
1851+
<P>CSS3 defines the following media groups: </P>
18531852
<ul>
18541853
<li>
18551854
<span class="index-def" title="'continuous' media group"><a
18561855
name="continuous-media-group"><strong>continuous</strong></a></span>
18571856
or <span class="index-def" title="'paged' media group"><a
18581857
name="paged-media-group"><strong>paged</strong></a></span>.
1859-
"Both" means that the property in question applies to both media groups.
1858+
18601859
<li><span
18611860
class="index-def" title="'visual' media group"><a
1862-
name="visual-media-group"> <strong>visual</strong></a>,</span> <span
1863-
class="index-def" title="'aural' media group"><a
1864-
name="aural-media-group"><strong>aural</strong></a>,</span> or <span
1861+
name="visual-media-group"> <strong>visual</strong></a>,</span>
1862+
<span class="index-def" title="'audio' media group"><a
1863+
name="audio-media-group"><strong>audio</strong></a>,</span>
1864+
<span class="index-def" title="'speech' media group"><a
1865+
name="speech-media-group"><strong>speech</strong></a>,</span>
1866+
or <span
18651867
class="index-def" title="'tactile' media group"><a
18661868
name="tactile-media-group"><strong>tactile</strong></a></span>.
18671869
<li><span
@@ -1871,8 +1873,7 @@ <h3 id="media-groups">Media groups</h3>
18711873
<span
18721874
class="index-def" title="'bitmap' media group"><a
18731875
name="bitmap-media-group"><strong>bitmap</strong></a></span>.
1874-
"Both" means that the property in question applies to both media
1875-
groups.
1876+
18761877
<li><span
18771878
class="index-def" title="'interactive' media group"><a
18781879
name="interactive-media-group"><strong>interactive</strong></a></span> (for
@@ -1881,8 +1882,7 @@ <h3 id="media-groups">Media groups</h3>
18811882
class="index-def" title="'static' media group"><a
18821883
name="static-media-group"><strong>static</strong></a></span> (for
18831884
those that don't).
1884-
"Both" means that the property in question applies to both media
1885-
groups.
1885+
18861886
<li><span class="index-def" title="'all'
18871887
media group"> <a name="all-media-group"><strong>all</strong></a></span>
18881888
(includes all media types)
@@ -1897,20 +1897,23 @@ <h3 id="media-groups">Media groups</h3>
18971897
<TR><TH>Media Types <TH colspan="4">Media Groups
18981898
<TR><TH>&nbsp;
18991899
<TH>continuous/paged
1900-
<TH>visual/aural/tactile
1900+
<TH>visual/audio/speech/tactile
19011901
<TH>grid/bitmap
19021902
<TH>interactive/static
1903-
<TR><TH>aural<TD align="center">continuous<TD align="center">aural<TD align="center">N/A<TD align="center">both</TR>
1903+
<!--
1904+
<TR><TH>audio<TD align="center">continuous<TD align="center">audio<TD align="center">N/A<TD align="center">both</TR>
1905+
-->
19041906
<TR><TH>braille<TD align="center">continuous<TD align="center">tactile<TD align="center">grid<TD align="center">both</TR>
1905-
<TR><TH>emboss<TD align="center">paged<TD align="center">tactile<TD align="center">grid<TD align="center">both</TR>
1906-
<TR><TH>handheld<TD align="center">both<TD align="center">visual<TD
1907+
<TR><TH>emboss<TD align="center">paged<TD align="center">tactile<TD align="center">grid<TD align="center">static</TR>
1908+
<TR><TH>handheld<TD align="center">both<TD align="center">visual, audio, speech<TD
19071909
align="center">both<TD align="center">both</TR>
19081910
<TR><TH>print<TD align="center">paged<TD align="center">visual<TD
19091911
align="center">bitmap<TD align="center">static</TR>
1910-
<TR><TH>projection<TD align="center">paged<TD align="center">visual<TD align="center">bitmap<TD align="center">static</TR>
1911-
<TR><TH>screen<TD align="center">continuous<TD align="center">visual<TD align="center">bitmap<TD align="center">both</TR>
1912+
<TR><TH>projection<TD align="center">paged<TD align="center">visual<TD align="center">bitmap<TD align="center">interactive</TR>
1913+
<TR><TH>screen<TD align="center">continuous<TD align="center">visual, audio<TD align="center">bitmap<TD align="center">both</TR>
1914+
<TR><TH>speech<TD align="center">continuous<TD align="center">speech<TD align="center">N/A<TD align="center">both</TR>
19121915
<TR><TH>tty<TD align="center">continuous<TD align="center">visual<TD align="center">grid<TD align="center">both</TR>
1913-
<TR><TH>tv<TD align="center">both<TD align="center">visual, aural<TD align="center">bitmap<TD align="center">both</TR>
1916+
<TR><TH>tv<TD align="center">both<TD align="center">visual, audio<TD align="center">bitmap<TD align="center">both</TR>
19141917
</TABLE>
19151918

19161919
<h3>Shorthand properties</h3>

0 commit comments

Comments
 (0)