mirror of
https://github.com/RGBCube/serenity
synced 2025-05-15 23:54:57 +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>
|