|
1 | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" |
2 | 2 | "http://www.w3.org/TR/1998/REC-html40-19980424/loose.dtd"> |
3 | 3 | <html lang="en"> |
4 | | -<!-- $Id: syndata.src,v 2.108 2005-03-02 04:41:45 bbos Exp $ --> |
| 4 | +<!-- $Id: syndata.src,v 2.109 2005-03-22 14:31:04 bbos Exp $ --> |
5 | 5 | <head> |
6 | 6 | <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> |
7 | 7 | <title>Syntax and basic data types</title> |
@@ -316,9 +316,7 @@ href="#value-def-identifier">identifier</a> (for example, '@import', |
316 | 316 | </p> |
317 | 317 | <p> An at-rule consists of everything up to and including the next |
318 | 318 | semicolon (;) or the next <a href="#block">block,</a> whichever comes |
319 | | -first. A CSS user agent that encounters an unrecognized at-rule must |
320 | | -<span class="index-inst" title="ignore"><a href="#ignore">ignore</a></span> |
321 | | -the whole of the at-rule and continue parsing after it. |
| 319 | +first. |
322 | 320 | </p> |
323 | 321 |
|
324 | 322 | <p>CSS 2.1 user agents must <span class="index-inst" title="ignore"><a |
@@ -369,7 +367,7 @@ curly brace (}). In between there may be any characters, except that |
369 | 367 | parentheses (( )), brackets ([ ]) and braces ({ }) must |
370 | 368 | always occur in |
371 | 369 | matching pairs and may be nested. Single (') and double quotes (") |
372 | | -<!-- " --> must also occur in matching pairs, and characters between them |
| 370 | +must also occur in matching pairs, and characters between them |
373 | 371 | are parsed as a <span class="index-inst" title="string">string</span>. |
374 | 372 | See <a href="#tokenization">Tokenization</a> above for the definition |
375 | 373 | of a string. |
|
492 | 490 | href="#value-def-identifier">identifier</a>. Any character may occur |
493 | 491 | in the value. Parentheses ("( )"), brackets ("[ ]"), |
494 | 492 | braces ("{ }"), single |
495 | | -quotes (') and double quotes (") <!-- " --> must come in matching |
| 493 | +quotes (') and double quotes (") must come in matching |
496 | 494 | pairs, and semicolons not in strings must be <a |
497 | 495 | href="#escaped-characters">escaped</a>. Parentheses, brackets, and |
498 | 496 | braces may be nested. Inside the quotes, characters are parsed as a |
@@ -657,11 +655,35 @@ the entire at-rule invalid. |
657 | 655 | </p> |
658 | 656 |
|
659 | 657 | </li> |
| 658 | + |
| 659 | +<li><li><strong>Unexpected end of style sheet.</strong> |
| 660 | + |
| 661 | +User agents must close all open constructs (blocks, parentheses, |
| 662 | +brackets, rules, strings, comments, etc) at the end of the |
| 663 | +stylesheet. For example: |
| 664 | + |
| 665 | +<pre class="illegal-example"> |
| 666 | + @media screen { |
| 667 | + p:before { content: 'Hello |
| 668 | +</pre> |
| 669 | + |
| 670 | +would be treated the same as: |
| 671 | + |
| 672 | +<pre class="example"> |
| 673 | + @media screen { |
| 674 | + p:before { content: 'Hello'; } |
| 675 | + } |
| 676 | +</pre> |
| 677 | + |
| 678 | +in a conformant UA. |
| 679 | + |
660 | 680 | </ul> |
661 | 681 |
|
662 | | -<p>How to handle unparseable and untokenizable stylesheets is |
| 682 | +<!-- |
| 683 | +<p>How to handle unparseable and untokenizable style sheets is |
663 | 684 | undefined in CSS2.1 |
664 | 685 | </p> |
| 686 | +--> |
665 | 687 |
|
666 | 688 | <h2><a name="values">Values</a></h2> |
667 | 689 |
|
|
0 commit comments