-
Notifications
You must be signed in to change notification settings - Fork 27
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
Update CSS grammar to allow /deep/ combinator as first element of a selector #43
Comments
Hi @HiperSoke, Thanks for your feedback! Thank you David |
Hi racodond, Thanks for your fast answer. That code snippet its part of a css file. Regards. |
I changed the /deep/ combinator to ::ng-deep as is the one that we should use for Angular 4 projects and seems that is isnt supported by the plugin, at least it can process the whole file so I can see other issues. I think that maybe you could add ::ng-deep as a deprecated combinator. Check this url: https://angular.io/guide/component-styles#deprecated-deep--and-ng-deep Regards. |
Unlike CSS, it is possible to have a CSS combinator as first element of a selector in SCSS. Hence the support of I'm not familiar with
OK. |
I'm not an CSS expert, but I saw in a few examples that you can use /deep/ at the begining of an CSS file (checking the documentation of DevExtreme suit for Angular projects), Regards. |
OK, I'll add support to this syntax.
OK. I created a dedicated issue: #45 |
just my two cents: from what i read /deep/ support will be removed from chrome as its semantically incorrect and ::ng-deep is angular specific replacement... in this light im not sure the resolution you come to is correct :) |
Hi @vaclav-dvorak, I'm not sure to understand. Even if it is deprecated, "/deep/" syntax usage should not lead to a crash while analyzing a CSS file with SonarQube. The parser should be able to parse this syntax (even if it is not widely used and will be less and less). David |
Also created new issue: #47 |
Sorry for not being clear. From what i read it feels to me that /deep/ should be in deprecated list and ::ng-deep shouldn't (as its angulars response for dropping of /deep/ support). |
OK. Got it.
They plan to drop support of
OK |
Hello,
I saw that a few versions ago it was added support to /deep/ combinator, but for me is not working. I'm using version 4.7
Code:
/deep/ .btngroupstyle { background-color: black; border-color: #8cd1fa; border-style: solid; border-width: 1.5px; height: 35px; }
Error:
Parse error at line 44 column 1: 34: border-color: #8cd1fa; 35: border-radius: 5px; 36: border-style: solid; 37: border-width: 1.5px; 38: height: 35px; 39: margin-bottom: 10px; 40: text-align: left; 41: width: 70px; 42: } 43: 44: /deep/ .btngroupstyle { ^ 45: background-color: #ffffff; 46: border-color: #8cd1fa; 47: border-style: solid; 48: border-width: 1.5px; 49: height: 35px; 50: } 51: 52: .buttonload { 53: background-color: #0098f3; 54: color: #ffffff;
Regards.
The text was updated successfully, but these errors were encountered: