I would like to draw a node around a one-line text, with only the left part filled. The size of that 'left part' would be specified by some fraction. In effect, this would be a progress bar with text inside.
\documentclass{article} \usepackage{tikz} \begin{document}
\begin{tikzpicture}
\draw (0, 0) node[draw, fill = green!10, fill fraction = .7] {Some
text};
\end{tikzpicture}
\end{document}
Of course my fictitious option 'fill fraction', which should say that only the leftmost 70% should be filled, gets ignored.

path picture. This is something that is drawn on the background and clipped against the node boundary path. – Mar 07 '19 at 14:40\draw node[circle, draw, fill={red}]before the\drawcommand that usesfill fraction– Addison Klinke Jul 25 '20 at 23:50