Re: [csswg-drafts] [css-variables-2] Custom units as simple variable desugaring (#7379)

This also opens up the way to supporting new units through a polyfill:

1. Alias the original unit to its `--` counterpart, i.e.

    ```css
    @property --brm {
      syntax: "<length>";
      initial: 1brm; /* browsers with support will use this */
      inherits: true;
    }
    ```

1. Have a JS polyfill calc + set the initial value in case of no support

1. Use the custom unit throughout the code

    ```css
    height: 100--brm;
    ```

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


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

Received on Friday, 17 June 2022 14:22:29 UTC