Viktor Hubert
Viktor Hubert
Sounds good 👍 It might be a bit tricky, as what the plugin does is that instead of adding CSS to the DOM based on certain element conditions, it instead...
Actually, using something like styletron to handle css applying based on style objects would be the easiest, since then we wouldn't need to come up with a way to apply...
Sure, no worries 👍 Have you tried the package in a project already, or just planning to?
Got it, thanks 👍 I thought someone would sooner or later want this feature. 😅
I wonder if it would be possible to ship polyfilled and non-polyfilled versions. 🤔
note: Look into babel-preset-env, which is supposedly able to auto-polyfill source code by injecting require statements where needed. (It still probably doesn't polyfill ResizeObserver though.)
Still no easy solution for this (https://github.com/w3ctag/polyfills/issues/6) but shipping a polyfilled / `/non-polyfilled` version seems like the best way for now. (Where polyfills should be included in the lib in...
UMD support will probably need to be dropped, as automatic polyfilling causes some weird issues with it. (cjs, esm are both fine) I can polyfill most things automatically, but ResizeObserver...
The basic `Container` class is framework agnostic, so that definitely should work in case the [react-specific implementation](https://github.com/ZeeCoder/container-query/blob/master/packages/react-container-query/src/ContainerQuery.js) doesn't.
Yeah I guess certain edge cases could be detected, like: ```pcss div { width: 90px; padding: 10px; @container (width >= 100px) { padding: 5px; } } ``` If the width...