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

Troubles with a radial-gradient #120

Closed
@talyguryn

Description

@talyguryn

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions