There should be a reusable PropertyParser that resolves content-generation CSS properties, so that callers only need to deal with plain text.
PropertyParser
It occurs to me that maybe I should upstream Rhapsode's counters implementation to get this started.