0
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2024-12-23 00:41:52 +00:00

Remove double %

This commit is contained in:
f.godfrin 2017-02-09 23:37:36 +01:00
parent 0d5ab2fe13
commit bd92f3531b

View File

@ -37,7 +37,7 @@ class HTMLPurifier_AttrDef_CSS_ColorTest extends HTMLPurifier_AttrDefHarness
$this->assertDef('cmyk(40, 23, 43, 23)', false); $this->assertDef('cmyk(40, 23, 43, 23)', false);
$this->assertDef('rgb(0%, 23, 68%)', false); // no mixed type $this->assertDef('rgb(0%, 23, 68%)', false); // no mixed type
$this->assertDef('rgb(231, 144, 28.2%)', false); // no mixed type $this->assertDef('rgb(231, 144, 28.2%)', false); // no mixed type
$this->assertDef('hsl(18%,12%%,89%)', false); // integer, percentage, percentage $this->assertDef('hsl(18%,12%,89%)', false); // integer, percentage, percentage
// clip numbers outside sRGB gamut // clip numbers outside sRGB gamut
$this->assertDef('rgb(200%, -10%, 0%)', 'rgb(100%,0%,0%)'); $this->assertDef('rgb(200%, -10%, 0%)', 'rgb(100%,0%,0%)');