-
Notifications
You must be signed in to change notification settings - Fork 93
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
Compiler: Support for emitting prefixed css-functions #52
Comments
I'm inclined to agree. The only question I have is what should the output look like in that case? Let's suppose we have {:some-property ^:prefix ^:vendors [:webkit] (some-css-fn ...)} Do we compile separate declarations for each vendor? lol {
some-property: -webkit-some-css-fn(...);
some-property: some-css-fn(...);
} |
Yes, that's the correct way of doing this according to MDN. See On Sat, May 24, 2014 at 9:15 PM, Joel Holdbrooks
|
You might also want to consider the following: |
OK. I think this is doable but it's going to require a bit of forethought and planning before we can make this happen. One concern is ^:prefix {:some-property ^:prefix (some-css-fn ...)} I suppose we could make the assumption that if, for example, the vendors were |
@jeluard I think we can handle that case during declaration expansion but that's kind of gross. The compiler needs to be reworked to operate on a data format like |
Sounds reasonable. |
@the-kenny @jeluard If you guys think of any more edge cases be sure to post them here. I want to close out some of the other stale issues before moving on this. |
Also not sure how it fits here but I've been thinking it would be really nice to leverage CSS.supports for the ClojureScript implementation. It would allow to generate the proper flavor at runtime and skip the useless ones. |
@jeluard Yes! That definitely needs to get added! |
...two years later this has been fixed (734e494). |
seems like this never got closed? |
@awkay it's fixed on the |
On older iOS devices, the
calc
function must be prefixed with-webkit-
. I think it would be helpful if the^:prefix
metadata could be applied to css-functions as well.The text was updated successfully, but these errors were encountered: