[csswg-drafts] [css-2023] Add !important tiers, such as !important-1, !important-10 like z-indexes (#9106)

alexluongfm has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-2023] Add !important tiers, such as !important-1, !important-10 like z-indexes ==
Add !important tiers to easily allow overriding higher level css with local changes. Where `!important` would default to `!important-1` and higher tiers override lower ones just like z indexes.

Mainly comes from where bootstrap has an !important for borders, but that actually gets overridden by another border !important. Changing the latter important would mess with app wide borders, but not changing it will prevent changing the local border. 

Hacks and workarounds are possible, but an optimum solution would be tiers of important

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9106 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 24 July 2023 03:58:47 UTC