### Which @angular/* package(s) are the source of the bug? compiler ### Is this a regression? No ### Description I am using the default value of View.encapsulation and get the following problem:  This will only scope the first animation theoFlyInX. Chrome dev console:  If I declare multiple animations like this then it will work:  Chrome dev console:  I think the problem lies in the following file: https://github.com/angular/angular/blob/a50ff60bff64859e4cd279a9ce0c8b47e6dfa691/packages/compiler/src/shadow_css.ts#L303 ### Please provide a link to a minimal reproduction of the bug _No response_ ### Please provide the exception or error you saw _No response_ ### Please provide the environment you discovered this bug in (run `ng version`) _No response_ ### Anything else? _No response_