question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"transparent" is not a supported color

See original GitHub issue

monaco-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:open
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
alexdimacommented, Feb 6, 2020

@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.

1reaction
fabiospampinatocommented, Feb 6, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found