-
Notifications
You must be signed in to change notification settings - Fork 689
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
[css-cascade] !default declarations proposal #2272
Comments
I don't like :is(.default-theme button) {
border: none; /* default */
} |
Just want to point out some implications of using
Sebastian |
I believe this use case is solved in a much more powerful way by @mirisuzanne's Cascade Layers proposal which is now in CSS Cascade Level 5. :) |
@CyberAP Does that work for you? Shall we close this issue, or is there something not addressed? |
I think this is an excellent proposal and does much better job then the proposed |
!default
declarations, opposite to!important
declarations, could set a default property value, if it has not been set yet, or if another!default
declaration is more specific. User agent styles should be overridden with!default
(of course excluding ones with!important
).Consider this example:
The button would have a thin solid black border in result. Having the
!default
declaration possible would make it so much easier to do theming or reset CSS.The text was updated successfully, but these errors were encountered: