ladybird/Tests/LibWeb/Text/input/css/element-opacity-change-invalidation.html
Andreas Kling 9937fcc5e1 LibWeb: Don't assume opacity values are CSS numbers
...since they can also be percentages. Better to resolve them to a pair
of absolute values, and then compare those. :^)

Regressed in 921aee8c66.
2023-07-31 09:16:18 +02:00

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>