home
/
zktecojo
/
public_html
/
htmlpurifier
/
tests
/
HTMLPurifier
/
AttrDef
/
CSS
➕ New
📤 Upload
✎ Editing:
BackgroundTest.php
← Back
<?php class HTMLPurifier_AttrDef_CSS_BackgroundTest extends HTMLPurifier_AttrDefHarness { public function test() { $config = HTMLPurifier_Config::createDefault(); $this->def = new HTMLPurifier_AttrDef_CSS_Background($config); $valid = '#333 url("chess.png") repeat fixed 50% top'; $this->assertDef($valid); $this->assertDef('url(\'chess.png\') #333 50% top repeat fixed', $valid); $this->assertDef( 'rgb(34, 56, 33) url(chess.png) repeat fixed top', 'rgb(34,56,33) url("chess.png") repeat fixed top' ); } } // vim: et sw=4 sts=4
💾 Save Changes
Cancel
📤 Upload File
×
Select File
Upload
Cancel
➕ Create New
×
Type
📄 File
📁 Folder
Name
Create
Cancel
✎ Rename Item
×
Current Name
New Name
Rename
Cancel
🔐 Change Permissions
×
Target File
Permission (e.g., 0755, 0644)
0755
0644
0777
Apply
Cancel