I have a legacy web app with non-standard css property value;
myClass{
overflow: overlay;
}
I googled a bit, but did not found much about this property.
This link says that it works like overflow:auto
for webkit browsers, but it is false.
Simple sample to show the difference and existance of this value. Checked in last chrome.
Is it deprecated now?
Is it a crutch for legacy browsers? (What browsers exactly?)
What is the semantic of this value?
Should I replace it?
How can I replace it?
There is an easier way to have the same effect that would not trigger reflow ever: using visibility
property and nested blocks:
.scrollbox {
width: 10em;
height: 10em;
overflow: auto;
visibility: hidden;
}
.scrollbox-content,
.scrollbox:hover,
.scrollbox:focus {
visibility: visible;
}
There was/is an undocumented overlay option for overflow in webkit browsers. I don't suggest that you use until it's standardized.
https://bugs.webkit.org/show_bug.cgi?id=32388
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With