- From: Oriol Brufau via GitHub <sysbot+gh@w3.org>
- Date: Wed, 10 Jan 2024 15:00:57 +0000
- To: public-css-archive@w3.org
> ! is the logical not operator CSS doesn't have a logical not operator > Add an alias for !important At this point it doesn't seem feasible to deprecate `!important`, so adding an alias will just increase confusion IMO. > *important That's problematic, because that's valid in a [`<declaration-value>`](https://drafts.csswg.org/css-syntax-3/#typedef-declaration-value). But a top-level `!` is not, so it can act as a delimiter. In particular, this would break: ```js document.body.style.cssText = "--foo: bar*important"; document.body.style.getPropertyValue("--foo"); // "bar*important" ``` -- GitHub Notification of comment by Loirooriol Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9778#issuecomment-1885013670 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 10 January 2024 15:00:59 UTC