- From: Guillaume via GitHub <sysbot+gh@w3.org>
- Date: Fri, 27 Dec 2024 15:01:51 +0000
- To: public-css-archive@w3.org
Chrome and FF (non-exhaustive) also do not accept a declaration value containing `!important` followed by any component value other than a stop stoken (`;` and/or `}`).
```html
<style>
style {
color: !important var(--color);
}
</style>
<script>
document.styleSheets[0].cssRules[0].cssText; // style {}
</script>
```
`<declaration-value>` does not accept `!` but I hope it is ok if I generalize this issue to "there is a gap between what *consume a declaration* says and what browser actually do".
This specific mismatch could be fixed generically in step 6, by saying that the next token should be a stop token or the stream should be empty.
--
GitHub Notification of comment by cdoublev
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11315#issuecomment-2563780551 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 27 December 2024 15:01:52 UTC