mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 18:17:22 +02:00
LibWeb: Handle calculations without a context better
This commit is contained in:
Notes:
github-actions[bot]
2024-10-16 14:40:42 +00:00
Author: https://github.com/stelar7 Commit: https://github.com/LadybirdBrowser/ladybird/commit/4408ea7c9be Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1827
15
Tests/LibWeb/Text/input/css/calc-missing-context.html
Normal file
15
Tests/LibWeb/Text/input/css/calc-missing-context.html
Normal 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>
|
||||
Reference in New Issue
Block a user