3 document
.addEventListener('DOMContentLoaded', async () => {
4 const svg
= document
.createElementNS('http://www.w3.org/2000/svg', 'svg')
5 const filter
= document
.createElementNS('http://www.w3.org/2000/svg', 'filter')
6 filter
.setAttribute('id', 'id_0')
7 svg
.appendChild(filter
)
8 document
.documentElement
.appendChild(svg
)
9 const doc
= new Document()
10 const canvas
= document
.createElement('canvas')
11 const context
= canvas
.getContext('2d')
12 context
.filter
= 'url(#id_0)'
13 doc
.adoptNode(document
.documentElement
)
15 setTimeout('self.close()', 2000)