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

!important's failing on some cases. #3296

Closed
babobski opened this issue Oct 19, 2017 · 5 comments
Closed

!important's failing on some cases. #3296

babobski opened this issue Oct 19, 2017 · 5 comments

Comments

@babobski
Copy link
Contributor

Short Summary

Noticed that on some cases, the auto completion for the !important is missing.
Look like it has to do with some of the characters.

Steps to Reproduce

  • Create a css file
  • Paste the content form below
  • Try to auto complete for !important

Test code:

.test {
	content '';
	opacity: 0.1;
	filter: blur(3px);
	letter-spacing: 2px;
	white-space: pre-wrap;
	box-sizing: border-box;
}

Expected results

It would auto complete for !important.

Actual results

The auto completion is missing or now auto completion is shown at all

Platform Information

Komodo IDE, version 11.0.1, build 90791, platform win32-x86

@mitchell-as
Copy link
Contributor

Hi, where are you trying to autocomplete for !important? The following worked for me:

.test {
  background-position: !<|>
}

gives me the !important completion. Perhaps not all attributes allow an !important value? Or perhaps our CSS catalog is not up to date.

@babobski
Copy link
Contributor Author

@mitchell-as if you use the test code and try to insert the ! important statement after them, you will notice it fails in those cases.

This is in CCS files.

@mitchell-as
Copy link
Contributor

Okay, I see. For an attribute like letter-spacing: 2px <|>, !important is not listed as a completion when it should be. Thanks for clarifying. (I am not very familiar with CSS.)

@Naatan
Copy link
Member

Naatan commented Oct 19, 2017

For what it's worth, !important is a rule modifier, it is itself not a value. You can put it at the end of ANY css rule, just before the semicolon.

@mitchell-as
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants