Comments (5)
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.
Nope. I mean white(0.5)
as alias for rgba(255, 255, 255, 0.5)
.
from postcss-color-gray.
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.
+1 for making separate plugin. This one is great for his job (following w3c spec).
from postcss-color-gray.
from postcss-color-gray.
Related Issues (12)
- Convert colors via Lab colorspace
- gray() is not to spec HOT 2
- Update postcss-values-parser dependency
- gray() has been removed from the ED HOT 1
- Will this package be marked as deprecated since it's no longer part of the spec? HOT 2
- why not 1.0.0 HOT 2
- Can you please release this package ? HOT 1
- Upgrade `color` package to fix underlying security issue
- Use PostCSS 5.x
- Incorrect parsing of "content" property HOT 3
- Percent lower than 10% not working HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from postcss-color-gray.