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.

support CSS color level 5 functions

See original GitHub issue
element {
  border: 1px solid color(black alpha(50%));
}

It currently throws:

$color: 50% is not a color for `alpha'

Now, I don’t expect Sass to do anything with this, as that’s the job of a post-processor… but Sass should at least not throw an error.

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:2
  • Comments:25 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
nex3commented, Sep 21, 2018

Great! Since only that part of Colors Level 4 has been implemented in browsers, I’ve filed https://github.com/sass/sass/issues/2564 to track it separately.

0reactions
mirisuzannecommented, Mar 5, 2020

Color adjustment functions have been moved to Level 5

Read more comments on GitHub >

github_iconTop Results From Across the Web

CSS Color Module Level 5 - W3C
This module extends CSS Color [css-color-4] to add color modification functions, and custom color spaces (ICC profiles).
Read more >
CSS Color Module Level 5 reference guide - LogRocket Blog
The CSS Color Module Level 5 provides a host of new color functions and improvements, opening up a world of new possibilities for...
Read more >
"color" | Can I use... Support tables for HTML5, CSS3, etc
The CSS color() function allows the browser to display colors in any color space, such as the P3 color space which can display...
Read more >
Add CSS Color Module Level 5 (color-mix(), color-contrast ...
Virtually following up color-mod Add color-mod() | color() function - CSS Color Module Level 4 #2864; The color-adjust() function is not to ...
Read more >
<color> - CSS: Cascading Style Sheets - MDN Web Docs
CSS Color 4 introduced this notation. Colors specified via the color() function can specify a color in any of the predefined color spaces,...
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