Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Component level CSS: rgba() transforms to #rrggbbaa hex value without respecting browserslist config #21594

Closed
1 of 15 tasks
kiddliu opened this issue Aug 18, 2021 · 3 comments · Fixed by #21595
Closed
1 of 15 tasks

Comments

@kiddliu
Copy link

kiddliu commented Aug 18, 2021

🐞 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?

Yes, the previous version in which this bug was not present was: 12.1.x

Description

A clear and concise description of the problem...
box-shadow: 0 3px 10px, rgba(0, 0, 0, 0.15);

transforms to

box-shadow:0 3px 10px,#00000026

but in browserslist it specifies

edge >= 17

and Edge does not support #rrggbbaa hex color notation

🔬 Minimal Reproduction

Please check the sample repo at https://github.com/kiddliu/ng-postcss-issue

🔥 Exception or Error

The legacy Edge browser completely ignores the color

🌍 Your Environment




Angular CLI: 12.2.0
Node: 14.17.3
Package Manager: npm 6.14.13
OS: win32 x64

Angular: 12.2.0
... animations, cdk, cli, common, compiler, compiler-cli, core
... forms, material, platform-browser, platform-browser-dynamic
... router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1202.0
@angular-devkit/build-angular   12.2.0
@angular-devkit/core            12.2.0
@angular-devkit/schematics      12.2.0
@schematics/angular             12.2.0
rxjs                            6.6.7
typescript                      4.2.4

Anything else relevant?

@alan-agius4
Copy link
Collaborator

alan-agius4 commented Aug 18, 2021

Node: Edge 17 is not supported by Angular. See https://angular.io/guide/browser-support.

That said, we should provide the list of supported browsers to the optimizer.

@ngbot ngbot bot modified the milestone: needsTriage Aug 18, 2021
@alan-agius4 alan-agius4 added freq1: low Only reported by a handful of users who observe it rarely type: bug/fix severity5: regression labels Aug 18, 2021
@ngbot ngbot bot modified the milestones: needsTriage, Backlog Aug 18, 2021
clydin pushed a commit that referenced this issue Aug 18, 2021
…uild

With this change we provide the list of supported browsers to Esbuild during CSS optimizations, so it can perform optimizations based on the browser support needed.

Closes #21594
clydin pushed a commit that referenced this issue Aug 18, 2021
…uild

With this change we provide the list of supported browsers to Esbuild during CSS optimizations, so it can perform optimizations based on the browser support needed.

Closes #21594
@RomanHubyak
Copy link

Isn't fixed for IE 11.

@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants