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

Troubles with a radial-gradient #120

Closed
talyguryn opened this issue Mar 19, 2019 · 3 comments
Closed

Troubles with a radial-gradient #120

talyguryn opened this issue Mar 19, 2019 · 3 comments

Comments

@talyguryn
Copy link

For an Instagram button I use:

background: radial-gradient(farthest-corner at 40px 70px, #FEE081 0%, #F87825 24%, #DB2B75 49%, #A32B98 66%, #4B62D6 100%);

After building:

background: radial-gradient(farthest-corner at 40px,at 70px,#fee081 0,#f87825 24%,#db2b75 49%,#a32b98 66%,#4b62d6 100%)

Changes:

at 40px 70px --> at 40px,at 70px

And browser does not get it:

image

Config

postcss-preset-env@6.6.0

Here is my .postcssrc.yml.

plugins:
  postcss-preset-env:
    stage: 0
    browsers:
      - 'last 2 versions'
      - '> 1%'
    preserve: false

I can disable gradient feature. With the following config this line does not affected then it works correctly.

plugins:
  postcss-preset-env:
    stage: 0
    browsers:
      - 'last 2 versions'
      - '> 1%'
    preserve: false
+    features:
+      double-position-gradients: false

image


Is it a double-position-gradients plugin troubles?

@jonathantneal
Copy link
Collaborator

Yes, it seems like the issue would be with https://github.com/jonathantneal/postcss-double-position-gradients and I could use some help debugging it from there. One thing that might help me and others debug this is a minimal, isolated reproduction of the issue in a repository.

@mtelgkamp
Copy link

I stumbled upon the same problem and created a small gist with a minimal reproduction.
https://gist.github.com/mtelgkamp/c6afc3aa3d83239ae016372938f7c01c
I used the example for Non-centered gradient from MDN web docs

@romainmenke
Copy link
Member

@talyguryn I moved this issue to new mono repo : csstools/postcss-plugins#85

We'll try to get this resolved!

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

No branches or pull requests

4 participants