Skip to content

[Bug] Using "last X versions or not dead", nearly not more prefixing. #1304

Description

@Yivan

Hello,

I spend long time on this, but i arrive to the conclusion that there is a bug when "or not dead" condition used (settings option or .rc file same).

Bug:
Adding "or not dead" doesn't prefix the file as intended.

To reproduce:
Run a first time with just "last 10 versions": you will get a well prefixed files with many prefix.
Run a second time with "last 10 versions or not dead": you get no more prefixers (or very few), and file size is a lot lighter so. It should not as it is a "or" condition.

What is strange is that the list of browsers detected is right... so it is like there is something special during prefixing for this condition in the prefixing code itself... if it can help to fix the bug, maybe there is something here.

This bugs doesn't happen with condition like "or not ie <= 10", in this case it works fine.

I hope it could be fixed, because if some devolpers and a condition like this, they break all the prefixing...

Thanks!

Activity

  1. ai commented on Apr 19, 2020

    @ai
    Member

    Please send PR to https://github.com/browserslist/browserslist

    I am closing issue because this issue is not relevant to the Autoprefixer code. You can open an issue in Browserslist repo.

  2. Yivan commented on Apr 19, 2020

    @Yivan
    Author

    @ai Ho yes you are totally right. Really sorry of this mistake !

  3. Dan503 commented on Apr 20, 2020

    @Dan503
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions