Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Color adjuster doesn’t work #40

Open
jonathantneal opened this issue Jun 2, 2017 · 2 comments
Open

Color adjuster doesn’t work #40

jonathantneal opened this issue Jun 2, 2017 · 2 comments
Labels

Comments

@jonathantneal
Copy link
Member

Input CSS using the blackness adjuster:

body { background-color: color(#000 b(10%)) }

Result CSS after using the blackness adjuster:

body { background-color: rgb(230, 0, 0) }

That’s a bold red. Here’s an example:

https://codepen.io/jonneal/pen/a8843ad869e1f31d8448d7ab6dc65a18

Is this limited to the version of cssnext on CodePen or is this still a bug?

@Semigradsky Semigradsky added the bug label Nov 3, 2017
@Semigradsky
Copy link
Member

Semigradsky commented Nov 3, 2017

Yeah, it is a bug.

color(black b(10%)) should represent the same color as hwb(0, 90%, 10%) (#e6e6e6)

See https://drafts.csswg.org/css-color/#hsl-hwb-adjusters for more information.

@kumarharsh
Copy link

The codepen link is broken... Here is a working pen, and the issue is still reproducible:

https://codepen.io/khs/pen/JpJmYr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants