Hello S.,
Stereotype seems to not be fully implemented; But a possible workaround is to use multiple style, as:
@startuml
title %version()
<style>
activityDiagram
{
.r {
BackgroundColor red
}
.g {
BackgroundColor green
}
diamond {
BackgroundColor #red
}
}
</style>
start
:A1;
if (<<r>>C1) then
<<r>>:A2;
endif
<style>
activityDiagram {
diamond {
BackgroundColor #green
}
}
</style>
while (<<g>><color:red>C2)
<<g>>:A3;
endwhile
stop
@enduml
If that can help,
Regards.