Open peterschewe opened 2 years ago
This has something to do with the class name .container
followed by a -
I think this line in the polyfill causing the error: https://github.com/GoogleChromeLabs/container-query-polyfill/blob/faf2600f7cd7b16e500f40676dd1b144005bd186/src/engine.ts#L291
Because of this error i needed to remove the .container
styles in assets/scss/_base/base.scss
in january.
We should add a hint in the js where the polyfill is initialized
I had wondered a few times where the .container
styles had gone 😅
This definitely caused us some headaches and in general I believe we should not include progressive polyfills per default, only those ensuring x browser compatibility.
I'm fine with not including this by default but we should keep it around somewhere so that it's easy accessible in case someone needs to use it.
There's already a PR in place to fix this issue but the repository is kind of stale as the team is trying to rewrite the polyfill to match the latest spec and align with the web platform tests.
https://github.com/GoogleChromeLabs/container-query-polyfill/pull/33
There is a strange bug with the container query polyfill.
This example...
...generates a console error
It seems to be a combination of the class name (if the string
container
is included) and the SCSS Parent Selector (&--
).Findings from the debugging:
This works...
...and also this