-
Notifications
You must be signed in to change notification settings - Fork 715
[css-cascade-4] Add an alias to !important #9778
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
Comments
CSS doesn't have a logical not operator
At this point it doesn't seem feasible to deprecate
That's problematic, because that's valid in a In particular, this would break: document.body.style.cssText = "--foo: bar*important";
document.body.style.getPropertyValue("--foo"); // "bar*important" |
It definitely is confusing, and on our list of mistakes. It might be possible to come up with an alias that works better, but I expect this would need to be a longer keyword instead of adding some special character. And I’d like the new thing to make it more clear how |
What about |
I’m categorically against aliases.
|
Do XML and HTML get the same kind of comments for having |
What about Or we could also maybe assign them in categories with 3 importances/priorities such as: |
Yes, I'm just going to close this issue. As noted, there are also parsing concerns with using any other character besides Aliases are something we very intentionally use only rarely, when the previous name is just actively bad for some reason. (For example, some For the separate issue of wanting more levels of "importance", that's what we designed Cascade Layers for. We don't anticipate expanding |
Uh oh!
There was an error while loading. Please reload this page.
css-cascade-4
! is the logical not operator. When adding ! in front of important, it should mean it is not important, as in not taking precedence.
*
would make more sense to be in front since it covers all of the elements.My proposed task would be to:
The text was updated successfully, but these errors were encountered: