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

Autoprefixer does not work in Angular 7 #13344

Closed
HristoP96 opened this issue Jan 2, 2019 · 4 comments
Closed

Autoprefixer does not work in Angular 7 #13344

HristoP96 opened this issue Jan 2, 2019 · 4 comments

Comments

@HristoP96
Copy link

Bug Report or Feature Request (mark with an x)

- [x] bug report -> please search issues before submitting

Command (mark with an x)

- [ ] new
- [x] build
- [x] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc

Versions

Angular CLI: 7.1.3
Node: 10.14.1
OS: win32 x64
Angular:
...

Package                      Version
------------------------------------------------------
@angular-devkit/architect    0.11.3
@angular-devkit/core         7.1.3
@angular-devkit/schematics   7.1.3
@schematics/angular          7.1.3
@schematics/update           0.11.3
rxjs                         6.3.3
typescript                   3.1.6

Repro steps

angular7Project.zip

Step1: install node_modules for the above provided project.

Step2: run ng serve

Step3: Open the browser devtools and focus the element with class "sample-div", which has display:grid as applied style.

angular7bug

Desired functionality

The .sample-div should also contain the prefixed style which is display: -ms-grid like in Angular 6.

angular6Project.zip

angular 6

@HristoP96 HristoP96 changed the title Autoprefixer does not work in Angular 7. Autoprefixer does not work in Angular 7 Jan 2, 2019
@alan-agius4
Copy link
Collaborator

alan-agius4 commented Jan 2, 2019

This is the indented behaviour in Version 7 see: #11453

To enable autoprefixing for grid you need add /* autoprefixer grid: on */.

@anjildhamala
Copy link

anjildhamala commented Mar 1, 2019

@alan-agius4 Where should I add /* autoprefixer grid: on */ ? This is unfamiliar territory for me.

@EmmanuelDemey
Copy link
Contributor

You can try to add this comment in your scss / css files. If you put this comment on the top, it will enable grid for all the file. If you set it in a declaration block, grid will only be available inside this block.

@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 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants