Using CSS, it is impossible to determine the viewport size when an extension panel becomes smaller than 132px.
As previously mentioned here, this limitation takes away control from the developer, and can cause layout issues. It also encourages developers to create larger CEP panels instead of small compact ones, which affects the user experience.