-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Support more "isdatatype" functions #1549
Comments
We have
|
And some
|
I can see how this would be useful writing library code |
As Less 1.7.0 started to support using ruleset as mixin parameters, I think |
Fair point. |
Could we have one generic function, e.g. |
Speaking of "composite" CSS types (as opposed to native Less types like I guess the plugins and/or #538 is the solution in this case. |
+1 Seems easier to maintain and document. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
We've got already quite a few such functions like
iscolor
,isstring
, etc.I think it's good to add more such kind of functions such as
islength
,isangle
,istime
,isposition
,isresolution
or even something likeiscolorstop
. This should make writing guardian expressions easier if we want to "overload" mixins.The text was updated successfully, but these errors were encountered: