mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 09:41:40 +09:00
Fux #2006 allow some aspect-ratio values and all valid object-fit values in HTML filter
This commit is contained in:
parent
bf54cd8ceb
commit
a44959382e
2 changed files with 16 additions and 0 deletions
|
|
@ -98,6 +98,14 @@ class HTMLFilterTest extends \Codeception\TestCase\Test
|
|||
$source = '<div style="overflow-x:auto;overflow-y:scroll;left:-500px;"></div>';
|
||||
$target = '<div style="overflow-x:auto;overflow-y:scroll;"></div>';
|
||||
$this->assertEquals($target, Rhymix\Framework\Filters\HTMLFilter::clean($source));
|
||||
|
||||
$source = '<div style="aspect-ratio:9/16;object-fit:cover;"></div>';
|
||||
$target = '<div style="aspect-ratio:9/16;object-fit:cover;"></div>';
|
||||
$this->assertEquals($target, Rhymix\Framework\Filters\HTMLFilter::clean($source));
|
||||
|
||||
$source = '<div style="aspect-ratio:3;"></div>';
|
||||
$target = '<div style="aspect-ratio:3;"></div>';
|
||||
$this->assertEquals($target, Rhymix\Framework\Filters\HTMLFilter::clean($source));
|
||||
}
|
||||
|
||||
public function testHTMLFilterEmbeddedMedia()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue