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.