1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 05:27:43 +00:00

LibWeb: Update visibility when Node was invisible before

This commit is contained in:
Jan Metzger 2022-09-15 21:01:43 +02:00 committed by Sam Atkins
parent d1de7f7782
commit 931458c337
2 changed files with 16 additions and 2 deletions

View file

@ -24,6 +24,13 @@
.red {
background: red;
}
.hover-visible {
display: inline-block;
opacity: 0;
}
.hover:hover .hover-visible {
opacity: 1;
}
</style>
</head>
<body>
@ -66,5 +73,13 @@
50% opacity inside 70% opacity
</div>
</div>
<div class="red hover">
Visible on hover
<div class="hover-visible">
I'm visible!
</div>
</div>
</body>
</html>