You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But I did not add scoping for the container names as I am not completely sure if that is wanted/needed, do container apply from outside real native shadowDoms?
This stackblitz example shows that that is actually the case (in Chrome 107 at least)
If you look at the css specs (and in particular this w3c issue) it seems like it is not really clear what the relationship with shadow Dom boundaries is 😕
So I guess for now we may not scope the names? what do you think?
Additionally... I am a bit worried of how container queries without container names can work in the emulated shadow dom if the specs will specify that shadow dom boundaries should apply.
Since the browser is going to take an element and look up the dom for its nearest container anchestor, it feels like we may not have a way to prevent that.... (unless we come up with some serious hack?)
So either way, if we can't enforce the emulated shadow dom boundaries for unnamed containers I wonder if enforcing them for named containers (which we can definitely do) would make the whole thing inconsistent and confusing 😕
Activity
glued commentedon Nov 29, 2022
Also worth noting that
container-namewill need need to be scoped per component as well.https://developer.mozilla.org/en-US/docs/Web/CSS/container-name
glued commentedon Nov 30, 2022
Also note that container queries landed in Chrome 105 stable
https://chromestatus.com/feature/6525308435955712
dario-piotrowicz commentedon Dec 4, 2022
@glued I've opened a PR which fixed your issue 🙂
But I did not add scoping for the container names as I am not completely sure if that is wanted/needed, do container apply from outside real native shadowDoms?
This stackblitz example shows that that is actually the case (in Chrome 107 at least)
If you look at the css specs (and in particular this w3c issue) it seems like it is not really clear what the relationship with shadow Dom boundaries is 😕
So I guess for now we may not scope the names? what do you think?
Additionally... I am a bit worried of how container queries without container names can work in the emulated shadow dom if the specs will specify that shadow dom boundaries should apply.
Since the browser is going to take an element and look up the dom for its nearest container anchestor, it feels like we may not have a way to prevent that.... (unless we come up with some serious hack?)
So either way, if we can't enforce the emulated shadow dom boundaries for unnamed containers I wonder if enforcing them for named containers (which we can definitely do) would make the whole thing inconsistent and confusing 😕
fix(compiler): make sure selectors inside container queries are corre…
angular-automatic-lock-bot commentedon Jan 6, 2023
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.
fix(compiler): make sure selectors inside container queries are corre…