Which operating system(s) does this bug appear on?
Windows
Which browser(s) does this bug appear on?
Chrome 117.0.5938.132 64 bits
Is this a regression?
No
Description
I am accepting these warnings when I run webdev build or "dart run build_runner build" I copied the lib pdfjs 3.11.174 in the web folder to be able to use it in my project and I saw that it is parsing CSS files, is there a way to ignore these warnings so that the angular don't parse them
Please provide the steps to reproduce the bug
Create a simple project with ngcli and unzip the pdfjs lib in the web folder
Please provide the exception or error you saw
PS C:\MyDartProjects\dart_bug_demo> dart run build_runner build
Building package executable...
Built build_runner:build_runner.
[INFO] Generating build script completed, took 462ms
[INFO] Precompiling build script... completed, took 8.4s
[INFO] Building new asset graph completed, took 1.7s
[INFO] Checking for unexpected pre-existing outputs. completed, took 1ms
[WARNING] ngdart on web/pdfjs/3.11.174/web/debugger.css:
Errors parsing CSS:
error on line 21, column 18: expected ), but found ,
╷
21 │ #PDFBug :is(input, button, select) {
│ ^
╵
error on line 21, column 34: expected {, but found )
╷
21 │ #PDFBug :is(input, button, select) {
│ ^
╵
error on line 21, column 36: expected }, but found {
╷
21 │ #PDFBug :is(input, button, select) {
│ ^
╵
error on line 22, column 20: expected {, but found ;
╷
22 │ font: message-box;
│ ^
╵
error on line 72, column 30: expected ), but found ,
╷
72 │ #PDFBug table.showText :is(tr, td) {
│ ^
╵
error on line 72, column 34: expected {, but found )
╷
72 │ #PDFBug table.showText :is(tr, td) {
│ ^
╵
error on line 72, column 36: expected }, but found {
╷
72 │ #PDFBug table.showText :is(tr, td) {
│ ^
╵
error on line 73, column 11: parsing error expected {
╷
73 │ border: 1px solid black;
│ ^
╵
error on line 73, column 12: parsing error expected }
╷
73 │ border: 1px solid black;
│ ^^
╵
error on line 73, column 26: expected {, but found ;
╷
73 │ border: 1px solid black;
│ ^
╵
[WARNING] ngdart on web/pdfjs/3.11.174/web/viewer.css:
Errors parsing CSS:
error on line 43, column 20: expected ), but found ,
╷
43 │ .textLayer :is(span, br) {
│ ^
╵
error on line 43, column 24: expected {, but found )
╷
43 │ .textLayer :is(span, br) {
│ ^
╵
error on line 43, column 26: expected }, but found {
╷
43 │ .textLayer :is(span, br) {
│ ^
╵
error on line 44, column 21: expected {, but found ;
╷
44 │ color: transparent;
│ ^
╵
error on line 138, column 51: expected ), but found ,
╷
138 │ .annotationLayer .textWidgetAnnotation :is(input, textarea):required,
│ ^
╵
error on line 138, column 61: expected {, but found )
╷
138 │ .annotationLayer .textWidgetAnnotation :is(input, textarea):required,
│ ^
╵
error on line 138, column 62: expected }, but found :
╷
138 │ .annotationLayer .textWidgetAnnotation :is(input, textarea):required,
│ ^
╵
error on line 141, column 32: expected ), but found .
╷
141 │ .buttonWidgetAnnotation:is(.checkBox, .radioButton)
│ ^
╵
error on line 141, column 55: expected {, but found )
╷
141 │ .buttonWidgetAnnotation:is(.checkBox, .radioButton)
│ ^
╵
error on line 218, column 22: expected ), but found .
╷
218 │ .annotationLayer :is(.linkAnnotation, .buttonWidgetAnnotation.pushButton) > a {
│ ^
╵
error on line 218, column 73: expected {, but found )
╷
218 │ .annotationLayer :is(.linkAnnotation, .buttonWidgetAnnotation.pushButton) > a {
│ ^
╵
error on line 227, column 1: expected }, but found .
╷
227 │ .annotationLayer
│ ^
╵
error on line 228, column 7: expected ), but found .
╷
228 │ :is(.linkAnnotation, .buttonWidgetAnnotation.pushButton):not(.hasBorder)
│ ^
╵
error on line 228, column 58: expected {, but found )
╷
228 │ :is(.linkAnnotation, .buttonWidgetAnnotation.pushButton):not(.hasBorder)
│ ^
╵
error on line 252, column 1: expected }, but found .
╷
252 │ .annotationLayer .textWidgetAnnotation :is(input, textarea),
│ ^
╵
error on line 252, column 49: expected ), but found ,
╷
252 │ .annotationLayer .textWidgetAnnotation :is(input, textarea),
│ ^
╵
error on line 252, column 59: expected {, but found )
╷
252 │ .annotationLayer .textWidgetAnnotation :is(input, textarea),
│ ^
╵
error on line 252, column 60: expected }, but found ,
╷
252 │ .annotationLayer .textWidgetAnnotation :is(input, textarea),
│ ^
╵
error on line 254, column 45: expected ), but found .
╷
254 │ .annotationLayer .buttonWidgetAnnotation:is(.checkBox, .radioButton) input {
│ ^
╵
error on line 254, column 68: expected {, but found )
╷
254 │ .annotationLayer .buttonWidgetAnnotation:is(.checkBox, .radioButton) input {
│ ^
╵
error on line 265, column 1: expected }, but found .
╷
265 │ .annotationLayer .textWidgetAnnotation :is(input, textarea):required,
│ ^
╵
error on line 265, column 49: expected ), but found ,
╷
265 │ .annotationLayer .textWidgetAnnotation :is(input, textarea):required,
│ ^
╵
error on line 265, column 59: expected {, but found )
╷
265 │ .annotationLayer .textWidgetAnnotation :is(input, textarea):required,
│ ^
╵
error on line 265, column 60: expected }, but found :
╷
265 │ .annotationLayer .textWidgetAnnotation :is(input, textarea):required,
│ ^
╵
error on line 268, column 30: expected ), but found .
╷
268 │ .buttonWidgetAnnotation:is(.checkBox, .radioButton)
│ ^
╵
error on line 268, column 53: expected {, but found )
╷
268 │ .buttonWidgetAnnotation:is(.checkBox, .radioButton)
│ ^
╵
error on line 285, column 1: expected }, but found .
╷
285 │ .annotationLayer .textWidgetAnnotation :is(input, textarea)[disabled],
│ ^
╵
error on line 285, column 49: expected ), but found ,
╷
285 │ .annotationLayer .textWidgetAnnotation :is(input, textarea)[disabled],
│ ^
╵
error on line 285, column 59: expected {, but found )
╷
285 │ .annotationLayer .textWidgetAnnotation :is(input, textarea)[disabled],
│ ^
╵
error on line 285, column 60: expected }, but found [
╷
285 │ .annotationLayer .textWidgetAnnotation :is(input, textarea)[disabled],
│ ^
╵
error on line 285, column 69: expected {, but found ]
╷
285 │ .annotationLayer .textWidgetAnnotation :is(input, textarea)[disabled],
│ ^
╵
error on line 285, column 70: expected }, but found ,
╷
285 │ .annotationLayer .textWidgetAnnotation :is(input, textarea)[disabled],
│ ^
╵
error on line 288, column 30: expected ), but found .
╷
288 │ .buttonWidgetAnnotation:is(.checkBox, .radioButton)
│ ^
╵
error on line 288, column 53: expected {, but found )
╷
288 │ .buttonWidgetAnnotation:is(.checkBox, .radioButton)
│ ^
╵
error on line 295, column 1: expected }, but found .
╷
295 │ .annotationLayer .textWidgetAnnotation :is(input, textarea):hover,
│ ^
╵
error on line 295, column 49: expected ), but found ,
╷
295 │ .annotationLayer .textWidgetAnnotation :is(input, textarea):hover,
│ ^
╵
error on line 295, column 59: expected {, but found )
╷
295 │ .annotationLayer .textWidgetAnnotation :is(input, textarea):hover,
│ ^
╵
error on line 295, column 60: expected }, but found :
╷
295 │ .annotationLayer .textWidgetAnnotation :is(input, textarea):hover,
│ ^
╵
error on line 298, column 30: expected ), but found .
╷
298 │ .buttonWidgetAnnotation:is(.checkBox, .radioButton)
│ ^
╵
error on line 298, column 53: expected {, but found )
╷
298 │ .buttonWidgetAnnotation:is(.checkBox, .radioButton)
│ ^
╵
error on line 302, column 1: expected }, but found .
╷
302 │ .annotationLayer .textWidgetAnnotation :is(input, textarea):hover,
│ ^
╵
error on line 302, column 49: expected ), but found ,
╷
302 │ .annotationLayer .textWidgetAnnotation :is(input, textarea):hover,
│ ^
╵
error on line 302, column 59: expected {, but found )
╷
302 │ .annotationLayer .textWidgetAnnotation :is(input, textarea):hover,
│ ^
╵
error on line 308, column 1: expected }, but found .
╷
308 │ .annotationLayer .textWidgetAnnotation :is(input, textarea):focus,
│ ^
╵
error on line 308, column 49: expected ), but found ,
╷
308 │ .annotationLayer .textWidgetAnnotation :is(input, textarea):focus,
│ ^
╵
error on line 308, column 59: expected {, but found )
╷
308 │ .annotationLayer .textWidgetAnnotation :is(input, textarea):focus,
│ ^
╵
error on line 316, column 1: expected }, but found .
╷
316 │ .annotationLayer .buttonWidgetAnnotation:is(.checkBox, .radioButton) :focus {
│ ^
╵
error on line 316, column 45: expected ), but found .
╷
316 │ .annotationLayer .buttonWidgetAnnotation:is(.checkBox, .radioButton) :focus {
│ ^
╵
error on line 316, column 68: expected {, but found )
╷
316 │ .annotationLayer .buttonWidgetAnnotation:is(.checkBox, .radioButton) :focus {
│ ^
╵
error on line 380, column 1: expected }, but found .
╷
380 │ .annotationLayer .buttonWidgetAnnotation:is(.checkBox, .radioButton) input {
│ ^
╵
error on line 380, column 45: expected ), but found .
╷
380 │ .annotationLayer .buttonWidgetAnnotation:is(.checkBox, .radioButton) input {
│ ^
╵
error on line 380, column 68: expected {, but found )
╷
380 │ .annotationLayer .buttonWidgetAnnotation:is(.checkBox, .radioButton) input {
│ ^
╵
error on line 494, column 2: parsing error expected }
╷
494 │ @media screen and (forced-colors: active) {
│ ^^^^^
╵
error on line 494, column 19: expected {, but found (
╷
494 │ @media screen and (forced-colors: active) {
│ ^
╵
error on line 494, column 41: expected }, but found )
╷
494 │ @media screen and (forced-colors: active) {
│ ^
╵
error on line 494, column 43: expected } after ruleset for @media
╷
494 │ @media screen and (forced-colors: active) {
│ ^
╵
error on line 494, column 43: premature end of file unknown CSS
╷
494 │ @media screen and (forced-colors: active) {
│ ^
╵
[INFO] Generating SDK summary completed, took 4.3s
[INFO] Running build completed, took 32.9s
[INFO] Caching finalized dependency graph completed, took 367ms
[INFO] Succeeded after 33.3s with 2545 outputs (7290 actions)
PS C:\MyDartProjects\dart_bug_demo>
Which ng* package(s) are the source of the bug?
ngdart
Which operating system(s) does this bug appear on?
Windows
Which browser(s) does this bug appear on?
Chrome 117.0.5938.132 64 bits
Is this a regression?
No
Description
I am accepting these warnings when I run webdev build or "dart run build_runner build" I copied the lib pdfjs 3.11.174 in the web folder to be able to use it in my project and I saw that it is parsing CSS files, is there a way to ignore these warnings so that the angular don't parse them
Please provide the steps to reproduce the bug
Create a simple project with ngcli and unzip the pdfjs lib in the web folder
Please provide the exception or error you saw
Anything else?
No response