Firefox 135 uses resize observer to toggle the expanded state, so the attribute will get removed when autohide makes the tabs collapse. Thus, we cannot differentiate between manually collapsed and expanded states.
Rewriting the old style to work with both vertical and horizontal tabs