Giter Club home page Giter Club logo

Comments (5)

shinnn avatar shinnn commented on June 2, 2024

Did you mean this specification? http://dev.w3.org/csswg/css-color/#hsl-hwb-adjusters

(emphasis mine)

If the hue angle is null, the operation is w(), white(), b(), or black(), and the adjuster would make the sum of whiteness and blackness less than 100%, it additionally adjusts the opposite HWB channel to make the sum equal to 100%. (That is, color(white w(- 20%)) would represent the same color as hwb(0, 80%, 20%).)

from postcss-color-gray.

ai avatar ai commented on June 2, 2024

Nope. I mean white(0.5) as alias for rgba(255, 255, 255, 0.5).

from postcss-color-gray.

shinnn avatar shinnn commented on June 2, 2024

I think black() and white() features should be in the separate plugins, such as postcss-color-black and postcss-color-white.

from postcss-color-gray.

MoOx avatar MoOx commented on June 2, 2024

+1 for making separate plugin. This one is great for his job (following w3c spec).

from postcss-color-gray.

ai avatar ai commented on June 2, 2024

postcss/postcss#173

from postcss-color-gray.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.