Whoops, forgot to edit WHATSNEW
[htmlpurifier.git] / tests / HTMLPurifier / AttrDef / CSS / BackgroundTest.php
blob8d826f874509bf1ae0085b760f0f0b6abb14fe6e
1 <?php
3 class HTMLPurifier_AttrDef_CSS_BackgroundTest extends HTMLPurifier_AttrDefHarness
6 public function test()
8 $config = HTMLPurifier_Config::createDefault();
9 $this->def = new HTMLPurifier_AttrDef_CSS_Background($config);
11 $valid = '#333 url("chess.png") repeat fixed 50% top';
12 $this->assertDef($valid);
13 $this->assertDef('url(\'chess.png\') #333 50% top repeat fixed', $valid);
14 $this->assertDef(
15 'rgb(34%, 56%, 33%) url(chess.png) repeat fixed top',
16 'rgb(34%,56%,33%) url("chess.png") repeat fixed top'
18 $this->assertDef(
19 'rgba(74, 12, 85, 0.35) repeat fixed bottom',
20 'rgba(74,12,85,.35) repeat fixed bottom'
22 $this->assertDef(
23 'hsl(244, 47.4%, 88.1%) right center',
24 'hsl(244,47.4%,88.1%) right center'
29 // vim: et sw=4 sts=4