This new media query feature replaces the old -moz-bool-pref in Firefox 137. -moz-pref can be used to also query values of string and number prefs
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