Added word spacing to text formatting tools

This commit is contained in:
Timo Dittmann
2021-01-25 13:25:22 +01:00
committed by JFH
parent 92eac95627
commit 69bf3d9d81
70 changed files with 320 additions and 61 deletions

View File

@@ -46,4 +46,14 @@ describe('sanitize', function () {
assert.equal(text.getAttribute('text-decoration'), 'underline');
});
it('Test sanitizeSvg() does not strip word-spacing attribute from text', function () {
const text = document.createElementNS(NS.SVG, 'text');
text.setAttribute('word-spacing', '10');
svg.append(text);
sanitize.sanitizeSvg(text);
assert.equal(text.getAttribute('word-spacing'), '10');
});
});