Here is my LaTeX code:
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\node[circle,color=yellow,fill=red,font=\Huge] at (0, 0) {foo};
\node[circle,fill=red,color=yellow,font=\Huge] at (3, 0) {foo};
\end{tikzpicture}
\end{document}
Here is the output:
The second circle was supposed to show yellow text on red background. Why is completely yellow?

colorsets all colors, most notabletext,drawandfill. And pgfkeys uses the principle of overwriting previous keys. – TeXnician Feb 08 '18 at 16:00textoption – Ignasi Feb 08 '18 at 16:26