Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ryan-richt opened this issue Feb 27, 2022 · 0 comments

Comments

@ryan-richt
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant