-
Notifications
You must be signed in to change notification settings - Fork 3.4k
[Proposal] Remove legacy monkey-patch functions #3214
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
Comments
It depends on what you mean with "polyfilled". Note for example the built-in After all also note In a long run I guess we could consider to return to a generic idea (mentioned many times here and there in various issues) of "not evaluating things until they are actually used" but it's something more complex than just "removing" |
That's a good point. So if we need to evaluate it sometimes, we can't really remove the function. 🤔
Yeah maybe that's the better approach. |
I renamed this but I think I'll close this in favor of discussion at #2986. |
@matthew-dean @seven-phases-max |
@shrpne I think that will very spoil the very purpose of the whole thing. It's not just about "some Less functions" - it's about The Colors (as universal thing) in Less. It's not some @some-color: *any ordinal value here*; // please don't force me to use some freaking crypted garbage here, it's not what I installed Less for and bother with it at all
/*
*/
foo {
bar: darken(@some-color, 5%);
} Yes, it may be conflicting with some newest CSS stuff but that's what things like #2986 are for. For the rest honestly I don't see the point in using Less then at all. For 100% CSS-compatibility one just uses CSS. If we are for some superset language we automatically agree it may be incompatible (hopefully temporary) at some point. |
Earlier versions of Less offered support for CSS functions that weren't yet supported cross-browser, acting as a de facto Babel-esque (although pre-Babel) polyfill for future CSS syntax.
However:
rgba()
throw error #2986Functions that still act as polyfills (don't have cross-browser support) should be discussed, but IMO well-supported functions should stop being polyfilled, and future Less versions should probably not try to polyfill CSS functions.
The text was updated successfully, but these errors were encountered: