ladybird/Tests/LibWeb/Ref/expected/paintable-visiblity-after-opacity-change-from-zero-ref.html
Callum Law 3aff3327c4 LibWeb: Invalidate layout on opacity change to/from zero
As of 7dc8062 paintables compute and cache their visibility (which
depends on opacity) at construction - this cached value can fall out of
sync with reality if if the opacity changes to/from zero within the
lifetime of that paintable.

This commit invalidates layout when an opacity changes to/from zero so
that we reconstruct paintables with the correct visibility.
2025-08-18 10:21:44 +01:00

15 lines
272 B
HTML

<!DOCTYPE html>
<html>
<head>
<style>
#foo {
opacity: 0.5;
background-color: red;
height: 100px;
}
</style>
</head>
<body>
<div id="foo"></div>
</body>
</html>