Jan2026 fixes (#1077)
* fix release script * fix svgcanvas edge cases * Update path-actions.js * add modern js * update deps * Update CHANGES.md
This commit is contained in:
@@ -38,6 +38,18 @@ describe('clearSvgContentElementInit', () => {
|
||||
expect(svgContent.getAttribute('xmlns')).toBe('http://www.w3.org/2000/svg')
|
||||
})
|
||||
|
||||
it('resets stale svgcontent attributes', () => {
|
||||
const { canvas, svgContent } = buildCanvas(false)
|
||||
svgContent.setAttribute('viewBox', '0 0 10 10')
|
||||
svgContent.setAttribute('class', 'stale')
|
||||
initClear(canvas)
|
||||
|
||||
clearSvgContentElementInit()
|
||||
|
||||
expect(svgContent.getAttribute('viewBox')).toBe(null)
|
||||
expect(svgContent.getAttribute('class')).toBe(null)
|
||||
})
|
||||
|
||||
it('honors show_outside_canvas by leaving overflow visible', () => {
|
||||
const { canvas, svgContent } = buildCanvas(true)
|
||||
initClear(canvas)
|
||||
|
||||
Reference in New Issue
Block a user