Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Chrome Devtool RGBA Issue

I've been dealing with the same issue last couple of months. I've googled the same issue but i guess no-one has address this issue before.

previously when i change the hex color transparency, for example #FFFFFF, the Chrome devtools was giving me the option of RGBA version like RGBA(255,255,255,10%) but now when i do the same thing the result is for 10% white color transparency ise rgb(255 255 255 / 10%)

As you can see the RGBA is now gone and the devtool onşy show the strange version of rgb type.

rgba problem

Does anyone issued the same problem before? And do you know how to fix it?

like image 201
Meg Ann Avatar asked Oct 09 '20 12:10

Meg Ann


People also ask

How do I fix Devtool?

# Open the Issues tab Open DevTools. Click the Go to Issues button in the yellow warning bar. Alternatively, select Issues from the More tools menu. Once you're on the Issues tab, click the Reload page button if necessary.

How do I change DevTools color in Chrome?

Changing the color theme from Settings Open DevTools, and then select Settings (the gear icon). Select Preferences, and then in the Appearance section, select a theme from the Theme dropdown list.

How do I stop DevTools from popping up in Chrome?

toolbar. enabled''' - double-click the entry and toggle its value to '''false'''. this will generally disable the developer toolbar after you restart the browser.

How do I open Devtool in Chrome?

Chrome. To open the developer console window on Chrome, use the keyboard shortcut Ctrl Shift J (on Windows) or Ctrl Option J (on Mac). Alternatively, you can use the Chrome menu in the browser window, select the option "More Tools," and then select "Developer Tools."

What is the Issues tab in Chrome DevTools?

The Issues tab in Chrome DevTools reduces the notification fatigue and clutter of the Console. Use it to find solutions to problems detected by the browser, such as cookie issues and mixed content. Future versions of Chrome will support more issue types.

What is Chrome DevTools and how does it work?

Chrome DevTools is a set of web developer tools built directly into the Google Chrome browser.

Why won't Dev Tools Open on Chrome?

check policies - type chrome://policy/ in url bar. if DeveloperToolsDisabled is set to true, update the registry entry Show activity on this post. If the Block access to a list of URLs Enabled and "file", " " is in it or file:// is not in the whitlist of url, the DEV Tools wont open either :) Show activity on this post.

How do I fix issues in DevTools?

Visit a page with issues to fix, such as samesite-sandbox.glitch.me. Open DevTools. Click the Go to Issues button in the yellow warning bar. Alternatively, select Issues from the More tools menu. Once you're on the Issues tab, click the Reload page button if necessary.


Video Answer


2 Answers

open color picker + shift

open chrome developer >> open color picker + shift

like image 157
Abouasy Avatar answered Oct 23 '22 10:10

Abouasy


This was an intentional change in DevTools. The comma-based syntax is what the spec now calls “legacy syntax”.

See https://twitter.com/mathias/status/1253242715304857601:

💡 In source code, stop using the old rgb()/hsl() CSS color syntax with commas.

Get used to the modern comma-free CSS color syntax, supported in all modern browsers.

Why? Upcoming new features such as lab(), lch(), and color() use the same syntax (and don’t work with commas).

Spec: https://drafts.csswg.org/css-color/#rgb-functions

[…] for legacy reasons, an rgba() function also exists, with an identical grammar and behavior to rgb().

like image 27
Mathias Bynens Avatar answered Oct 23 '22 10:10

Mathias Bynens