- From: Fabio Spampinato via GitHub <sysbot+gh@w3.org>
- Date: Wed, 25 Jan 2023 14:36:52 +0000
- To: public-css-archive@w3.org
fabiospampinato has just created a new issue for https://github.com/w3c/csswg-drafts: == [css-highlight-api] Support for some font styles and decorations == I'm currently building a new code editor for the web that uses the CSS Custom Highlight API for syntax highlighting, with the idea being that it would simplify things significantly while at the same time improve performance. But, some basic forms of font styles and decoration (italic, bold, underline, strikethrough), are not supported by this API. As I understand it only properties that can be applied efficiently are supported, but arguably a subset of the `font-style` and `font-decoration` properties can be applied efficiently in some scenarios, even if this capability where limited to monospaced fonts it would unconstraint my use case, which would be amazing. As far as I know the folks at VS Code are also exploring using highlights for syntax highlighting, which would potentially enable optimized syntax highlighting for millions of developers worldwide, so it'd be extra nice if these APIs could be used for 100% of normal grammar-based syntax highlighting, rather than the current 99%. Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8355 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 25 January 2023 14:36:54 UTC