LibWeb: Handle calculations without a context better

This commit is contained in:
stelar7 2024-10-16 15:00:25 +02:00 committed by Andreas Kling
commit 4408ea7c9b
Notes: github-actions[bot] 2024-10-16 14:40:42 +00:00
4 changed files with 41 additions and 3 deletions

View file

@ -0,0 +1,15 @@
<script src="../include.js"></script>
<script>
test(() => {
const testElement = document.getElementById('target');
testElement.style = "";
testElement.style.transform = 'rotate(atan2(1rem, -1rem))';
getComputedStyle(testElement).transform;
println("NO CRASH");
});
</script>
<div id="target"></div>