Are unquoted data URIs valid in CSS?

Blue Summer

New Member
\[code\]#something { background: url(data:image/png;base64,ABCDEF);}\[/code\]This snippet works in all browsers which support data URIs (obviously with something else than ABCDEF).Also, it's valid according to the CSS 2.1 spec:\[quote\] ...optional single quote (') or double quote (") character followed by the URI itself...\[/quote\]But the validator won't accept it without quotes:\[quote\] Value Error : background url(data:image/png;base64,ABCDEF) is an incorrect URL\[/quote\]If you surround the URI with single or double quotes, it validates.Am I missing something? Is it a bug in the validator?
 
Back
Top