Commit 5eefc37b authored by Benjamin Otte's avatar Benjamin Otte

cssprovider: @import <string> is valid CSS

The parser rewrite insisted on @import url(<string>) syntax, but CSS
xplicitly allows omitting the url string.
parent 01416515
......@@ -1670,7 +1670,10 @@ parse_import (GtkCssScanner *scanner)
GFile *file;
char *uri;
uri = _gtk_css_parser_read_uri (scanner->parser);
if (_gtk_css_parser_is_string (scanner->parser))
uri = _gtk_css_parser_read_string (scanner->parser);
else
uri = _gtk_css_parser_read_uri (scanner->parser);
if (uri == NULL)
{
_gtk_css_parser_resync (scanner->parser, TRUE, 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment