"transparent" is not a supported color
See original GitHub issuemonaco-editor version: 0.19.3 Playground code that reproduces the issue:
monaco.editor.defineTheme('myCustomTheme', {
base: 'vs',
inherit: true,
rules: [
{ token: 'comment', foreground: 'transparent' }
]
});
monaco.editor.create(document.getElementById("container"), {
value: '<div>',
language: "text/html",
theme: "myCustomTheme"
});
transparent
should be handled correctly just as red
and #00000000
are handled correctly already.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Why am I getting "Control does not support transparent ...
ArgumentException was unhandled Message=Control does not support transparent background colors. Source=System.Windows.Forms.
Read more >"Control does not support transparent background colors ...
I am trying to use a background image for one of my programs and I get this error when I try to make...
Read more >Error "Control does not support transparent background colors ...
Change background color to Transparent is throwing an error when Editor window is opened 1. Launch Toad 4309814, WORKAROUNDChoose another ...
Read more >[Solved] Control does not support transparent background colors
dear my friends , i got this error (Control does not support transparent background colors) i tried a lot of code at form...
Read more >"transparent" | Can I use... Support tables for HTML5, CSS3, etc
Transparency for elements in IE8 and older can be achieved using the proprietary "filter" property and does not work well with PNG images...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@fabiospampinato That looks cool. Unfortunately, we only take dependencies in VS Code if we really really really need to in order to keep our code size down.
As part of this thing I wrote a few functions that allow you to get every possible channel from every possible CSS color, it’s as fast as I could make it. If you want to integrate that with the editor just let me know and I’ll make a standalone package for it.