Skip to content
This repository was archived by the owner on Oct 24, 2023. It is now read-only.

Not transforming color function "hwb()" with stage-0 #108

Closed
shallinta opened this issue Dec 12, 2018 · 3 comments
Closed

Not transforming color function "hwb()" with stage-0 #108

shallinta opened this issue Dec 12, 2018 · 3 comments

Comments

@shallinta
Copy link

shallinta commented Dec 12, 2018

I still got "color: hwb(...)" in my chrome which is not able to recognize it.

My chrome browser version is above 71 beta.

I'm using webpack and postcss-loader@3.0.0, and postcss@7.0.6, postcss-preset-env@6.4.0.

I config postcss with a config file .postcssrc.js, content as following:

module.exports = {
  parser: false,
  plugins: {
    'postcss-preset-env': {
      stage: 0,
      browsers: [
        '> 1%',
        'Android >= 4.4',
        'IOS >= 7',
        'ie >= 9'
      ]
    }
  }
};

In addition, color function "gray()" works well. And there is no package "postcss-color-hwb" found in node_modules directory while "postcss-color-gray" is found.

@marcofugaro
Copy link

The color-mod-function plugin is not working for me either, it works only if I explicitly specify colorModFunction in the plugin list after postcssPresetEnv,

@pascalduez
Copy link

The color-mod-function plugin is not working for me either, it works only if I explicitly specify colorModFunction in the plugin list after postcssPresetEnv,

See csstools/cssdb@96bb8e8

@romainmenke
Copy link
Member

Hi @shallinta,

A lot has changed since this issue was opened.
This repo has been moved to https://github.com/csstools/postcss-plugins

There is an ongoing effort for hwb support here : csstools/postcss-plugins#70

Going to close this issue as we will archive this repo which prevents further discussion.
Feel free to open a new issue with concrete examples in the new repo.

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

No branches or pull requests

4 participants