Re: [csswg-drafts] [css-properties-values-api] Shorthand for custom property declaration (#7523)

> However, we definitely could allow them and resolve them against the **global** value

> This (a) removes the "computationally independent" restriction, resolving them against **global** values exactly like they are in MQs/etc

@tabatkins "Global" you say, but what do you think about @mirisuzanne "real" ask here, which is that initial values of registered custom properties can exist in an unabsolutized (but typed) form? To be specific:

```css
@property --x {
  syntax: "<length>";
  inherits: false;
  initial-value: 10em;
}
/* --x is a <length>, can interpolate as <length>, has a type in computedStyleMap(), etc. */

#div1 { font-size: 10px; } /* => gCS(div1)['--x'] => 100px */
#div2 { font-size: 20px; } /* => gCS(div2)['--x'] => 200px */
```


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


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

Received on Wednesday, 23 August 2023 18:42:14 UTC