Skip to content

Browser prefixes are added based on "all-time" as opposed to configurable browser versions #327

@ryan-richt

Description

@ryan-richt

The current implementation helpfully adds browser-specific prefixes to CSS elements which need them by parsing CanIUse data and turning that into a Scala source file as described here: https://japgolly.github.io/scalacss/book/dev.html

However, it appears (I could be wrong) that misc/caniuse.scala's strategy for computing Partial / Full / etc Support is based on looking at every version of the browser in question that has ever existed. For instance, while the flex family of CSS elements have been fully supported in Safari since 2015, because any prior versions exist in the CanIUse JSON file, properties like display: -webkit-flex; are output in generated CSS.

It would be nice to be able to "draw a line in the sand" in time, version history, relative number of versions back, anything like that, so that we do not generate excessive browser-specific prefixes.

In the mean time, is there a work-around to simply turn auto-injecting extra prefixed properties off altogether?

Thank you!

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