Files
angular__angular/packages
Matthew Berry aad6ced0ef fix(compiler): support one additional level of nesting in :host()
Previously we supported one level of nested parentheses inside of a
`:host()` selector, e.g. `:host(:not(p))`. This caused a breakage in g3
when I migrated a selector from `:host:not(:has(p))` to
`:host(:not(:has(p)))`. This change adds support for just one more level
of nesting.

It'd be nice to move everything to a real CSS parser (or even update it
to count parentheses like I did with :host-context()), but I wasn't able
to get that to work in ~20 minutes and I'm focusing on other things at
the moment.

This change punts the problem until somebody tries to use just one more
level of nesting in a selector.

Fixes #64830

(cherry picked from commit 444143758e)
2025-11-06 18:53:47 +00:00
..
2025-11-06 10:07:13 -08:00
2025-11-06 10:07:13 -08:00
2025-11-06 10:07:13 -08:00
2025-11-06 10:07:13 -08:00
2025-11-06 10:07:13 -08:00
2025-11-06 10:07:13 -08:00
2025-11-06 10:07:13 -08:00
2025-11-06 10:07:13 -08:00
2025-11-06 18:51:31 +00:00
2025-11-06 10:07:13 -08:00
2025-11-06 10:07:13 -08:00
2025-11-06 10:07:13 -08:00
2025-11-06 10:07:13 -08:00
2025-11-06 10:07:13 -08:00
2025-11-06 10:07:13 -08:00
2025-11-06 10:07:13 -08:00
2025-11-06 10:07:13 -08:00
…
…
2025-11-06 10:07:13 -08:00

Angular

The sources for this package are in the main Angular repo. Please file issues and pull requests against that repo.

Usage information and reference details can be found in Angular documentation.

License: MIT