CSSJanus: Fix handling of CSS3 color syntaxes
authorMatmaRex <matma.rex@gmail.com>
Thu, 6 Jun 2013 15:33:37 +0000 (17:33 +0200)
committerTimo Tijhof <krinklemail@gmail.com>
Thu, 4 Jul 2013 03:30:26 +0000 (05:30 +0200)
commitb5984db716301e7d685554c0aeb6024a129cc444
treea865172d802a6cfc0f0ac7f07ed4da80ed485d2d
parent4a8a13e1814e174af34709109493498f9554280f
CSSJanus: Fix handling of CSS3 color syntaxes

The 'color' rule, and by extension 'four_notation_color' too,
only understood #rrggbb and named colors. Extend it to match
rgb[a](...) and hsl[a](...) syntaxes as well.

This makes usage of rgb(a)/hsl(a) syntax in declarations like
'border-color: a b c d;' be interpreted and flipped correctly.

Change-Id: I218a9aa55a86b3d955b92375c1a209fdde312138
RELEASE-NOTES-1.22
includes/libs/CSSJanus.php
tests/phpunit/includes/libs/CSSJanusTest.php