Newer
Older
minerva / Tests / LibWeb / Text / input / SVG / getBBox-outermost-svg-element-crash.html
@minerva minerva on 13 Jul 404 bytes Initial commit
<!DOCTYPE html>
<script src="../include.js"></script>
<svg></svg>
<script>
    test(() => {
        const svgElement = document.querySelector("svg");
        const boundingBox = svgElement.getBBox();
        println(`Bounding box of empty SVG element - x: ${boundingBox.x}, y: ${boundingBox.y}, width: ${boundingBox.width}, height: ${boundingBox.height}`);
        svgElement.remove();
    });
</script>