11<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
22<html lang="en">
3- <!-- $Id: syndata.src,v 2.160 2008-11-03 16:46:08 bbos Exp $ -->
3+ <!-- $Id: syndata.src,v 2.161 2008-11-26 15:05:04 bbos Exp $ -->
44<head>
55<title>Syntax and basic data types</title>
66<meta name="editor" lang="tr" content="Tantek Çelik">
@@ -437,7 +437,8 @@ href="selector.html">selectors</a>) consists of everything up to (but
437437not including) the first left curly brace ({). A selector always goes
438438together with a declaration block. When a user agent can't parse the selector (i.e., it
439439is not valid CSS 2.1), it must <span class="index-inst" title="ignore"><a
440- href="#ignore">ignore</a></span> the declaration block as well.
440+ href="#ignore">ignore</a></span> the selector and the following
441+ declaration block (if any) as well.
441442</p>
442443<p>CSS 2.1 gives a special meaning to the comma (,) in
443444selectors. However, since it is not known if the comma may acquire
@@ -636,11 +637,11 @@ img { }
636637<p>A user agent conforming to a future CSS specification may accept one or
637638more of the other rules as well.</p>
638639</li>
639- <li><strong>Malformed statements .</strong> User agents must handle
640- unexpected tokens encountered while parsing a statement by reading
641- until the end of the statement , while observing the rules for matching
640+ <li><strong>Malformed declarations .</strong> User agents must handle
641+ unexpected tokens encountered while parsing a declaration by reading
642+ until the end of the declaration , while observing the rules for matching
642643pairs of (), [], {}, "", and '', and correctly handling escapes. For
643- example, a malformed statement may be missing a property, colon (:) or
644+ example, a malformed declaration may be missing a property, colon (:) or
644645value. The following are all equivalent:
645646
646647
@@ -658,9 +659,10 @@ p { color:red; color{;color:maroon}; color:green } /* same with recovery */
658659
659660
660661<li><strong>Invalid at-keywords.</strong> User agents must <span
661- class="index-inst" title="ignore"><a href="#ignore">ignore</a></span> an
662- invalid at-keyword together with everything following it, up to and
663- including the next semicolon (;) or block ({...}), whichever
662+ class="index-inst" title="ignore"><a href="#ignore">ignore</a></span>
663+ an invalid at-keyword together with everything following it, up to and
664+ including the next semicolon (;), the next block ({...}), or the end
665+ of the block (}) that contains the invalid at-keyword, whichever
664666comes first. For example, consider the following:
665667
666668<pre class="illegal-example"><code>
0 commit comments