3 class HTMLPurifier_AttrDef_HTML_LengthTest
extends HTMLPurifier_AttrDef_HTML_PixelsTest
7 $this->def
= new HTMLPurifier_AttrDef_HTML_Length();
16 $this->assertDef('25%');
18 // Firefox maintains percent, so will we
19 $this->assertDef('0%');
21 // 0% <= percent <= 100%
22 $this->assertDef('-15%', '0%');
23 $this->assertDef('120%', '100%');
25 // fractional percents, apparently, aren't allowed
26 $this->assertDef('56.5%', '56%');