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
{{ message }}
Repository navigation
CSS styles not applied if using multiple attribute selectors to style an element with the direct child selector #49157
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: coreIssues related to the framework runtimestate: has PR
Which @angular/* package(s) are the source of the bug?
compiler
Is this a regression?
Yes
Description
If using multiple attribute selectors to style an element with the direct child selector, the styles are not applied. This happens only in a development build.
Reproduction: app.component.html
<divclass="example-1">
Example 1
</div><divclass="example-2">
Example 2
</div>
app.component.scss
:host {
&:is([data-foo="bar"]) {
> div.example-1 {
background-color: lightskyblue; // working in dev and prod build
}
}
&:is([data-foo="bar"], [data-foo-2="bar-2"]) {
> div.example-2 {
background-color: violet; // ONLY working in prod build
}
}
}
Please provide a link to a minimal reproduction of the bug
Is this resolved? Having several strange things going on with scss compiler doing animations on child selectors. Never had this problem before in ruby on rails "compass" scss compiler.
For example
@for $i from 1 through 4 {
li:nth-last-child(#{$i}){
a{
transform: translateX(-100vw);
transition: background-color;
transition-duration: 0.2s;
transition-timing-function: ease-in-out;
animation: menuDesktopPopulate 0.3s ease-out #{$i * 0.1}s forwards;
&:hover {
animation: fadeAndBlink 0.3s ease-out #{$i * 0.1}s forwards;
}
}
}
}
This renders out so the menuDesktopPopulate is added to the &:hover instead of fadeAndBlink
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: coreIssues related to the framework runtimestate: has PR
Activity
JeanMeche commentedon Feb 22, 2023
Basically, the support for multiple arguments for CSS pseudo class functions was broken.
I've opened the PR that fixes this.
lipadeus commentedon Feb 3, 2024
Is this resolved? Having several strange things going on with scss compiler doing animations on child selectors. Never had this problem before in ruby on rails "compass" scss compiler.
For example
JeanMeche commentedon Sep 3, 2024
I'll close this as a duplicate of #45686.
angular-automatic-lock-bot commentedon Oct 4, 2024
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.