I need to develop a widget IIFE library loaded through a <script src="..."></script>
tag delivering some features through some UI components.
Since I have no control over the page layout and @media
queries relate to the window, not to the container, I really fail to understand how to make responsive components that will adapt and look great in every situation.
Using iframes allows to overcome this issue as @media
will then relate to the iframe wrapping the web-component, but iframe come with a lot of downsides.
Hence, how are Web Components made responsive without iframes ?