mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-15 15:42:52 +00:00
...since they can also be percentages. Better to resolve them to a pair
of absolute values, and then compare those. :^)
Regressed in 921aee8c66
.
12 lines
359 B
HTML
12 lines
359 B
HTML
<script src="../include.js"></script>
|
|
<script>
|
|
test(() => {
|
|
document.body.style.opacity = '0.5';
|
|
document.body.offsetWidth
|
|
document.body.style.opacity = '100.0%';
|
|
document.body.offsetWidth
|
|
document.body.style.opacity = '0.5';
|
|
document.body.offsetWidth
|
|
println("Didn't crash :^)");
|
|
});
|
|
</script>
|