The one color syntax the whiteboard accepts from outside: #rgb or #rrggbb, either case.
Shared by the agent tools (Whiteboard_AddText color) and the host's PenPalette so both
entry points hold the same line. A color string is painted into style.background on the
toolbar swatches and style.color on text items, and Angular does not sanitize style
bindings, so a url(...) or image-set(...) that got through would make the browser fetch
it. Named colors, rgb() and var() are rejected on purpose: ink items persist the chosen
string, and a var() would make a saved board theme-dependent.
The one color syntax the whiteboard accepts from outside:
#rgbor#rrggbb, either case. Shared by the agent tools (Whiteboard_AddTextcolor) and the host'sPenPaletteso both entry points hold the same line. A color string is painted intostyle.backgroundon the toolbar swatches andstyle.coloron text items, and Angular does not sanitize style bindings, so aurl(...)orimage-set(...)that got through would make the browser fetch it. Named colors,rgb()andvar()are rejected on purpose: ink items persist the chosen string, and avar()would make a saved board theme-dependent.