- From: Romain Menke via GitHub <sysbot+gh@w3.org>
- Date: Thu, 20 Oct 2022 14:49:36 +0000
- To: public-css-archive@w3.org
romainmenke has just created a new issue for https://github.com/w3c/csswg-drafts:
== [css-extensions-1] Register custom extensions, worklets in CSS ==
[css-extensions-1](https://github.com/w3c/csswg-drafts/tree/main/css-extensions-1)
see : https://github.com/w3c/csswg-drafts/issues/3559#issuecomment-1155066354
Can we register custom extensions, worklets in CSS?
```css
@custom-supports --gap-in-flexbox url('gapInFlexboxSupport.js');
```
One of my concerns with registering custom extensions or worklets in JavaScript is that it forces stylesheet authors to switch context and consider a whole different set of issues and apply solutions in a different programming language.
- how can I block the CSS on this bit of JavaScript and avoid a flash of content?
- how do I write the bits of Javascript defensively so that it doesn't throw errors in older browsers?
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7926 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 20 October 2022 14:49:38 UTC