Subject: | Parsing inline CSS (without a selector) should be possible |
I would have expected this line of code to work:
$ perl -MCSS -e 'my $css=CSS->new()->read_string("width:0;height:34px");'
Invalid or unexpected style data 'width:0;height:34px' at
/home/robin/perl5/lib/perl5/CSS.pm line 76
That chunk of CSS is quite common to deal with if you're trying to
manipulate HTML tags with inline style attributes.
The current implementation only handles standalone stylesheets.