:host-context() works like :host() except that it selects based on the host element's ancestors. So in replacePseudoStatesWithAncestorSelector, if :host-context() is part of the selector, we append the class selectors to it instead of prepending a :host() selector with them.
:host-context()
works like:host()
except that it selects based on the host element's ancestors. So inreplacePseudoStatesWithAncestorSelector
, if:host-context()
is part of the selector, we append the class selectors to it instead of prepending a:host()
selector with them.