Even if the stylesheet contains class selectors with uppercase letters, cssRules[i].selectorText returns only lowercase text.
Created attachment 48618 [details] Test WebKit already passes this test.
It works for me. Please see the test attached.