-
Notifications
You must be signed in to change notification settings - Fork 19
Math plugin #137
base: dev
Are you sure you want to change the base?
Math plugin #137
Conversation
Great, this works rather well. One final question: what's the reason for restricting the plugin to certain css properties? |
I did that because those are all the known properties who can have a measurement value. Its easy to extend. If you know of more or need also html 5 properties inside there i can easely add them |
I'm less concered about HTML5 oder CSS3, I'm thinking more about people who write their own plugins for Turbine and make up new properties. If there isn't some security problem or something I would like to see this restriction dropped... because if nothing can go wrong, why should we be restricting ourselves? |
as far i know there will not be any problem if i take out the property list and let the script walk trough all properties. Hopeful this week i can find some time on the office or at home to modify the plugin. |
it would be great if this could work for colors too. lessphp has some fancy color math, but don't have the skill to port that to turbine. color are array in turbine, so the eval you use wont work. i could imagine the following:
thats my stupid idea, if this sounds doable to you and no one else likes to implement it i might try it. |
What about sth. like line-height? Why shouldn't I be able to calculate, too? I wouldn't restrict this to predefined elements as it's more future-proof to allow it for all properties. I would really like to see this in Turbine. |
Security issue in eval() is fixed