I just had a case where it would have been really useful if there were a CSS selector like :numeral
. I could then make all the numerals superscript and change their color.
It then occurred to me that it would be even more useful to have something like :regex('...')
which would allow me to use regex to select particular text (numerals preceded by a space, for example: :regex(' \\d*')
).
Is there a good reason this sort of selection should not be implemented in CSS Spec?