diff options
author | Go MAEDA <maeda@farend.jp> | 2023-01-11 13:11:04 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2023-01-11 13:11:04 +0000 |
commit | fcd4f7f6c94ac2a017e3e7fcec66af2d474f649b (patch) | |
tree | f5cb3a0909fc59fc678688fa1c0616f715a1da04 /test/unit/lib | |
parent | 1c937f1e2338173b137a730bf0a08797315eff2b (diff) | |
download | redmine-fcd4f7f6c94ac2a017e3e7fcec66af2d474f649b.tar.gz redmine-fcd4f7f6c94ac2a017e3e7fcec66af2d474f649b.zip |
CommonMark Markdown formatter does not support min-width, max-width, min-height, and max-height CSS properties (#38073).
Patch by Go MAEDA.
git-svn-id: https://svn.redmine.org/redmine/trunk@22025 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/lib')
-rw-r--r-- | test/unit/lib/redmine/wiki_formatting/common_mark/sanitization_filter_test.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/unit/lib/redmine/wiki_formatting/common_mark/sanitization_filter_test.rb b/test/unit/lib/redmine/wiki_formatting/common_mark/sanitization_filter_test.rb index 6741c7174..ca2e141f1 100644 --- a/test/unit/lib/redmine/wiki_formatting/common_mark/sanitization_filter_test.rb +++ b/test/unit/lib/redmine/wiki_formatting/common_mark/sanitization_filter_test.rb @@ -98,6 +98,10 @@ if Object.const_defined?(:CommonMarker) '<span style="color: #333; ">hello</span>"' ], [ + '<img src="photo.jpg" style="min-width: 100px; max-width: 200px; min-height: 100px; max-height: 200px;">', + '<img src="photo.jpg" style="min-width: 100px; max-width: 200px; min-height: 100px; max-height: 200px;">' + ], + [ '<b>Lo<!-- comment -->rem</b> <a href="pants" title="foo" style="text-decoration: underline;">ipsum</a> <a href="http://foo.com/"><strong>dolor</strong></a> sit<br/>amet <style>.foo { color: #fff; }</style> <script>alert("hello world");</script>', '<b>Lorem</b> <a href="pants" title="foo">ipsum</a> <a href="http://foo.com/"><strong>dolor</strong></a> sit<br>amet .foo { color: #fff; } ' ], |