1
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2025-08-11 00:24:03 +02:00

Issue 238 remove leading zeroes except if there is only zero (#239)

* Issue 238 remove leading zeroes except if there is only zero

* Issue-238 unit test fixes
This commit is contained in:
lubomirbartos
2019-11-21 16:05:07 +01:00
committed by Edward Z. Yang
parent 4faca32a4d
commit df923d1f15
6 changed files with 20 additions and 14 deletions

View File

@@ -140,8 +140,8 @@ class HTMLPurifier_AttrDef_CSSTest extends HTMLPurifier_AttrDefHarness
$this->assertDef('scrollbar-highlight-color:#ff69b4;');
$this->assertDef('scrollbar-shadow-color:#f0f;');
$this->assertDef('-moz-opacity:.2;');
$this->assertDef('-khtml-opacity:.2;');
$this->assertDef('-moz-opacity:0.2;');
$this->assertDef('-khtml-opacity:0.2;');
$this->assertDef('filter:alpha(opacity=20);');
$this->assertDef('border-top-left-radius:55pt 25pt;');
@@ -160,7 +160,7 @@ class HTMLPurifier_AttrDef_CSSTest extends HTMLPurifier_AttrDefHarness
$this->assertDef('display:none;');
$this->assertDef('visibility:visible;');
$this->assertDef('overflow:scroll;');
$this->assertDef('opacity:.2;');
$this->assertDef('opacity:0.2;');
}
public function testForbidden()