Skip to content

Prefixer falls back to prefixAll in Chromium 50 #84

@sunflowerdeath

Description

@sunflowerdeath

Prefixer falls back to prefixAll in Chromium 50:

new Prefixer({userAgent: 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/50.0.2661.102 Chrome/50.0.2661.102 Safari/537.36'}).prefix({display: 'flex'})
> Object {display: Array[5]}

prefixer._browserInfo
> {
    name: "Chromium",
    chromium": true,
    version: 50,
    blink: true,
    linux: true,
    x: true,
    browser: "",
    osversion: null
}

For example, with user agent from Firefox 46 it works:

new Prefixer({userAgent: 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:46.0) Gecko/20100101 Firefox/46.0'}).prefix({display: 'flex'})

> Object {display: "flex"}

Also, it works in Chrome.

Probably you need to add 'chromium' to this file https://github.com/rofrischmann/inline-style-prefixer/blob/master/modules/utils/getBrowserInformation.js on 4 and 10 lines.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions