-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Closed
Labels
area: @angular-devkit/build-angulardevkit/build-angular:browserfreq1: lowOnly reported by a handful of users who observe it rarelyOnly reported by a handful of users who observe it rarelyseverity3: brokenstate: blocked on upstreamtype: bug/fix
Milestone
Description
🐞 Bug report
Command (mark with an x)
- new
- build
- serve
- test
- e2e
- generate
- add
- update
- lint
- extract-i18n
- run
- config
- help
- version
- doc
Is this a regression?
NoDescription
`ng build` inlines critical css but causes warnings when using pseudo selectors inside a :is or :where.This is not a breaking bug. Usually this only involves states of elements, which is not necessary for critical css. However, it might exclude a state that is relevant.
Maybe you consider this out of scope?
🔬 Minimal Reproduction
https://github.com/kyubisation/ng-pseudo-selector-inlining
Place the following in styles.css:
.example:is(:hover, .active) {
color: green;
}🔥 Exception or Error
⠋ Generating index html...1 rules skipped due to selector errors:
:where(.example):is(,.active) -> Empty sub-selector
🌍 Your Environment
Angular CLI: 13.2.3
Node: 16.12.0
Package Manager: npm 6.14.16
OS: win32 x64
Angular: 13.2.2
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router
Package Version
---------------------------------------------------------
@angular-devkit/architect 0.1302.3
@angular-devkit/build-angular 13.2.3
@angular-devkit/core 13.2.3
@angular-devkit/schematics 13.2.3
@angular/cli 13.2.3
@schematics/angular 13.2.3
rxjs 7.5.4
typescript 4.5.5
Anything else relevant?
artaommahe, jeripeierSBB, Dominik-Meier and ben12
Metadata
Metadata
Assignees
Labels
area: @angular-devkit/build-angulardevkit/build-angular:browserfreq1: lowOnly reported by a handful of users who observe it rarelyOnly reported by a handful of users who observe it rarelyseverity3: brokenstate: blocked on upstreamtype: bug/fix
