css combination (position:sticky; position: fixed; overflow: auto) works unexpected at Firefox browser
Hello, I have a sample which works identically with well-known browsers (Edge, Chrome, Brave). But not with FF. Sample composed with elements with set css attributes:
- wrapper has the overflow: auto;
- element (let say "A1", nested into wrapper) has the position: sticky;
- element (let say "A2", nested into A1) has the "position: fixed;"
Run and you can notice that A2 will cut if the height will reduce. This could be repro only for FF, not for other browsers. Could you, please, give an idea of the workaround?
Sample could be found here.
Thanks
Hello,
I have a sample which works identically with well-known browsers (Edge, Chrome, Brave). But not with FF.
Sample composed with elements with set css attributes:
* wrapper has the ''overflow: auto;''
* element (let say "A1", nested into wrapper) has the ''position: sticky;''
* element (let say "A2", nested into A1) has the "position: fixed;"
Run and you can notice that A2 will cut if the height will reduce. This could be repro only for FF, not for other browsers.
Could you, please, give an idea of the workaround?
Sample could be found [https://codepen.io/pkostaki/pen/abVQgBr here].
Thanks
Geändert am