Code Monkey home page Code Monkey logo

Comments (4)

ai avatar ai commented on June 14, 2024

Sorry, it is not Autoprefixer.

  1. Autoprefixer always adds prefixes above the unprefixed version.
  2. The current output for mask-repeat: no-repeat is -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;

Very likely you have another tool in build chain doing that.

from autoprefixer.

Maclay74 avatar Maclay74 commented on June 14, 2024

Autoprefixer always adds prefixes above the unprefixed version.

No it doesn't.

.test-class {
    mask-repeat: no-repeat;
}

.test-second {
    mask-image:
            linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0) 100%),
            linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000 100%),
            linear-gradient(#fff 0 0);
    mask-composite: exclude;
    mask-size: calc(100% - 4px) 140px, calc(100% - 4px) 140px, auto auto;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-position: 2px 2px, 2px calc(100% - 2px), 0 0;
}

is transformed into

.test-class {
    -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
}

.test-second {
    -webkit-mask-image:
            linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0) 100%),
            linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000 100%),
            linear-gradient(#fff 0 0);
            mask-image:
            linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0) 100%),
            linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000 100%),
            linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    -webkit-mask-size: calc(100% - 4px) 140px, calc(100% - 4px) 140px, auto auto;
            mask-size: calc(100% - 4px) 140px, calc(100% - 4px) 140px, auto auto;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: 2px 2px, 2px calc(100% - 2px), 0 0;
            mask-position: 2px 2px, 2px calc(100% - 2px), 0 0;
}

by npx postcss test.css --use autoprefixer -d ./, so there is no additional tools in the chain

from autoprefixer.

ai avatar ai commented on June 14, 2024

Yes, it is exactly what I am talking about. There is no mask-repeat:initial in your output from Autoprefixer.

from autoprefixer.

Maclay74 avatar Maclay74 commented on June 14, 2024

Yes, my bad. Sorry for the hassle.

from autoprefixer.

Related Issues (20)

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.