Subject: | Support for :first-child and :last-child |
HTML::Query was patched to support the :first-child and :last-child pseudoclasses. It would therefore be nice with support for them in CSS::Inliner as well.
Attached is a patch that enables the use of these.
Subject: | css-inliner-first-child.patch |
--- Inliner.pm 2013-05-08 09:26:32.636465144 +0200
+++ Inliner.pm 2013-05-08 09:26:57.160465928 +0200
@@ -282,7 +282,7 @@
my $properties = $$entry{properties};
#skip over psuedo selectors, they are not mappable the same
- if ($selector =~ /[\w\*]:(?:(active|focus|hover|link|visited|after|before|selection|target|first-line|first-letter|first-child|first-child))\b/io) {
+ if ($selector =~ /[\w\*]:(?:(active|focus|hover|link|visited|after|before|selection|target|first-line|first-letter))\b/io) {
$self->_report_warning({ info => "The pseudo-class ':$1' cannot be supported inline" });
next;
}