You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
any : [ IDENT | NUMBER | PERCENTAGE | DIMENSION | STRING
120
120
| DELIM | URI | HASH | UNICODE-RANGE | INCLUDES
@@ -538,6 +538,22 @@ img { }
538
538
<p>A user agent conforming to a future CSS specification may accept one or
539
539
more of the other rules as well.</p>
540
540
541
+
<li><strong>Malformed declarations.</strong> User agents must handle unexpected tokens encountered while parsing a declaration by reading until the end of the declaration, while observing the rules for matching pairs of (), [], {}, "", and '', and correctly handling escapes. For example, a malformed declaration may be missing a property, colon (:) or value. The following are all equivalent:
542
+
543
+
544
+
<pre class="example"><code>
545
+
p { color:green }
546
+
p { color:green; color } /* malformed declaration missing ':', value */
547
+
p { color:red; color; color:green } /* same with expected recovery */
548
+
p { color:green; color: } /* malformed declaration missing value */
549
+
p { color:red; color:; color:green } /* same with expected recovery */
0 commit comments