mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2024-12-22 00:11:52 +00:00
feat: Add CSS direction support (#429)
This commit is contained in:
parent
5d154a2393
commit
63e631ebd3
@ -26,6 +26,11 @@ class HTMLPurifier_CSSDefinition extends HTMLPurifier_Definition
|
||||
false
|
||||
);
|
||||
|
||||
$this->info['direction'] = new HTMLPurifier_AttrDef_Enum(
|
||||
['ltr', 'rtl'],
|
||||
false
|
||||
);
|
||||
|
||||
$border_style =
|
||||
$this->info['border-bottom-style'] =
|
||||
$this->info['border-right-style'] =
|
||||
|
@ -13,6 +13,8 @@ class HTMLPurifier_AttrDef_CSSTest extends HTMLPurifier_AttrDefHarness
|
||||
{
|
||||
// regular cases, singular
|
||||
$this->assertDef('text-align:right;');
|
||||
$this->assertDef('direction:ltr;');
|
||||
$this->assertDef('direction:rtl;');
|
||||
$this->assertDef('border-left-style:solid;');
|
||||
$this->assertDef('border-style:solid dotted;');
|
||||
$this->assertDef('clear:right;');
|
||||
|
Loading…
Reference in New Issue
Block a user