11<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
22<html lang="en">
3- <!-- $Id: conform.src,v 1.26 1997-11-25 00:04:49 ian Exp $ -->
3+ <!-- $Id: conform.src,v 1.27 1997-11-25 23:44:06 ian Exp $ -->
44<HEAD>
55<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66<TITLE>Conformance: requirements and recommendations</TITLE>
7- <LINK rel="next" href="process .html">
7+ <LINK rel="next" href="syndata .html">
88<LINK rel="previous" href="intro.html">
99<LINK rel="STYLESHEET" href="style/default.css" type="text/css">
1010</HEAD>
1111<BODY>
12- <H1 align="center">Conformance: requirements and recommendations </H1>
12+ <H1 align="center">Conformance: Requirements and Recommendations </H1>
1313
1414<H2>Definitions</H2>
1515
@@ -40,7 +40,7 @@ presentation of a document.
4040href="#author">author</a>, <a href="#user">user</a>, and <a
4141href="#user-agent">user agent</a>. The interaction of these sources is
4242described in the section on <a href="cascade.html">cascading and
43- inheritance</a>.
43+ inheritance</a>.</P>
4444
4545<dt><dfn><strong><a name="valid-style-sheet">Valid style sheet</a></strong></dfn></dt>
4646<dd>The <span class="index-def" title="valid style sheet">validity</span>
@@ -53,10 +53,10 @@ all CSS1 style sheets are valid CSS2 style sheets.
5353href="grammar.html">grammar of CSS2</a> and the <a
5454href="selector.html">selector syntax</a>. Furthermore, it must only
5555contain at-rules, property names, and property values defined in this
56- specification.
56+ specification.</P>
5757
5858<dt><dfn><strong>Source document</strong></dfn>
59- <dd>The document to which one or more style sheets refer.
59+ <dd>The document to which one or more style sheets refer.</dd>
6060
6161<dt><dfn><strong><a name="doclanguage">Document language</a></strong></dfn>
6262<dd>The computer language of the source
@@ -77,49 +77,105 @@ by default, are formatted visually as blocks (e.g., paragraphs).
7777<span class="index-def" title="inline element"><em>Inline
7878elements</em></span> are those elements of the document language that
7979do not cause paragraph breaks (e.g., pieces of text, inline images,
80- etc.)
80+ etc.)</P>
81+
82+ <dt><dfn><strong><a name="doctree">Document tree</a></strong></dfn></dt>
83+ <dd>User agents transform a document written in the document language
84+ into a <dfn>document tree</dfn> where every element except one has
85+ exactly one <span class="index-def" title="parent">parent</span>
86+ element. (See the SGML (<a href="refs.html#ref-ISO8879"
87+ class="normref">[ISO8879]</a>) and XML (<a href="refs.html#ref-XML"
88+ class="normref">[XML]</a>) specifications for the definition of
89+ parent.) The one exception is the <span class="index-def"
90+ title="root">root</span> element, which has no parent. An element A is
91+ called a <span class="index-def" title="child">child</span> of an
92+ element B, if and only if B is the parent of A.
93+
94+ <P>An element A is called an <span class="index-def"
95+ title="ancestor">ancestor</span> of an element B, if either (1) A is
96+ the parent B, or (2) A is the parent of some element C that is an
97+ ancestor of B.
98+
99+ <P>An element A is called a <span class="index-def"
100+ title="descendant">descendant</span> of an element B, if and only if B
101+ is an ancestor of A.
102+
103+ <P>An element A is called a <span class="index-def"
104+ title="sibling">sibling</span> of an element B, if and only if B and A
105+ share the same parent element. Element A is a preceding sibling if it
106+ comes before B in the document tree. Element B is a following sibling
107+ if it comes after B in the document tree.
108+
109+ <div class="example"><P>
110+ For example, the following HTML document:
111+ <PRE>
112+ <HTML>
113+ <TITLE>My home page</TITLE>
114+ <BODY>
115+ <H1>My home page</H1>
116+ <P>Welcome to my home page! Let me tell you about my favorite
117+ composers:
118+ <UL>
119+ <LI> Elvis Costello
120+ <LI> Johannes Brahms
121+ <LI> Georges Brassens
122+ </UL>
123+ </BODY>
124+ </HTML>
125+ </PRE>
126+
127+ <P>results in the following tree:</P>
128+
129+ <IMG src="images/doctree.gif" alt="Sample document tree">
130+
131+ <P>According to the definition of HTML, HEAD elements will be inferred
132+ during parsing and become part of the document tree even if the HEAD
133+ tags are not in the document source.
134+ </div>
135+ </dd>
81136
82137<dt><dfn><strong><a name="author">Author</a></strong></dfn>
83138<dd>An author is a person or program that
84- writes or generates style sheets.
139+ writes or generates style sheets.</dd>
85140
86141<dt><dfn><strong><a name="user">User</a></strong></dfn>
87142<dd>A user is a person who interacts with a user agent to view, hear,
88- or otherwise use a document and its associated style sheets.
143+ or otherwise use a document and its associated style sheets.</dd>
89144
90145<dt><dfn><strong>User agent</strong></dfn>
91- <dd>A <span class="index-def" title="user agent|UA"><em> user
92- agent</em></ span> is any program that interprets a document written in
146+ <dd>A <span class="index-def" title="user agent|UA">user
147+ agent</span> is any program that interprets a document written in
93148the document language and applies associated style sheets by according
94149to the terms of this specification. A user agent may display a
95150document, read it aloud, cause it to be printed, convert it
96- to another format, etc.
151+ to another format, etc.</dd>
152+ </dl>
97153
98- <dt><dfn><strong>Conforming user agent</strong ></dfn >
99- <dd>
100- <p><em >This section defines <span class="index-def"
101- title="conformance"><em> conformance</em> </span> with the CSS2
154+ <h2><a name="conformance">Conformance</a ></h2 >
155+
156+ <P >This section defines <span class="index-def"
157+ title="conformance">conformance</span> with the CSS2
102158specification only. There may be other levels of CSS in the future
103- that may require a UA to implement a different set of features in
104- order to conform.</em></P>
159+ that may require a user agent to implement a different set of features
160+ in order to conform.
105161
106162<P>In general, the following points must be observed by user agents
107163claiming conformance to this specification:</P>
108164
109165<ol>
110- <li>It must define the <a href="media.html">media types</a> it
111- supports in terms of CSS media types .
166+ <li>It must define the CSS2 <a href="media.html">media types</a> it
167+ supports.
112168<li>For each source document, it must retrieve all
113169associated style sheets that are appropriate for the supported media
114170types.
115171<li>It must parse the style sheets according to this specification.
116172In particular, it must recognize all at-rules, blocks, declarations,
117173and selectors (see the <a href="grammar.html">grammar of CSS2</a>).
118- If a user agent encounters a property relative to a supported
119- medium , the user agent must parse the value according to the property
174+ If a user agent encounters a property relevant to a supported
175+ media type , the user agent must parse the value according to the property
120176definition. This means that the user agent must accept all legal
121177values and must reject other values. User agents may skip values of
122- properties relative to unsupported <a href="media.html">media
178+ properties relevant to unsupported <a href="media.html">media
123179types</a>.
124180<li>Given a <a href="#doctree">document tree</a>, it must
125181assign a value for every supported property according to
@@ -129,10 +185,10 @@ the rules of <a href="cascade.html">cascading and inheritance</a>.
129185<P>Not every user agent must observe every point, however:
130186
131187<ul>
132- <li>A user agent that only <em>inputs</em> style sheets must
133- only respect points 1 - 3.
188+ <li>A user agent that <em>inputs</em> style sheets must
189+ respect points 1 - 3.
134190
135- <li>A user agent that only <em>outputs</em> style sheets is only required
191+ <li>A user agent that <em>outputs</em> style sheets is only required
136192to output <a href="#valid-style-sheet">valid style sheets</a>
137193
138194<li>A user agent that <em>renders</em> a document with associated style
@@ -146,7 +202,7 @@ specification due to the limitations of a particular device (e.g., a
146202user agent cannot render colors on a monochrome monitor or a black and
147203white page) does not imply non-conformance. </P>
148204
149- <p>This specification also recommends that a UA offer the following
205+ <p>This specification also recommends that a user agent offer the following
150206functionality to the user (these do not refer to any specific
151207user interface):
152208
@@ -157,29 +213,18 @@ user interface):
157213 them in strict accordance with this specification.
158214</UL>
159215
160- <P>Different user interface paradigms may have their own constraints:
161- a VR browser may rescale the document based on its "distance" from the
162- user.</P>
216+ <h2>Error conditions</h2>
163217
164- <P> UAs may offer readers additional choices on presentation. For
165- example, the UA may provide options for readers with visual
166- impairments or may provide the choice to disable blinking.</P>
218+ <P>In general, this document does not specify error
219+ handling behavior for user agents.
167220
168- <dt><dfn><strong>Error conditions</strong></dfn>
169- <dd>This specification does not define how conforming user agents
170- handle general error conditions, including how user agents
171- behave when they encounter elements,
172- attributes, attribute values, or
173- entities not specified in this document.
221+ <P>However, user agents must observe the <a
222+ href="parsing-errors">rules for handling parsing errors</a>.
174223
175224<P>Since user agents may vary in how they handle error conditions,
176225authors and users must not rely on specific error recovery behavior.
177- </dl>
178226</BODY>
179227</html>
180-
181-
182-
183228<!-- Keep this comment at the end of the file
184229Local variables:
185230mode: sgml
0 commit comments