Thanks for the suggestion. We are not 100% satisfied with the syntax, but with last beta, you can have this :
@startgantt
<style>
ganttDiagram {
task {
BackGroundColor GreenYellow
LineColor Green
}
undone {
BackGroundColor red
}
}
</style>
[foo] lasts 21 days
[foo] is 40% completed
[bar] lasts 30 days and is 10% complete
@endgantt
Is this what you were expecting ?