I've found some unexpected behaviour with a random content in my app disappearing when a loading indicator elsewhere in the app is visible.
I managed to hack the HTML into a minimal reproducible example.
The visualisation is inside a react-virtualized-auto-sizer
, which ultimately puts it's content in a div with the CSS:
overflow: visible;
height: 0px;
width: 0px;
It also injects position: relative;
to the parent div. If either of these conditions are not met it displays fine. Similarly, if the animation
on the rotating div is not present, it displays fine.
It's only if all these conditions (animation in the DOM tree, content inside a overflow: visible
div inside a position: relative
div) fails to render:
<!DOCTYPE html>
<html>
<head>
<style>
.animate {
animation: spin 4s infinite linear;
width: 40px;
}
@keyframes spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
.relative {
position: relative;
height: 20px;
}
.overflow {
overflow: visible;
height: 0px;
width: 0px;
}
</style>
</head>
<body>
<div class="animate">
anim
</div>
There should "text" visible below
<div class="relative">
<div class="overflow">
text
</div>
</div>
There should "text" visible above
</body>
</html>