mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-07-31 03:10:09 +02:00
Add CSSLength support, and roll out to all applicable styles.
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@237 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
@@ -24,6 +24,13 @@ class HTMLPurifier_AttrDef_CSSTest extends HTMLPurifier_AttrDefHarness
|
||||
$this->assertDef('background-color:transparent;');
|
||||
$this->assertDef('color:#F00;');
|
||||
$this->assertDef('border-top-color:#F00;');
|
||||
$this->assertDef('border-top-width:thin;');
|
||||
$this->assertDef('border-top-width:12px;');
|
||||
$this->assertDef('border-top-width:-12px;', false);
|
||||
$this->assertDef('letter-spacing:normal;');
|
||||
$this->assertDef('letter-spacing:2px;');
|
||||
$this->assertDef('word-spacing:normal;');
|
||||
$this->assertDef('word-spacing:3em;');
|
||||
|
||||
// duplicates
|
||||
$this->assertDef('text-align:right;text-align:left;',
|
||||
|
Reference in New Issue
Block a user