failure = {
const svg = selection.create('svg')
const foreignObject = svg.append('foreignObject')
.attr('width', width)
.attr('height', height);
const canvas = foreignObject.append('canvas')
const node = canvas.node().nodeName
const constructor = canvas.node().constructor.name
try {
const context = canvas.node().getContext('2d')
context.fillStyle = 'blue';
context.fillRect(0, 0, width, height);
} catch (error) {
return { svg, node, constructor, error };
}
}