The selection stringifier is specified as
The stringification must return the string, which is the concatenation of the rendered text if there is a range associated with this.
It is not clear to me what "rendered text" means in this context.
Conceptually, it seems equivalent to the result of running the rendered text collection steps, but according to the testcase in servo/servo#37207 (comment), implementations seem to ignore the text-transform in this case.