I dug into the test failures above and this is because we return wrong styles, because the overflow panel was never opened and thus the styles we were querying are disconnected from the document. Bug 1483798 covers not returning a style for these elements (patch there incoming). Differential Revision: https://phabricator.services.mozilla.com/D131075