Skip to content

Commit bdb3033

Browse files
committed
[dbaron revision history] Merge in the rest of the CSS 2.1 syndata.html changes. (date: 2003/08/07 21:24:14)
1 parent b36e914 commit bdb3033

1 file changed

Lines changed: 35 additions & 7 deletions

File tree

css3-syntax/Overview.src.html

Lines changed: 35 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,8 @@ <h2>CSS style sheet representation</h2>
173173
using one of the first two methods.</p>
174174

175175
<p>At most one @charset rule may appear in an external
176-
style sheet -- it must <em>not</em> appear in an embedded style sheet
177-
-- and it must appear at the very start of the style sheet, not preceded
176+
style sheet &mdash; it must <em>not</em> appear in an embedded style sheet
177+
&mdash; and it must appear at the very start of the style sheet, not preceded
178178
by any characters (except for the optional Byte Order Mark <a
179179
href="#BOM">described
180180
above)</a>. After "@charset", authors specify the name of a
@@ -366,8 +366,8 @@ <h3 id="tokenization">Tokenization</h3>
366366
<p class="issue">[This needs to be integrated with the selectors module.
367367
How should that be done?]</p>
368368

369-
<p>All levels of CSS -- level 1, level 2, level 3, and any future levels
370-
-- use the same core syntax. This allows UAs to parse (though not
369+
<p>All levels of CSS &mdash; level 1, level 2, level 3, and any future levels
370+
&mdash; use the same core syntax. This allows UAs to parse (though not
371371
completely understand) style sheets written in levels of CSS that didn't
372372
exist at the time the UAs were created. Designers can use this feature
373373
to create style sheets that work with older user agents, while also
@@ -901,9 +901,10 @@ <h2 id="error-handling">Rules for handling parsing errors or unsupported feature
901901
more of the other rules as well.</p>
902902

903903
<p class="issue">[A general comment on how to handle negative numbers
904-
when disallowed might be useful. It should probably be a parsing error.
905-
We might want to add additional grammar productions for potentially
906-
negative numbers.]</p>
904+
when disallowed might be useful. It should be a parsing error (and thus
905+
ignored). We might want to add additional grammar productions for
906+
potentially negative numbers.]</p>
907+
907908
</li>
908909

909910
<li><strong>Malformed declarations.</strong> User agents must handle
@@ -953,6 +954,33 @@ <h2 id="error-handling">Rules for handling parsing errors or unsupported feature
953954
<PRE class="example">
954955
h1 { color: blue }
955956
</PRE>
957+
<li>
958+
959+
<li id="unsupportedvalues">
960+
961+
<p><strong>Unsupported Values</strong>If a UA does not support a
962+
particular value, it should <em>ignore</em> that value when parsing
963+
stylesheets, as if that value was an <a href="#illegalvalues">illegal
964+
value</a>. For example:</p>
965+
966+
<div class="example">
967+
<pre>
968+
h3 {
969+
display: inline;
970+
display: run-in;
971+
}
972+
</pre>
973+
</div>
974+
975+
<p>
976+
A UA that supports the 'run-in' value for the 'display' property will
977+
accept the first display declaration and then "write over" that value with
978+
the second display declaration. A UA that does not support the 'run-in'
979+
value will process the first display declaration and ignore the second
980+
display declaration.
981+
</p>
982+
983+
</li>
956984

957985
</UL>
958986

0 commit comments

Comments
 (0)