See the source of baselines demo, especially file resources/app.css.
So we cannot use the style attribute?
I was able to apply styling to the baseline using a css class but that requires a fixed color. What if the color is dynamic where it could be anything?
Would there be a workaround to apply dynamic styling? I can't override the css class for the baseline with a specific color as the color can change dynamically.
One way I can think of as a workaround would be to create css rules dynamically https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet However, we have not tested it and it might, depending on the complexity of your gantt, lead to some performance degradation.
I've outlined a CSS-in-JS approach to styling tasks in this issue that could be applied to baselines. In that snippet, runningColor is not known until runtime.