Skip to content

Commit 2518bd7

Browse files
committed
[css2] charset info added
--HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%40344
1 parent e0b96b1 commit 2518bd7

1 file changed

Lines changed: 50 additions & 32 deletions

File tree

css2/syndata.src

Lines changed: 50 additions & 32 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: syndata.src,v 1.23 1997-10-30 21:37:34 ian Exp $ -->
3+
<!-- $Id: syndata.src,v 1.24 1997-10-31 00:27:19 clilley Exp $ -->
44
<HEAD>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<TITLE>CSS2 syntax and basic data types</TITLE>
@@ -134,7 +134,7 @@ characters between them are parsed as a <span class="index-inst"
134134
title="string">string</span>. See the tokenizer in <a
135135
href="grammar.html">Appendix B</a> for the definition of a string.
136136

137-
<div class="example"><P> Here is an example of a block. Note that the
137+
<div class="illegal-example"><P> Here is an example of a block. Note that the
138138
right brace between the quotes does not match the opening brace of the
139139
block, and that the second single quote is an <a
140140
href="#escaped-characters">escaped character</a>, and thus doesn't
@@ -269,6 +269,7 @@ Comments may not be nested.
269269
<P>Style rules appearing in a source document (e.g., in the STYLE
270270
element of HTML) may be commented out using the comment syntax of
271271
the document language.
272+
<!-- is this true, regardless of the document language? I think not -->
272273

273274
<H3><a href="errors">Error handling</a></H3>
274275
<P> To ensure that UAs supporting just CSS2 will be able to parse
@@ -398,12 +399,13 @@ keyword values (e.g. 'x-large') offer similar advantages.
398399
</PRE>
399400
</div>
400401

401-
<P>The 'em' unit is is equal to the <span class="index-inst"
402-
title="font size">font size</span> used when rendering an element's
403-
text. The 'ex' unit is equal to the font's x-height (the height of the
404-
letter 'x') of the element's font. A font need not contain the letter
405-
"M" to have an 'em' size or the letter "x" to have an x-height; the
406-
font should still define the two units.
402+
<P>The 'em' unit, as used in CSS, is is equal to the <span
403+
class="index-inst" title="font size">font size</span> used when
404+
rendering an element's text. It may be used for vertical or horizontal
405+
measurement. The 'ex' unit is equal to the font's x-height (the height
406+
of the letter 'x') of the element's font. A font need not contain the
407+
letter "M" to have an 'em' size or the letter "x" to have an x-height;
408+
the font should still define the two units.
407409

408410
<!-- Incomplete -->
409411

@@ -601,27 +603,28 @@ removes any dependencies on the color depth of the display.
601603

602604
<P> The format of an RGB value in the functional notation is 'rgb('
603605
followed by a comma-separated list of three numerical values (either
604-
three integer values in the range of 0-255, or three percentage values
605-
in the range of 0.0% to 100.0%) followed by ')'. Whitespace characters
606-
are allowed around the numerical values.
606+
three integer values in the range of 0-255, or three percentage
607+
values, typically in the range of 0.0% to 100.0%) followed by
608+
')'. Whitespace characters are allowed around the numerical values.
607609

608-
<P> Values outside the numerical ranges should be clipped. The three
609-
rules below are therefore equivalent:
610+
<P> Values outside the device gamut should be clipped. The three rules
611+
below are therefore equivalent (for a device which can display the
612+
full sRGB gamut):
610613

611614
<PRE>
612615
EM { color: rgb(255,0,0) } /* integer range 0 - 255 */
613616
EM { color: rgb(300,0,0) } /* clipped to 255 */
614617
EM { color: rgb(110%, 0%, 0%) } /* clipped to 100% */
615618
</PRE>
616619

617-
<P> RGB colors are specified in the sRGB color space
620+
<P>All RGB colors are specified in the sRGB color space
618621
(see <a rel="biblioentry" href="./refs.html#ref-SRGB">[SRGB]</a>).
619622
UAs may vary in the fidelity with which they
620623
represent these colors, but using sRGB provides an unambiguous and
621624
objectively measurable definition of what the color should be, which
622625
can be related to international standards <a rel="biblioentry" href="./refs.html#ref-COLORIMETRY">[COLORIMETRY]</a>.
623626

624-
<P> UAs may limit their color-displaying efforts to performing a
627+
<P>Conforming UAs may limit their color-displaying efforts to performing a
625628
gamma-correction on them. sRGB specifies a display gamma of 2.2 under
626629
specified viewing conditions. UAs adjust the colors given in CSS such
627630
that, in combination with an output device's "natural" display gamma,
@@ -646,7 +649,8 @@ with <a href="./aural.html">aural cascading style sheets</a>.
646649

647650
<p>Values in these units may be negative. They should be normalized to
648651
the range 0-360deg by the UA. For example, -10deg and 350deg are
649-
equivalent.
652+
equivalent. The angle value must be followed
653+
immediately by the angle unit without an intervening space.
650654

651655
<P>The angle value must be immediately followed by the angle unit.
652656

@@ -665,7 +669,7 @@ sheets</a>.
665669
</UL>
666670

667671
<p>Time values may not be negative. The time value must be followed
668-
immediately by the time unit.
672+
immediately by the time unit without an intervening space.
669673

670674
<H3>Frequencies</H3>
671675

@@ -688,7 +692,7 @@ is a treble sound.
688692
</div>
689693

690694
<P>The frequency value must be followed immediately by the frequency
691-
unit.
695+
unit without an intervening space.
692696

693697
<H2>CSS embedded in HTML</H2>
694698

@@ -698,20 +702,34 @@ sheets inside HTML comments. The HTML comment tokens "&lt;!--" and
698702
"--&gt;" may occur before, after, and in between the statements. They
699703
may have whitespace around them.
700704

701-
<P> The "class" attribute of HTML allows more characters in a class
702-
name than the set allowed for selectors above. In CSS2, these
703-
characters have to be <a href="#escaped-characters">escaped</a> or
704-
written as Unicode numbers: "B&amp;W?" can be written as "B\&amp;W\?"
705-
or "B\26W\3F", "&#186;&#191;&Aring;&Aacute;&#191;&Acirc;" (Greek: "kouros") has to
706-
be written as "\3BA\3BF\3C5\3C1\3BF\3C2".
707-
708-
<div class="note"><P>
709-
<em><strong>Note.</strong>
710-
It is expected that in later
711-
versions of CSS, authors will be able
712-
to enter more characters directly.
713-
</em>
714-
</div>
705+
<P>When CSS is embedded in HTML, it shares the <tt>charset</tt>
706+
parameter used to transmit the enclosing HTML document. As with HTML,
707+
the value of thecharset parameter is used to convert from the transfer
708+
encoding to the document character set, which is Unicode.
709+
710+
711+
<H2>CSS as a stand-alone file</H2>
712+
713+
<p>CSS stylesheets may exist in files by themselves, being linked from
714+
the HTML or XML document. In that case the CSS files are served with
715+
the media type <tt>text/css</tt>. As with all text media types, a
716+
charset parameter may be added which is used to convert from the
717+
transfer encoding to Unicode.
718+
719+
<h2>Character escapes in CSS</h2>
720+
721+
<p> The "class" attribute of HTML allows more characters in a class
722+
name than the set allowed for selectors above. In CSS2, any of these
723+
characters which fall outside the encoding used to transmit the
724+
document can be <a href="#escaped-characters">escaped</a> or written
725+
as Unicode numbers:"B&amp;W?" can be written as "B\&amp;W\?" or
726+
"B\26W\3F". For example, a document transmitted as ISO-8859-1
727+
(Latin-1) cannot contain Greek letters directly:
728+
"&#939;&#959;&#965;&#961;&#959;&#962;" (Greek: "kouros") has to be
729+
written as "\3BA\3BF\3C5\3C1\3BF\3C2". These escapes are thus the CSS
730+
equivalent of numeric character references in HTML or XML documents.
731+
732+
715733

716734
</BODY>
717735
</html>

0 commit comments

Comments
 (0)