Re: [csswg-drafts] [css-variables] Are custom properties strings? (#8533)

I am sorry for such a contrived case but given `--x: 1; --y: /* a */ var(--x)`, `style(--y: /* b */ var(--x))` should be false with current stand point, isn't it?

In subsitution-containing values, preserving author details only in `<declaration-value>` could be an alternative:

```js
style.cssText = '--x: /* 1 */ red url(bg.jpg) /* 2 */ var(/* 3 */--position, /* 4 */ fallback /* 5 */) /* 6 */'
style.cssText; // --x: red url(bg.jpg) var(--position, /* 4 */ fallback /* 5 */)
```

Then I think the contrived `style()` query from above could evaluate to true. I do not know if this would be better, or interesting in term of space complexity.

-- 
GitHub Notification of comment by cdoublev
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8533#issuecomment-1465520081 using your GitHub account


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

Received on Monday, 13 March 2023 05:07:41 UTC