- From: Surma via GitHub <sysbot+gh@w3.org>
- Date: Wed, 06 Oct 2021 09:30:35 +0000
- To: public-css-archive@w3.org
surma has just created a new issue for https://github.com/w3c/csswg-drafts: == [css-color-4] Helper JavaScript as ESM? == I was delighted to find that the [css-color-4 directory](https://github.com/w3c/csswg-drafts/tree/main/css-color-4) contains JavaScript code to do all kinds of color space conversions. I think this is really helpful for experimentation. The current JavaScript files are supposed to be included via `<script>` tags and will register functions on the global scope. Additionally, the dependencies between the JavaScript files are documented as comments (like `// needs conversions.js` in [`utilities.js`](https://github.com/w3c/csswg-drafts/blob/217feeb6b7620686516ae70c86b6502cd59e5bb9/css-color-4/utilities.js#L1-L2)). Is there anything speaking against moving these JavaScript files to ESM? All browsers support those and it would make these files useful outside this repository as well. I’m happy to put in the work, just wanted to check first. Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6716 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 6 October 2021 09:30:37 UTC