mirror of
https://github.com/matthiasmullie/minify.git
synced 2025-02-21 15:15:46 +01:00
Add test for double backslash CSS
Issue was reported at https://github.com/forkcms/forkcms/issues/387
This commit is contained in:
parent
622b021aaf
commit
5ff011d577
@ -84,6 +84,19 @@ class CSSTest extends PHPUnit_Framework_TestCase
|
||||
Minify\CSS::STRIP_WHITESPACE
|
||||
);
|
||||
|
||||
/*
|
||||
* https://github.com/forkcms/forkcms/issues/387
|
||||
*
|
||||
* CSS backslash.
|
||||
* * Backslash escaped by backslash in CSS
|
||||
* * Double CSS backslashed escaped twice for in PHP string
|
||||
*/
|
||||
$tests[] = array(
|
||||
'.iconic.map-pin:before { content: "\\\\"; }',
|
||||
'.iconic.map-pin:before{content:"\\\\"}',
|
||||
Minify\CSS::ALL
|
||||
);
|
||||
|
||||
return $tests;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user